Skip to content

Handle missing keys with a default#3753

Merged
DOsinga merged 1 commit intomainfrom
default-to-null-for-missing-keys
Aug 1, 2025
Merged

Handle missing keys with a default#3753
DOsinga merged 1 commit intomainfrom
default-to-null-for-missing-keys

Conversation

@DOsinga
Copy link
Copy Markdown
Collaborator

@DOsinga DOsinga commented Jul 31, 2025

we were returning a 404 for missing keys in the server which is the not found code, so not unreasonable. except that the client expects null for not found, so made it so. now no more 404s showing up in the developer console.

fixes #3679
fixes #3551

@DOsinga DOsinga requested a review from lily-de July 31, 2025 13:15
@alexhancock alexhancock self-requested a review August 1, 2025 18:47
Copy link
Copy Markdown
Collaborator

@alexhancock alexhancock left a comment

Choose a reason for hiding this comment

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

Nice. The code LGTM. My only Q would be if there is a test that needs to be/could be updated - or a new one.

@DOsinga
Copy link
Copy Markdown
Collaborator Author

DOsinga commented Aug 1, 2025

yeah good question about the testing. this is specific to the api call - we don't do a lot of testing on these routes. this one in particular would be a lot of mocking for little gain

@DOsinga DOsinga merged commit 1a8b3b1 into main Aug 1, 2025
9 checks passed
@DOsinga DOsinga deleted the default-to-null-for-missing-keys branch August 1, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Multiple 404 Not Found errors for /config/read on startup Windows UI: Multiple errors shown in console log obfuscating real issues

2 participants