Skip to content

Conversation

@qiushihe
Copy link
Contributor

📝 Description

🔗 Jira Ticket M2-8113

This PR removes the await cleanupData() from the "log out" hook.

The call was previously erroneously added by me. I thought it was an oversight that entity record/progression data were not cleared upon log out. I didn't realize retaining those data was an intended behaviour. So this PR removes the call to restore the previously intentional behaviour of not clearing entity record/progression data on log out.

📸 Screenshots

N/A

🪤 Peer Testing

  1. Log into the mobile app
  2. Start an activity but do not complete it
  3. Exit the activity
  4. Log out
  5. Re-log into the mobile app
  6. Resume the activity

... at this point, the activity should resume from where it was left off before existing and logging out.

✏️ Notes

N/A

@qiushihe qiushihe requested a review from farmerpaul October 28, 2024 20:16
@qiushihe qiushihe changed the title fix: retaining local data on log out fix: retaining local data on log out (M2-8113) Oct 28, 2024
@farmerpaul farmerpaul requested a review from mbanting October 28, 2024 20:58
Copy link
Contributor

@farmerpaul farmerpaul left a comment

Choose a reason for hiding this comment

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

LGTM

@qiushihe qiushihe merged commit bdefb85 into dev Oct 29, 2024
4 checks passed
@qiushihe qiushihe deleted the fix/m2-8113-data-on-logout branch October 29, 2024 15:56
farmerpaul added a commit that referenced this pull request Oct 31, 2024
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