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

Event Sourcing - Next Steps #3911

Closed
dorner opened this issue Oct 15, 2023 · 3 comments
Closed

Event Sourcing - Next Steps #3911

dorner opened this issue Oct 15, 2023 · 3 comments
Labels
core team Groomed but likely needs expert knowledge stale

Comments

@dorner
Copy link
Collaborator

dorner commented Oct 15, 2023

Summary

  • Add a method to validate current inventory against event sourced inventory.
  • Whenever an event is being created, validate it.
  • If a validation fails, add a yellow notice to the UI indicating the discrepancy.
  • Create an inventory_discrepancies table.
  • If there is a discrepancy between the event sourcing calculation of current inventory and the DB, add a log to to the table including the diff as well as the user e-mail, controller action and parameters which caused it.
  • We should audit this table at least once a week and figure out what to do with the discrepancies.
  • We should add a button to the superadmin UI to resync a single organization or all organizations.
  • We should update the logic to build inventory by only starting from the most recent SnapshotEvent.

Things to consider

No response

Criteria for Completion

No response

@dorner dorner self-assigned this Oct 15, 2023
@dorner dorner added the core team Groomed but likely needs expert knowledge label Oct 15, 2023
Copy link
Contributor

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

Copy link
Contributor

Automatically unassigned after 7 days of inactivity.

@dorner
Copy link
Collaborator Author

dorner commented May 24, 2024

We're tracking this outside of the issues now, so I'm closing this.

@dorner dorner closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core team Groomed but likely needs expert knowledge stale
Projects
None yet
Development

No branches or pull requests

1 participant