Skip to content
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

Default Response for VocabResponse #6

Open
Monamoxie opened this issue Aug 9, 2024 · 0 comments
Open

Default Response for VocabResponse #6

Monamoxie opened this issue Aug 9, 2024 · 0 comments
Assignees

Comments

@Monamoxie
Copy link
Owner

Vocab Collector should return a default response if a vocab was not found or not set for a particular user.

It doesn’t make sense to return an empty result set if vocab is missing for a particular search. Since the frontend needs this data for display purposes, vocab collector should gracefully fall back to the default values if nothing was found.

Which in this case would be based on 2 checks.

If a value exists in the vocab table, then use that value

If no value exists, then use the name of the table, as well as the singular and plural forms

@Monamoxie Monamoxie self-assigned this Aug 9, 2024
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

No branches or pull requests

1 participant