-
Notifications
You must be signed in to change notification settings - Fork 205
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
Command dedup: add columns to completions in append-only schemas [KVL-1057] #10652
Merged
fabiotudone-da
merged 48 commits into
main
from
fabiotudone-da/command-dedup/index-db-add-info-to-completions
Aug 31, 2021
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
8dfedb4
Augment completion.proto with deduplication-related info
fabiotudone-da 9768373
Merge branch 'main' into fabiotudone-da/command-dedup/ledger-api-comp…
fabiotudone-da e43f2fc
Explicitly specify fields not yet filled in when building Completion
fabiotudone-da d566b97
Time-based deduplication periods are measured in record time of compl…
fabiotudone-da 89336ab
Add deduplication_offset as a deduplication_period option
fabiotudone-da eb14dd9
Don't skip proto field numbers
fabiotudone-da 1ba2045
CompletionFromTransaction: use default Completion constructor
fabiotudone-da efa01ff
submission_rank: reserve proto field for future use
fabiotudone-da 73fd7a2
Add comment about reserved proto field
fabiotudone-da 8e54bb5
Add command deduplication columns to completions in append-only schemas
fabiotudone-da 35c6ded
Merge branch 'main' into fabiotudone-da/command-dedup/index-db-add-in…
fabiotudone-da 8079673
Remove duplicated `application_id` field from Postgres and H2 schemas
fabiotudone-da 3e5fa10
Make `application_id` and `submission_id` nullable
fabiotudone-da f68a130
Re-generate migrations' sha256
fabiotudone-da abf65e3
Merge branch 'main' into fabiotudone-da/command-dedup/index-db-add-in…
fabiotudone-da 0cb77e4
Tidy-up
fabiotudone-da 1cab32b
Add RW logic for new command dedup columns in completions
fabiotudone-da 156dae8
Merge branch 'main' into fabiotudone-da/command-dedup/index-db-add-in…
fabiotudone-da 6db6a86
Declare `deduplication_start` as a nullable column
fabiotudone-da 484db4a
Fix UpdateToDbDtoSpec
fabiotudone-da 8dbe592
Fix merge from main
fabiotudone-da 19856a2
Replace Either3 with an ADT in StorageBackendTestValues
fabiotudone-da 2ba045d
Test with non-zero nanos
fabiotudone-da 477e219
Fix UpdateToDbDtoSpec
fabiotudone-da 1432308
Also change Schema.scala
fabiotudone-da 0e27dbe
Simplify DbDto.CommandCompletion construction
fabiotudone-da b7c86d7
Merge branch 'main' into fabiotudone-da/command-dedup/index-db-add-in…
fabiotudone-da 39ded6d
Fix merge from `main` (migration SHAs and filename)
fabiotudone-da 15223de
Fix UpdateToDbDto: restore transactionId
fabiotudone-da 24d1d6e
Fix completions' application_id: it must be non-nullable in all schem…
fabiotudone-da eb44d3c
Actually use newly read columns
fabiotudone-da 5643b95
Add DB round-trip tests for new fields in StorageBackendTestValues
fabiotudone-da 51ab254
Format
fabiotudone-da 87da1dd
StorageBackendTestValues: property type someSubmissionId
fabiotudone-da 482891e
UpdateToDbDto: remove duplicated logic
fabiotudone-da 804c99e
Simplify UpdateToDbDto.commandCompletion
fabiotudone-da f32346e
Fix comment in CompletionFromTransaction.toApiDeduplicationPeriod
fabiotudone-da 4ebd1e0
Fix CompletionFromTransaction.toApiCompletion
fabiotudone-da b1bc3d4
Fix deduplication_offset in Schema
fabiotudone-da 85ed113
Make parameters explicit in CompletionFromTransaction and CompletionS…
fabiotudone-da 8da5af0
Shorten error message in CompletionFromTransaction
fabiotudone-da 166cd83
Fix StorageBackendTestsCompletions
fabiotudone-da 3b7a9e5
Fix CompletionFromTransaction
fabiotudone-da bde3d1e
Separate command dedup-related test cases in UpdateToDbDtoSpec
fabiotudone-da 4a94562
Simplify further UpdateToDbDto.commandCompletion
fabiotudone-da 2749c75
Simplify CompletionFromTransaction.toApiCompletion
fabiotudone-da db74dd0
Format
fabiotudone-da 9c305fc
Merge branch 'main' into fabiotudone-da/command-dedup/index-db-add-in…
fabiotudone-da File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add DB round-trip tests for new fields in StorageBackendTestValues
- Loading branch information
commit 5643b95f2c15ba95bde2a0e5c4edbe21b5fbc4aa
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this a
Ref.SubmissionId
? All othersome*
values are properly typed as well.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
87da1dd