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

SLVUU-90: Add constraints to name, group, and user in BaseMetadata #118

Conversation

cfisher-scottlogic
Copy link

As per #90, we want the server to enforce a constraint that all layout metadata fields are required (except screenshot).

This PR makes all fields except screenshot required in BaseMetadata. This applies the constraint to both the controller level request DTO, and the database entity. Tests have been added for the controller level constraint, as this is the behaviour we're concerned with.

@cfisher-scottlogic cfisher-scottlogic changed the title SLVUU-90: Add not blank constraints to name, group, and user in BaseMetadata SLVUU-90: Add constraints to name, group, and user in BaseMetadata Nov 21, 2023
@cfisher-scottlogic cfisher-scottlogic marked this pull request as ready for review November 21, 2023 13:24
Copy link

@vferraro-scottlogic vferraro-scottlogic left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@pling-scottlogic pling-scottlogic left a comment

Choose a reason for hiding this comment

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

Loving those parameterised tests!

@cfisher-scottlogic
Copy link
Author

cfisher-scottlogic commented Nov 21, 2023

Opened a PR on the finos fork (finos#991).

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.

make createLayoutRequestDTO' fields required
3 participants