-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: add missing course properties in IAP restore & unfulfilled events #82
Conversation
fixes: LEARNER-10309
fixes: LEARNER-10309
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.
We have four additional improvements to address that I forgot to mention in the underline ticket:
- Ensure the unfulfilled flow functions correctly, even when there's only a single course.
- Trigger
CourseUpgradeSuccess
regardless of the user's choice on the Unfulfilled Refresh-or-Continue dialog. - Include these properties in the
CourseUpgradeSuccess
event during the unfulfilled flow. - Since the flow sends only one event for all unfulfilled courses, it's better to limit it to one process per session or click to ensure the correct number of
CourseUpgradeSuccess
events are sent.
Thank you!
core/src/main/java/org/openedx/core/domain/interactor/IAPInteractor.kt
Outdated
Show resolved
Hide resolved
aef2823
to
3e7c595
Compare
done.
done.
done.
done. |
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
Refresh Now
sends anotherCourse Upgrade Success
event - No properties available in
Course Upgrade Success
after Restore Purchase
core/src/main/java/org/openedx/core/domain/interactor/IAPInteractor.kt
Outdated
Show resolved
Hide resolved
core/src/main/java/org/openedx/core/domain/interactor/IAPInteractor.kt
Outdated
Show resolved
Hide resolved
course/src/main/java/org/openedx/course/presentation/container/CourseContainerViewModel.kt
Show resolved
Hide resolved
core/src/main/java/org/openedx/core/presentation/iap/IAPViewModel.kt
Outdated
Show resolved
Hide resolved
fixed.
added. |
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
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.
I tested the following flows, and the Payment:Course Upgrade Success
event is firing as expected with all the necessary properties needed in Analytics:
Tested Flows:
- Restore Mode
- Silent Mode
- Enrollments Screen
- Dashboard Screen
- Expired Screen
…nts (#82) * chore: add missing course properties in IAP unfulfilled event * chore: add missing course properties in IAP restore purchases event fixes: LEARNER-10309
Description
Jira: LEARNER-10309