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

Emit unpopulated registration form fields #741

Merged
merged 7 commits into from
Sep 5, 2022
Merged

Emit unpopulated registration form fields #741

merged 7 commits into from
Sep 5, 2022

Conversation

pdeziel
Copy link
Collaborator

@pdeziel pdeziel commented Aug 25, 2022

Scope of changes

This changes the JSON marshaling for the registration form so that fields that are unpopulated by the BFF are filled with default values. The reason for this change is to allow certain fields (e.g., compliance_threshold) to persist when the frontend saves registration forms to the database via the BFF.

SC-8634

Type of change

  • bug fix
  • new feature
  • documentation
  • other (describe)

Acceptance criteria

When the frontend saves and loads registration forms using the BFF endpoints, the form should now persist 0-valued fields.

Author checklist

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have updated the dependencies list
  • I have recompiled and included new protocol buffers to reflect changes I made
  • I have added new test fixtures as needed to support added tests
  • Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
  • I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

  • Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.

@codecov-commenter
Copy link

Codecov Report

Merging #741 (1f44d86) into main (338cebb) will increase coverage by 0.14%.
The diff coverage is 26.31%.

❗ Current head 1f44d86 differs from pull request most recent head c3ed7c7. Consider uploading reports for the commit c3ed7c7 to get more accurate results

@@            Coverage Diff             @@
##             main     #741      +/-   ##
==========================================
+ Coverage   43.39%   43.54%   +0.14%     
==========================================
  Files         583      583              
  Lines       17510    17514       +4     
  Branches     1310     1320      +10     
==========================================
+ Hits         7599     7626      +27     
+ Misses       8723     8697      -26     
- Partials     1188     1191       +3     
Impacted Files Coverage Δ
...b/gds-user-ui/src/components/BasicDetail/index.tsx 38.23% <ø> (+1.09%) ⬆️
...s/CertificateReview/LegalPersonReviewDataTable.tsx 30.00% <ø> (-3.34%) ⬇️
...eb/gds-user-ui/src/components/FileUpload/index.tsx 60.71% <ø> (+2.09%) ⬆️
.../gds-user-ui/src/components/ReviewSubmit/index.tsx 78.57% <ø> (+5.23%) ⬆️
...nents/TestnetProgress/CertificateStepContainer.tsx 50.00% <ø> (+16.66%) ⬆️
...i/src/components/TrisaImplementationForm/index.tsx 8.33% <ø> (+0.33%) ⬆️
...ui/src/components/TrixoQuestionnaireForm/index.tsx 2.27% <0.00%> (-0.17%) ⬇️
...er-ui/src/components/ui/InputFormControl/index.tsx 87.50% <ø> (-0.74%) ⬇️
web/gds-user-ui/src/hooks/useAuth.ts 3.57% <ø> (+0.23%) ⬆️
...b/gds-user-ui/src/modules/auth/login/user.slice.ts 15.62% <ø> (+0.24%) ⬆️
... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@pdeziel pdeziel marked this pull request as ready for review August 30, 2022 19:24
Copy link
Collaborator

@rebeccabilbro rebeccabilbro left a comment

Choose a reason for hiding this comment

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

Nice 😄 -- thanks for adding that test coverage also @pdeziel

@rebeccabilbro rebeccabilbro merged commit 9c039b6 into main Sep 5, 2022
@rebeccabilbro rebeccabilbro deleted the sc-8634 branch September 5, 2022 19:26
masskoder added a commit that referenced this pull request Sep 6, 2022
* Handle multiple registered directories in BFF

* Version bump to v1.5.0

* Certman refactor and automated reissuance (#753)

Co-authored-by: kbelita <[email protected]>
Co-authored-by: Daniel Sollis <[email protected]>

* sc-8837 Extend Background Color to bottom of Overview page (#754)

* sc-8408 Add min/max to date of incorporation field (#743)

* Handle multiple registered directories in BFF

* sc-8408 Add min/max to date of incorporation field

Co-authored-by: Benjamin Bengfort <[email protected]>

* sc-8837 Extend Background Color to bottom of Overview page

Co-authored-by: Benjamin Bengfort <[email protected]>
Co-authored-by: Cletus Razakou <[email protected]>

* adds slack notifications to Github Actions container build yaml (#755)

Co-authored-by: Cletus Razakou <[email protected]>

* Allow multiple DNS names in certificate issuance (#701)

Co-authored-by: Benjamin Bengfort <[email protected]>

* Add baggage to CORS allowed headers

* BFF test cleanup (#706)

* BFF string constants (#708)

* Add VASP timestamps to overview response (#740)

* version bump v1.5.0-rc.22

* add VASP timestamps to overview response

* Emit unpopulated registration form fields (#741)

* sc-8837 Extend Background Color to bottom of Overview page (#754)

* sc-8408 Add min/max to date of incorporation field (#743)

* Handle multiple registered directories in BFF

* sc-8408 Add min/max to date of incorporation field

Co-authored-by: Benjamin Bengfort <[email protected]>

* sc-8837 Extend Background Color to bottom of Overview page

Co-authored-by: Benjamin Bengfort <[email protected]>
Co-authored-by: Cletus Razakou <[email protected]>

* fix models merge conflicts

Co-authored-by: Benjamin Bengfort <[email protected]>
Co-authored-by: Patrick Deziel <[email protected]>
Co-authored-by: kbelita <[email protected]>
Co-authored-by: Daniel Sollis <[email protected]>
Co-authored-by: elysee15 <[email protected]>
Co-authored-by: Rebecca Bilbro <[email protected]>
elysee15 added a commit that referenced this pull request Sep 22, 2022
* Handle multiple registered directories in BFF

* Version bump to v1.5.0

* Certman refactor and automated reissuance (#753)

Co-authored-by: kbelita <[email protected]>
Co-authored-by: Daniel Sollis <[email protected]>

* sc-8837 Extend Background Color to bottom of Overview page (#754)

* sc-8408 Add min/max to date of incorporation field (#743)

* Handle multiple registered directories in BFF

* sc-8408 Add min/max to date of incorporation field

Co-authored-by: Benjamin Bengfort <[email protected]>

* sc-8837 Extend Background Color to bottom of Overview page

Co-authored-by: Benjamin Bengfort <[email protected]>
Co-authored-by: Cletus Razakou <[email protected]>

* adds slack notifications to Github Actions container build yaml (#755)

Co-authored-by: Cletus Razakou <[email protected]>

* Allow multiple DNS names in certificate issuance (#701)

Co-authored-by: Benjamin Bengfort <[email protected]>

* Add baggage to CORS allowed headers

* BFF test cleanup (#706)

* BFF string constants (#708)

* Add VASP timestamps to overview response (#740)

* version bump v1.5.0-rc.22

* add VASP timestamps to overview response

* Emit unpopulated registration form fields (#741)

* sc-8837 Extend Background Color to bottom of Overview page (#754)

* sc-8408 Add min/max to date of incorporation field (#743)

* Handle multiple registered directories in BFF

* sc-8408 Add min/max to date of incorporation field

Co-authored-by: Benjamin Bengfort <[email protected]>

* sc-8837 Extend Background Color to bottom of Overview page

Co-authored-by: Benjamin Bengfort <[email protected]>
Co-authored-by: Cletus Razakou <[email protected]>

* fix models merge conflicts

Co-authored-by: Benjamin Bengfort <[email protected]>
Co-authored-by: Patrick Deziel <[email protected]>
Co-authored-by: kbelita <[email protected]>
Co-authored-by: Daniel Sollis <[email protected]>
Co-authored-by: elysee15 <[email protected]>
Co-authored-by: Rebecca Bilbro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants