Skip to content

fix: Retain ticket locally when logged in #1761

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 1 commit into from
May 18, 2019
Merged

fix: Retain ticket locally when logged in #1761

merged 1 commit into from
May 18, 2019

Conversation

anhanh11001
Copy link
Contributor

Detail:

  • Retain the attendee list, order and event in the database after fetching.
    So with this PR, if there is internet connection, orders/events/attendees are fetched from the API and saved to the database, otherwise fetched from the database.

When the user logs out, all of the saved orders and attendees information will be deleted from the database.

Fixes: #1610

Screenshots for the change:
ezgif-2-dbdc9827fe7e

Detail:
- Retain the attendee list, order and event in the database after fetching. Current flow of going into OrdersUnderUserFragment is to fetch orders if there is internet, otherwise fetch saved orders from the database.

Fixes: #1610
@auto-label auto-label bot added the fix label May 14, 2019
@mariobehling mariobehling merged commit 57da219 into fossasia:development May 18, 2019
@anhanh11001 anhanh11001 deleted the 1610_store_tickets branch June 20, 2019 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store Present bought tickets Locally on device
2 participants