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

[Feature] Status for user who completes the program #208

Closed
2 tasks done
GauravGusain98 opened this issue Nov 23, 2021 · 3 comments
Closed
2 tasks done

[Feature] Status for user who completes the program #208

GauravGusain98 opened this issue Nov 23, 2021 · 3 comments
Assignees
Labels

Comments

@GauravGusain98
Copy link
Contributor

GauravGusain98 commented Nov 23, 2021

Is your feature request related to a problem? Please describe.
Sharing the document for different cases that may occur from user creation to user completing a program and different status that are being used or can be used in these cases.

Describe the solution you'd like

  • Build logic to find if the last content has been delivered to the user
  • Update the status of user_program to complete

Method to find last content of the user

  1. Add a field to the webhook payload of the last content of the program. We can then mark user complete based on this field. This will reduce the database query that we have to make for finding the last content of the user. Every time new content is added to the program we have to remove this new field from the old content and add it to the new content.
  2. Add a custom field for completed user
  3. Move the user to a particular group if he completes a program.

Describe alternatives you've considered
NA

Additional context
NA

@GauravGusain98
Copy link
Contributor Author

GauravGusain98 commented Dec 13, 2021

The changes are deployed in production. We just need to add the "is_last_content" field in the post body of the webhook of the last contents.

Tasks

  • Add the new field "is_last_content" to the post body of the last contents of both programs. (Reference document) @prtkdost
  • Backfill the statuses for users who have already finished the program.

GauravGusain98 added a commit that referenced this issue Dec 13, 2021
…ram-as-completed

#208 Add functionality to mark user_program as complete
@GauravGusain98
Copy link
Contributor Author

This is working fine. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants