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

Provide new API endpoint with the list of enum values for the Policy entity #1730

Open
joseAyudarte91 opened this issue Nov 8, 2023 · 0 comments
Assignees

Comments

@joseAyudarte91
Copy link
Contributor

This is needed for the frontend to be able to use the enum values to be loaded as options in the UI for the different cases, like the sub_content_type field. This endpoint will automatically update its content once the related enums change.

The idea is to make it generic so it can be extended in the future for other entity types, if needed, since it is low effort.

The enums are loaded from domain code, as that is the source of truth, since DB ones have outdated values.

@joseAyudarte91 joseAyudarte91 self-assigned this Nov 8, 2023
joseAyudarte91 added a commit that referenced this issue Nov 8, 2023
[Re #1730]

As explained in the issue, we have now a generic endpoint to provide
with the enum values of Policy entity type, which allows a future
extension for other entity types, if needed.

The values are obtained from the domain code, as those are the source of
truth (up-to-date).
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