Skip to content

feat: expose application name via Appearance API #9886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 27, 2023
Merged

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Sep 27, 2023

Related: #8395

This PR exposes application_name behind /appearance and stores its value in the database. It improves error reporting around appearance to be more consistent with the rest of coderd API.

@mtojek mtojek self-assigned this Sep 27, 2023
@mtojek mtojek marked this pull request as ready for review September 27, 2023 14:35
@mtojek mtojek requested review from johnstcn and mafredri September 27, 2023 14:35
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I do notice (which is more of a general issue with our API) is that we often interpret empty values as "unset" on the backend, which can lead to potential confusing when handling update queries (e.g. is {"applicationName: "foo"} going to unset the logo?)

I don't see this as being in scope of this PR though.

@mtojek
Copy link
Member Author

mtojek commented Sep 27, 2023

which can lead to potential confusing when handling update queries (e.g. is {"applicationName: "foo"} going to unset the logo?)

This is how I understand it too, so the only possible solution would be downloading the latest state, modifying it, and uploading it back.

@mtojek mtojek merged commit cb5f8df into main Sep 27, 2023
@mtojek mtojek deleted the 8395-appearance-api branch September 27, 2023 15:02
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants