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 receive postcapture notification #310

Merged
merged 30 commits into from
Dec 10, 2020

Conversation

seanwu1105
Copy link
Contributor

@seanwu1105 seanwu1105 commented Dec 8, 2020

@seanwu1105 seanwu1105 added the enhancement New feature or request label Dec 8, 2020
@seanwu1105 seanwu1105 added this to the beta7.3 milestone Dec 8, 2020
@seanwu1105 seanwu1105 self-assigned this Dec 8, 2020
src/app/pages/home/home.page.ts Outdated Show resolved Hide resolved
@seanwu1105
Copy link
Contributor Author

@shc261392 I merge refactor-transaction branch and thus remove all polling workarounds in the app. The refactor implements the repository pattern for transactions from DIA backend. The repository will be updated (fetch the latest transaction list from the backend) when:

  1. calling getAll$() method
  2. push notification receive new transaction data

Hence, the local cache in the repository will always be update to date with the latest data from the backend.

Also, the repository will cache the transactions, and thus the loading time of getAll$() will be significantly faster after the first fetching. Finally, the transactions and their details pages have also been updated according to this refactor.

@seanwu1105 seanwu1105 merged commit f493cdb into develop Dec 10, 2020
@seanwu1105 seanwu1105 deleted the feature-receive-postcapture-notification branch December 10, 2020 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants