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

Fixed Showing no validation errors when form opens #1309

Merged
merged 101 commits into from
May 23, 2022

Conversation

aurangzaibumer
Copy link
Collaborator

@aurangzaibumer aurangzaibumer commented Apr 19, 2022

Fixes
#1001 #opensrp/fhircore#873

Description
The validation will not be triggered if the answers are empty or User hasn't made interaction with the input field yet whenever form opens. However the validation will be triggered if you open questionnaire with pre-defined answers since the condition checks if the answers are there or not.

Type
Choose one: ( Bug fix)

Screenshots (if applicable)
https://user-images.githubusercontent.com/35099184/152525877-d7d52896-3063-4925-903e-159a34d86a32.mp4

Checklist

  • I have read and acknowledged the Code of conduct
  • I have read the Contributing page
  • I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA
  • I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project
  • I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally
  • I have built and run the reference app(s) to verify my change fixes the issue and/or does not break the reference app(s)

aurangzaibumer and others added 30 commits February 1, 2022 14:55
@Tarun-Bhardwaj
Copy link

@jingtang10 , would you be able to review this PR?

Copy link
Collaborator

@jingtang10 jingtang10 left a comment

Choose a reason for hiding this comment

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

looks pretty good - almost ready to merge

last thing - just add some test cases where you have changed the existing test cases by adding modified = true. just make sure that if modify is false, we're not showing validation errors. that's the whole point of this PR now.

@aurangzaibumer
Copy link
Collaborator Author

looks pretty good - almost ready to merge

last thing - just add some test cases where you have changed the existing test cases by adding modified = true. just make sure that if modify is false, we're not showing validation errors. that's the whole point of this PR now.

added the unit test cases for modify = false. Please review. Thanks

@aurangzaibumer
Copy link
Collaborator Author

aurangzaibumer commented May 23, 2022

looks pretty good - almost ready to merge
last thing - just add some test cases where you have changed the existing test cases by adding modified = true. just make sure that if modify is false, we're not showing validation errors. that's the whole point of this PR now.

added the unit test cases for modify = false. Please review. Thanks

PR gateways passed.
cc @jingtang10 @f-odhiambo

Copy link
Collaborator

@jingtang10 jingtang10 left a comment

Choose a reason for hiding this comment

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

just a few small nits

thanks for this!

aurangzaibumer and others added 6 commits May 23, 2022 18:33
@jingtang10 jingtang10 enabled auto-merge (squash) May 23, 2022 13:50
@aurangzaibumer
Copy link
Collaborator Author

A 503 status code has been received, will attempt to retry the upload

Begin Diagnostic HTTP information

Status Code: 503
Status Message: Service Unavailable

@jingtang10 jingtang10 merged commit d93ca2e into google:master May 23, 2022
@jingtang10 jingtang10 linked an issue Jun 16, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Response validation occurs before data entry
6 participants