Skip to content

33002 - Remove certified copy stamp from Letter of Consent#4352

Merged
mruff-aeq merged 1 commit into
bcgov:mainfrom
mruff-aeq:33002-remove-letter-stamp02
May 4, 2026
Merged

33002 - Remove certified copy stamp from Letter of Consent#4352
mruff-aeq merged 1 commit into
bcgov:mainfrom
mruff-aeq:33002-remove-letter-stamp02

Conversation

@mruff-aeq
Copy link
Copy Markdown
Collaborator

@mruff-aeq mruff-aeq commented May 1, 2026

#33002 : /bcgov/entity#33002

Description of changes:
The "Certified Copy" stamp is triggered when the code calls the Document Retrieval Service (DRS) using a URL that includes the ?certifiedCopy=true query parameter. By creating the FILING-3 report type, we are able to adjust the logic to omit that specific query parameter from the URL for letterOfConsent, which prevents DRS from injecting the stamp into the PDF.

For verification, implemented a parameterized unit test that enforces the correct URL structure is generated for each specific report type, so it is ensured that the ?certifiedCopy=true query parameter is only applied to FILING, FILING-2, and NOA, and explicitly omitted for letterOfConsent using FILING-3.

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).

…ING-3 report type and add verification tests.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 1, 2026

@mruff-aeq
Copy link
Copy Markdown
Collaborator Author

mruff-aeq commented May 1, 2026

image

Only the letterOfConsent has been applied to the new FILING-3 type, and it is now correctly generating PDFs without the "Certified Copy" watermark.

@mruff-aeq mruff-aeq requested a review from kialj876 May 1, 2026 19:56
@mruff-aeq mruff-aeq changed the title Remove certified copy stamp from Letter of Consent by introducing FILING-3 report type and add verification tests. 33002 Remove certified copy stamp from Letter of Consent May 2, 2026
@mruff-aeq mruff-aeq changed the title 33002 Remove certified copy stamp from Letter of Consent 33002 - Remove certified copy stamp from Letter of Consent May 2, 2026
@kialj876 kialj876 requested review from loneil and meawong May 4, 2026 12:29
Copy link
Copy Markdown
Collaborator

@kialj876 kialj876 left a comment

Choose a reason for hiding this comment

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

Nice work!

@kialj876 kialj876 requested a review from doug-lovett May 4, 2026 12:34
Copy link
Copy Markdown
Collaborator

@doug-lovett doug-lovett 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.

@mruff-aeq mruff-aeq merged commit b0e22b7 into bcgov:main May 4, 2026
8 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