From 90a4c6123c3061824550ada3df2b6254907e0721 Mon Sep 17 00:00:00 2001 From: acoard-aot <61285798+acoard-aot@users.noreply.github.com> Date: Thu, 3 Aug 2023 12:30:15 -0700 Subject: [PATCH] Merge dev into main, include logging removals (#432) * Added disclosure in CSSA, and collection notice in CSSA and SRCR * hide forms for reviewre * Made changes to non bundled forms * Further changes to homepage after discussion with Haley * Update ff changes to dev-5.2.0 (#407) * test imagetsream * update the formsflow-ai-charts folder with 5.2.0v * commiting new ff changes * merge comments resolved * removing the secrets * removing the secrets * removing code owners * deleting the file * added a javascript login to handle approving authority validations * corrected format * changes to support form adapter * updated name for SDS form * updated name & path for sds form * GitHub Actions for nav/theme/web-ee/root-config * updating notes column width * Added hiding logic for signature field * Configure CI/CD scripts to trigger on temp dev branch to experiment * Update CI scripts to trigger build on the script change * Update namespace env name to use existing secret * Fix secret -> secrets typo * Update env setter for non-dev branch during active development * fixed site owner actons and notes section displayed for new forms * Fix env var for nav/theme/ee for non dev branch * Matched names * removing log statements from service --------- Co-authored-by: RyanBirtch-aot Co-authored-by: midhun-aot Co-authored-by: nikhila-aot <38471389+nikhila-aot@users.noreply.github.com> Co-authored-by: sakthi-aot <81777282+sakthi-aot@users.noreply.github.com> Co-authored-by: nikhila-aot Co-authored-by: midhun-aot <105463561+midhun-aot@users.noreply.github.com> --- backend/applications/src/app.service.ts | 2 +- .../applications/src/app/services/form.service.ts | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/backend/applications/src/app.service.ts b/backend/applications/src/app.service.ts index 5743cb53..5147f468 100644 --- a/backend/applications/src/app.service.ts +++ b/backend/applications/src/app.service.ts @@ -7,7 +7,7 @@ export class AppService { return 'Hello World!'; } confirmFormSubmission(formRequest: Request): any { - console.log('testing form submit'); + return formRequest; } } diff --git a/backend/applications/src/app/services/form.service.ts b/backend/applications/src/app/services/form.service.ts index 56ecd4bf..53fff6d9 100644 --- a/backend/applications/src/app/services/form.service.ts +++ b/backend/applications/src/app/services/form.service.ts @@ -36,8 +36,7 @@ export class FormService { buildUpdateString = (pathText, newValue) => { const returnString = - 'jsonb_set("form_data"::jsonb,' + pathText + ',' + newValue + ')'; - console.log(returnString); + 'jsonb_set("form_data"::jsonb,' + pathText + ',' + newValue + ')'; return returnString; }; @@ -47,9 +46,7 @@ export class FormService { formId, submissionId, ) => { - console.log('partialUpdateObject', partialUpdateObject); - console.log('parentObjectNames', parentObjectNames); - + for (const property in partialUpdateObject) { if (typeof partialUpdateObject[property] === 'object') { this.processContent( @@ -67,14 +64,13 @@ export class FormService { } else { objectName = property; } - console.log('objectName', objectName); - console.log('objectName value', partialUpdateObject[property]); + const pathText = "'{" + objectName + "}'"; const newValue = '\'"' + partialUpdateObject[property] + '"\''; - console.log(pathText, newValue); + await this.formRepository .createQueryBuilder()