Skip to content

TCA-790 Delay survey if the cert is completed -> dev #432

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

Merged
merged 5 commits into from
Dec 9, 2022

Conversation

brooketopcoder
Copy link
Contributor

https://topcoder.atlassian.net/browse/TCA-526

This PR adds a delay to the survey trigger if the completed module also completes the certification.

@brooketopcoder brooketopcoder self-assigned this Dec 7, 2022
// the cert is also completed, which redirects the user to the cert page.
// So the survey needs to be delayed so that it appears on the completed
// cert page instead of the current lesson.
if (progress.certificationProgressPercentage === 100) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want to check the status == 'completed' or that the completedDate is not null instead of checking the actual percentage due to the occasional course info changes we get from FCC.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@testflyjets right! I didn't think of that!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@testflyjets @vas3a The status that comes back from the lesson completion is still in-progress. The status doesn't get changed to complete and the completedDate doesn't get set until a subsequent call.

I can move all of this logic to that other call if this data isn't stable.

Copy link
Contributor

Choose a reason for hiding this comment

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

As we discussed, this is fine, just update the check to be >= 100 to account for the FCC lesson count discrepancies.

Copy link
Contributor

@testflyjets testflyjets left a comment

Choose a reason for hiding this comment

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

Check with @vas3a on how best to check for certification completed.

… actually be more than 100% when data isn't in sync w/FCC. #time 15m
@brooketopcoder brooketopcoder merged commit c5e2a7c into dev Dec 9, 2022
@brooketopcoder brooketopcoder deleted the TCA-790_assessments branch December 9, 2022 00:02
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.

3 participants