You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user is outdated by the Gatekeeper, the data stored by him is deleted alongside with the associated database data. This triggers a cascade deletion in the database that also removes all associated data from the appointments and trackers tables. However, the in-memory data cleaning in the Watcher and the Responder is not triggered by this. Instead, both components do query the Gatekeeper to get a list of what needs to be deleted.
This seems better suited to be done as a callback by the Gatekeeper. See how can we redesign the code to fit it (if we actually can).
Note: This is why the Gatekeeper is placed last in the ChainMonitor's listeners list, so the queries can be performed before the data is wiped.
The text was updated successfully, but these errors were encountered:
Indeed, we no longer have in-memory data for the watcher & responder that needs to be deleted.
Note: After #190, the Gatekeeper is placed first in the ChainMonitor's listeners list so it handles cascade deleting outdated users early before the Watcher or Responder process any of their appointments/trackers.
When a user is outdated by the
Gatekeeper
, the data stored by him is deleted alongside with the associated database data. This triggers a cascade deletion in the database that also removes all associated data from theappointments
andtrackers
tables. However, the in-memory data cleaning in theWatcher
and theResponder
is not triggered by this. Instead, both components do query theGatekeeper
to get a list of what needs to be deleted.This seems better suited to be done as a callback by the
Gatekeeper
. See how can we redesign the code to fit it (if we actually can).Note: This is why the
Gatekeeper
is placed last in theChainMonitor
's listeners list, so the queries can be performed before the data is wiped.The text was updated successfully, but these errors were encountered: