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

Feature/1096 add forms entity validation #1104

Merged
merged 18 commits into from
Feb 2, 2024

Conversation

ifirmawan
Copy link
Contributor

@ifirmawan ifirmawan commented Jan 31, 2024

TODO/DONE

  • Backend handle forms entity validation
  • Frontend implements forms entity validation
  • Backend update tests

Implements forms entity validation with custom queryset in PrimaryKeyRelatedField serializers.
Workflow:
- Get selected forms
- Get selected administrations
- Filter selected forms that have entity cascade questions
- if entity cascade questions exists then
-- Check existing entity types
--- if entity doesnt exists then show validation error message
--- if entity exists then
---- Filter entity_data by entity type and selected administrations
---- if filtered entity_data doesnt exists then show validation error message that containing form & entity type
- otherwise validation passed and response HTTP Status 201
@ifirmawan ifirmawan self-assigned this Jan 31, 2024
@coveralls
Copy link

Coverage Status

coverage: 80.718% (-0.2%) from 80.894%
when pulling c03e029 on feature/1096-add-forms-entity-validation
into 858d738 on develop.

@ifirmawan ifirmawan marked this pull request as ready for review January 31, 2024 10:19
@ifirmawan ifirmawan linked an issue Jan 31, 2024 that may be closed by this pull request
@dedenbangkit dedenbangkit merged commit ac88088 into develop Feb 2, 2024
2 checks passed
@dedenbangkit dedenbangkit deleted the feature/1096-add-forms-entity-validation branch February 2, 2024 03:59
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.

Add Forms Entity Validation
3 participants