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

fix: add applets refresh after answers submission (M2-8144) #884

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

qiushihe
Copy link
Contributor

@qiushihe qiushihe commented Oct 30, 2024

📝 Description

🔗 Jira Ticket M2-8144

This PR adds an extra step to refresh applets data after answers are submitted.

This addition is meant to address the issue in M2-8144, where when an daily activity is completed via notification, the activity does not disappear from the list of activities. In that case, the activity would disappear from the list if the user goes to refresh the applet. So this PR inserts the same refresh call to the end of the answers submission queue processor. So now, regardless if a activity is completed from the activities listing screen, or from notification, the applets will be refreshed after answers submission.

📸 Screenshots

N/A

🪤 Peer Testing

  1. Create an applet
  2. Create an activity
  3. Set the activity as "daily", and attach a notification
  4. Log into the mobile app
  5. Navigate to the activities listing screen
  6. Exit the mobile app ... and wait for notification to show up
  7. Tap no notification
  8. Complete the activity

At this point, the just completed activity should no longer appear in the activities listing screen.

✏️ Notes

N/A

@sultanofcardio sultanofcardio self-requested a review October 30, 2024 22:15
Copy link
Contributor

@mbanting mbanting left a comment

Choose a reason for hiding this comment

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

Verified this fixes the issue. Out of curiosity, I also tested this with an older version, 2.3.1 and the issue wasn't there. So this was introduced in 2.4.0. Ideally we revisit this and determine what the root cause is (I'll add a task to the backlog), but refreshing can work in the interim. Code LGTM. Thanks @qiushihe

@qiushihe qiushihe merged commit 34b9471 into dev Oct 30, 2024
4 checks passed
mbanting pushed a commit that referenced this pull request Oct 31, 2024
Co-authored-by: Billie He <billy@metalab.com>
@sultanofcardio sultanofcardio deleted the fix/m2-8144-post-submission-refresh branch October 31, 2024 00:31
farmerpaul added a commit that referenced this pull request Oct 31, 2024
farmerpaul added a commit that referenced this pull request Oct 31, 2024
farmerpaul added a commit that referenced this pull request Oct 31, 2024
…" (M2-8144) (#887)

* Revert "chore: add applets refresh after answers submission (#884)"

This reverts commit 34b9471.

* chore: bump version 2.5.0 (1594)
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.

2 participants