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

BUG: miroir-store-indexedDb clear does not work #31

Open
miroir-framework opened this issue May 30, 2024 · 0 comments
Open

BUG: miroir-store-indexedDb clear does not work #31

miroir-framework opened this issue May 30, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@miroir-framework
Copy link
Owner

When IndexedDbEntityStoreSectionMixin.clear() is called from test-utils/miroirBeforeEach, event though the store has been opened, the list of existing entities is empty, and the clear() operation does nothing:

handleAction deploymentUuid f714bb2f-a12d-4e71-a03b-74dcedea6eb4 actionName resetModel actionType modelAction objects undefined
DomainController handleAction domainAction {
  actionType: 'modelAction',
  actionName: 'resetModel',
  endpoint: '7947ae40-eb34-4149-887b-15a9021e714e',
  deploymentUuid: 'f714bb2f-a12d-4e71-a03b-74dcedea6eb4'
}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ DomainController handleModelAction START actionName= resetModel deployment f714bb2f-a12d-4e71-a03b-74dcedea6eb4 action {
  actionType: 'modelAction',
  actionName: 'resetModel',
  endpoint: '7947ae40-eb34-4149-887b-15a9021e714e',
  deploymentUuid: 'f714bb2f-a12d-4e71-a03b-74dcedea6eb4'
}
[12:49:01] info (4_miroir-core_PersistenceStoreController) -handleAction action {
  actionType: 'modelAction',
  actionName: 'resetModel',
  endpoint: '7947ae40-eb34-4149-887b-15a9021e714e',
  deploymentUuid: 'f714bb2f-a12d-4e71-a03b-74dcedea6eb4'
}
[12:49:01] info (4_miroir-core_PersistenceStoreController) -PersistenceStoreController indexedDb-app-model clear []
[12:49:01] info (4_miroir-store-indexedDb_IndexedDbEntityStoreSectionMixin) -IndexedDbModelStoreSection indexedDb-app-model clear DONE []
CallUtils callPersistenceAction received result {
  status: 'ok',
  returnedDomainElement: { elementType: 'void', elementValue: undefined }
}
CallUtils callPersistenceAction ok {
  status: 'ok',
  returnedDomainElement: { elementType: 'void', elementValue: undefined }
}
@miroir-framework miroir-framework added the bug Something isn't working label May 30, 2024
@miroir-framework miroir-framework added this to the Miroir 0.5.0 milestone May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant