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

PEPPER-123. LMS consent_assent pdf template update. #2942

Merged
merged 3 commits into from
Oct 11, 2024

Conversation

ssettipalli
Copy link
Contributor

PEPPER-123
Update Template and update new template(pdf bytes) in DB.
I added generic changes to support updating existing pdf versioned config template bytes in DB.
Added new functionality in PdfBuilder.java

QA
Tested locally and looked good

* Update existing pdf templates (pdf bytes only) in the pdf config.
* Does not update the pdf config like sources/substitutions or new insertions
*/
public void updatePdfTemplates(Handle handle, long studyId, Config pdfCfg, String pdfFilePath) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can be used for any future pdf byte updates into DB.
Supports new versioned pdf configuration.
Can update ALL pdf templates in a config OR selected pdf file only in the config.

@ssettipalli ssettipalli requested a review from zyme October 10, 2024 13:22
@@ -0,0 +1,134 @@
{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just copied from existing pediatric pdf config, nothing new.
copied consent_assent pdf config since other file contained both assent and parental pdf config.

@ssettipalli ssettipalli merged commit 1573143 into develop Oct 11, 2024
8 checks passed
@ssettipalli ssettipalli deleted the PEPPER-123-lms-pdf-fix branch October 11, 2024 17:06
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.

2 participants