Skip to content

[memstore/scd] Remove legacy nil cases - #1544

Open
the-glu wants to merge 1 commit into
interuss:masterfrom
Orbitalize:memstore_scd_cleanup_legacy
Open

the-glu wants to merge 1 commit into
interuss:masterfrom
Orbitalize:memstore_scd_cleanup_legacy

Conversation

@the-glu

@the-glu the-glu commented Jun 17, 2026 •

Copy link
Copy Markdown
Member

This PR follows #1538

It removes some legacy in SCD coming from sqlstore. Since Constraints/OperationalIntents/Subscriptions cannot have nil start/end time, this removes this possibility in the memstore layer. The same is done for AltitudeLower/Upper in OperationalIntents.

Tests have been adapted as well.

Contributes to #1492

@the-glu the-glu changed the title [memstore/scd] Don't allow nil value for start/end time [memstore/scd] Remove legacy nil cases Jun 17, 2026
@the-glu
the-glu force-pushed the memstore_scd_cleanup_legacy branch from 17063bf to 21ec707 Compare June 17, 2026 08:38
@barroco barroco added the dss-raft Relating to the application-layer consensus implemenation based on raft label Jun 17, 2026
@the-glu
the-glu force-pushed the memstore_scd_cleanup_legacy branch 2 times, most recently from f2aa4d9 to b32cb65 Compare June 22, 2026 12:36

@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.

LGTM modulo minor comments

Comment thread pkg/scd/store/memstore/store.go Outdated
func cloneTime(t *time.Time) *time.Time {
if t == nil {
return nil
func timePtr(t time.Time) *time.Time {

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.

Same as other: use new

Comment thread pkg/scd/store/memstore/store.go Outdated
return nil
}

func float32Ptr(f float32) *float32 {

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.

Same as other: use new

@the-glu
the-glu force-pushed the memstore_scd_cleanup_legacy branch from b32cb65 to 4343bc4 Compare October 23, 2026 08:55
@the-glu
the-glu requested a review from mickmis October 23, 2026 08:59

This branch has not been deployed

No deployments
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