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

Change OpLogFilter::agent_id to be optional #826

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

henry0715-dev
Copy link
Contributor

@henry0715-dev henry0715-dev commented Sep 11, 2024

Close #724

The RocksDB keys in the oplog are currently in the form agent_id-0-timestamp. This change modifies the keys to the form timestamp-0-sequence.

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 88.70674% with 62 lines in your changes missing coverage. Please review.

Project coverage is 77.45%. Comparing base (3096144) to head (4bef708).

Files with missing lines Patch % Lines
src/ingest.rs 16.66% 25 Missing ⚠️
src/storage.rs 63.46% 19 Missing ⚠️
src/graphql.rs 92.41% 11 Missing ⚠️
src/graphql/log.rs 91.30% 2 Missing ⚠️
src/ingest/generation.rs 93.54% 2 Missing ⚠️
src/storage/migration.rs 97.01% 2 Missing ⚠️
src/storage/migration/migration_structures.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #826      +/-   ##
==========================================
+ Coverage   76.98%   77.45%   +0.46%     
==========================================
  Files          31       32       +1     
  Lines       24875    25362     +487     
==========================================
+ Hits        19151    19643     +492     
+ Misses       5724     5719       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@henry0715-dev henry0715-dev changed the title [Draft] Temp commit for OpLogFilter development direction Change OpLogFilter::agent_id to be optional Nov 4, 2024
@henry0715-dev henry0715-dev marked this pull request as ready for review November 4, 2024 08:55
@henry0715-dev henry0715-dev force-pushed the henry/op-log-filter branch 2 times, most recently from 6b211c0 to be77ab4 Compare November 5, 2024 03:53
@sophie-cluml sophie-cluml self-requested a review November 7, 2024 06:39
@@ -216,6 +221,20 @@ fn migrate_0_19_to_0_21_0(db: &Database) -> Result<()> {
Ok(())
}

#[allow(clippy::too_many_lines)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please remove the #[allow(clippy::too_many_lines)]?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change has been completed.
Thank you.

Close #724

The RocksDB keys in the `oplog` are currently in the form agent_id-0-timestamp.
This change modifies the keys to the form timestamp-0-sequence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change OpLogFilter::agent_id to be optional
2 participants