-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: modify recon store to support event validation concepts (#473)
* feat: use struct to inject recon protocol behavior * feat: modify recon and store traits to return a struct to return valid/invalid item context * feat: track and resubmit events from recon when history discovered we also explicitly hangup if the store says something is invalid * fix: don't derive Hash on types containing recon keys this probalby doesn't hurt to include, but we're particular about using our AHash so we'll leave it explicit for now * chore: review comments - rename InsertBatch -> InsertResult - use for loop in pending_cache instead of while loop - consistent Self::Key usage in trait * fix: track pending as vec (will delete this shortly) * feat: store returns information about event validation - recon pending tracking simplified to just retry every batch since we should get items close together - fixes a bug where any event in an api batch that was invalid could have crashed the entire batch (now only that one gets an error) - TODO: still need to modify the service to have a better validation hook that keeps track of the data we need to return so we don't have to iterate back through or lose info along the way * feat: simplify pending event tracking and add initial event validation phases * chore: clean up and review comments * feat: add labels to invalid recon item metric
- Loading branch information
Showing
19 changed files
with
407 additions
and
184 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
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
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
Oops, something went wrong.