Skip to content

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

Open
the-glu wants to merge 20 commits into
interuss:masterfrom
Orbitalize:memstore_scd_cleanup_legacy
Open

the-glu wants to merge 20 commits 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 from 21ec707 to f2aa4d9 Compare June 22, 2026 12:26

@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

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

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

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.

4 participants