-
Notifications
You must be signed in to change notification settings - Fork 10
CHI-3295: use new prepopulate config in Twilio Lambda #2970
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
base: CHI-3295-formdef_package_move
Are you sure you want to change the base?
CHI-3295: use new prepopulate config in Twilio Lambda #2970
Conversation
…ependency so flex can import it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
One question: I see that only the Lambda version of pre-populate is updated here. Does this means that we intend to deploy this only after all accounts are relying on "backend contact creation"? If that's the case, could we also remove all the code regarding Flex contact creation as cleanup PR?
@@ -24,16 +24,16 @@ ENV lambda_name ${lambda_name} | |||
# copy the hrm-lib package and labmdas folders so that the file: based | |||
# dependency in package.json can be resolved | |||
COPY ${lambda_dir}/${lambda_name} /tmp/build/${lambda_dir}/${lambda_name} | |||
COPY ${lambda_dir}/../packages /tmp/build/${lambda_dir}/../packages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few github lint notes up in this file, maybe address them?
const { preEngagement: preEngagementKeys, survey: surveyKeys }: PrepopulateKeys = | ||
await loadConfigJson(formDefinitionRootUrl, 'PrepopulateKeys'); | ||
|
||
const isValidSurvey = Boolean(answers?.aboutSelf); // determines if the memory has valid values or if it was aborted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ticket says
with no chatbot survey at all, the pre-engagement form should be used to prepopulate both the caller and child tabs.
I thought aboutSelf
will be supported from preEngagementData
too. Shouldn't that be the case?
Description
Checklist
Other Related Issues
None
Verification steps
AFTER YOU MERGE
You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P