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

22235 Legal API - Create endpoint for retrieving stage 1 AR letter #2849

Merged
merged 14 commits into from
Jul 24, 2024

Conversation

chenhongjing
Copy link
Collaborator

@chenhongjing chenhongjing commented Jul 19, 2024

Issue #: /bcgov/entity#22235

Description of changes:

  • Created a new endpoint for generating furnishing AR letter, the query parameter is optional and it's default for colored version by default
GET <base_url>/businesses/<business_identifier>/furnishings/<furnishing_id>/document
Content-Type: application/pdf
Accept: application/pdf

GET <base_url>/businesses/<business_identifier>/furnishings/<furnishing_id>/document?variant=default
GET <base_url>/businesses/<business_identifier>/furnishings/<furnishing_id>/document?variant=greyscale
  • Added ReportV2 class. This is only used for calling GCP report service.
  • Added report templates for AR letter. The design is here. Note that there are colored version and greyscale version of the letter. The greyscale version may need some tweaks in the future to better align with the requirements of BCMail+.
  • Added unit tests
  • Update furnishing job stage one to populate address information for both email and mail scenario
  • 1Password update for GCP report service
  • Other misc updates
  • Removed Address.FURNSIHING and related code

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

…tes)

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
…mail scenarios

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
@chenhongjing
Copy link
Collaborator Author

The generated outputs. The address position still needs to be tested. (Looks weird? 🤔 )

  • Email letter without EP registrations
    image

  • Mail letter without EP reigistrations
    image

  • Email letter with EP registrations
    image

  • Mail letter with EP registrations
    image

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
@chenhongjing
Copy link
Collaborator Author

chenhongjing commented Jul 22, 2024

@andyyanggov FYI

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Copy link
Collaborator

@leodube-aot leodube-aot left a comment

Choose a reason for hiding this comment

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

Looks good, great job on this one!

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
…ings job

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
@chenhongjing
Copy link
Collaborator Author

The updated outputs

  • Email letter without EP registrations
    image

  • Mail letter without EP reigistrations
    image

  • Email letter with EP registrations
    image

  • Mail letter with EP registrations
    image

@andyyanggov
Copy link

@chenhongjing Looking good!

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Copy link

sonarcloud bot commented Jul 24, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
47.8% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@chenhongjing chenhongjing merged commit e36f105 into bcgov:main Jul 24, 2024
10 of 11 checks passed
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.

4 participants