Skip to content

[raft/scd] Extract create and update subscription - #1645

Open
MariemBaccari wants to merge 5 commits into
interuss:masterfrom
Orbitalize:scd_extract_create_update_subscription
Open

[raft/scd] Extract create and update subscription#1645
MariemBaccari wants to merge 5 commits into
interuss:masterfrom
Orbitalize:scd_extract_create_update_subscription

Conversation

@MariemBaccari

@MariemBaccari MariemBaccari commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Chained PR: #1627 -> #1642 -> #1643 -> #1644 -> #1645 -> #1646

Extract create and update subscription business logic.

@MariemBaccari
MariemBaccari force-pushed the scd_extract_create_update_subscription branch from 6dcbb87 to d035011 Compare August 19, 2026 13:03
@MariemBaccari
MariemBaccari marked this pull request as ready for review August 19, 2026 13:10

@mickmis mickmis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(8f0b721#r3861629318) LGTM

}

// Validate and perhaps correct StartTime and EndTime.
if err := subreq.AdjustTimeRange(timestamp.MustGetRequestTimestamp(ctx), old); err != nil {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Unexpose too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dss-raft Relating to the application-layer consensus implemenation based on raft

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants