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

Fix Part validation behaviour after upgrading Mongo version #1862

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

minhngocd
Copy link
Contributor

@minhngocd minhngocd commented Mar 27, 2024

The validations for parts weren't being triggered when parent model (edition) is validated. To get around this we added an explicit custom validation method to enforce the association validation. The issue that was happening was that only the first part validation message was being shown on the front end instead of everything whenever Parts were created in the old way outlined above. Quick fix of tests where slugs had _ in them which are not allowed and failing validation quietly...

Trello card

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

The validations for parts weren't being triggered when parent model (edition) is validated. To get around this we added an explicit custom validation method to enforce the association validation.
The issue that was happening was that only the first part validation message was being shown on the front end instead of everything whenever Parts were created in the old way outlined above.
Quick fix of tests where slugs had `_` in them which are not allowed and failing validation quietly...

Co-authored-by: Laura Ghiorghisor <[email protected]>
@minhngocd minhngocd force-pushed the fix-mongo-update-validation-behaviour branch from 7949663 to 51ee786 Compare March 27, 2024 18:46
@minhngocd minhngocd merged commit c027351 into main Mar 28, 2024
14 checks passed
@minhngocd minhngocd deleted the fix-mongo-update-validation-behaviour branch March 28, 2024 15:01
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.

2 participants