-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify identity deletion process handling on second device by repub…
…lishing events (#347) * WIP: Enhance LocalAccountDTO with deletion Info * feat: try to untangle changes * feat: add getAccounts(Not)InDeletion functions * test: clean up IdentityDeletionProcessStatusChangedModule test * refactor: stuff * refactor: clean up changes * test: notes * feat: publish DatawalletSynchronizedEvent in AccountController * test: receive DatawalletSynchronizedEvent calling syncDatawallet use case * feat: use runtime event in app-runtime * feat: add DatawalletSynchronized module * chore: remove LocalAccountDeletionDateChangedModule * test: clean up IdentityDeletionProcessStatusChangedModule test * fix: DatawalletSynchronizedModule * fix: don't publish event updating LocalAccount deletionDate * fix and test: getAccounts(Not)InDeletion * test: don's skip tests * test: remove unrelated test * chore: remove dangerous getters * fix: write deletionDate to cached local account from MultiAccountController * fix: use correct apis * refactor: massively simplify tests * chore: naming * chore: more asserts * refactor: move event publish location * fix: change location of publishing * refactor: collect IDs for changed objects during datawallet sync * feat: re-publish event * refactor: update usage * chore: simplify method * refactor: remove all occurences of the DatawalletSynchronizedModule * fix: publish event * fix: for..of instead of for..in * fix: properly await events * chore: remove unused testutils * chore: use proper eventbus * chore: use for loop * refactor: allow to announce that there are changes in IdentityDeletionProcesses without having a specific * chore: simplify publishing * chore: test wording * feat: update logic * fix: tests --------- Co-authored-by: Siolto <simon.coen@js-soft.com> Co-authored-by: Milena Czierlinski <milena.czierlinski@js-soft.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
c3f5ac2
commit 745223c
Showing
21 changed files
with
244 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 0 additions & 59 deletions
59
packages/app-runtime/src/modules/runtimeEvents/DatawalletSynchronizedModule.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export * from "./DatawalletSynchronizedModule"; | ||
export * from "./IdentityDeletionProcessStatusChangedModule"; | ||
export * from "./MessageReceivedModule"; | ||
export * from "./RelationshipChangedModule"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 0 additions & 83 deletions
83
packages/app-runtime/test/modules/DatawalletSynchronizedModule.test.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.