[raft/scd] Extract create and update subscription - #1645
Open
MariemBaccari wants to merge 5 commits into
Open
Conversation
MariemBaccari
force-pushed
the
scd_extract_create_update_subscription
branch
from
August 19, 2026 13:03
6dcbb87 to
d035011
Compare
MariemBaccari
marked this pull request as ready for review
August 19, 2026 13:10
This was referenced Aug 19, 2026
MariemBaccari
force-pushed
the
scd_extract_create_update_subscription
branch
from
August 19, 2026 14:19
d035011 to
8f0b721
Compare
This was referenced Aug 19, 2026
This was referenced Aug 20, 2026
mickmis
approved these changes
Aug 26, 2026
| } | ||
|
|
||
| // Validate and perhaps correct StartTime and EndTime. | ||
| if err := subreq.AdjustTimeRange(timestamp.MustGetRequestTimestamp(ctx), old); err != nil { |
Contributor
There was a problem hiding this comment.
FTR: checked the previous DefaultClock was never assigned to anything else than RealClock, so doing so is OK.
| } | ||
|
|
||
| // GetOperations gets operations by given ids | ||
| func GetOperations(ctx context.Context, r repos.Repository, opIDs []dssmodels.ID) ([]*scdmodels.OperationalIntent, error) { |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Chained PR: #1627 -> #1642 -> #1643 -> #1644 -> #1645 -> #1646
Extract create and update subscription business logic.