Skip to content

Store PersistedConfiguration record registry outside of /Preferences - #58

Merged
kcooney merged 2 commits into
mainfrom
kcooney/persisted-configuration-registry
Sep 22, 2025
Merged

Store PersistedConfiguration record registry outside of /Preferences#58
kcooney merged 2 commits into
mainfrom
kcooney/persisted-configuration-registry

Conversation

@kcooney

@kcooney kcooney commented Sep 7, 2025

Copy link
Copy Markdown
Contributor

This change moves the NetworkTables keys which store which PersistedConfiguration names map to which record classes outside of /Preferences.

As of the 2025 WPILib code, Preferences has a listener that updates all new topics to be persistent (for backwards compatibility of old dashboards; see wpilibsuite/allwpilib@87fc49c66). Due to this, we cannot store data that should not be persistent under /Preferences without risking a race condition where the topic is later marked as persistent.

@kcooney kcooney closed this Sep 15, 2025
@kcooney kcooney reopened this Sep 15, 2025
@kcooney
kcooney force-pushed the kcooney/persisted-configuration-registry branch 3 times, most recently from 570f78e to 61f8bfe Compare September 17, 2025 23:52
This change moves the NetworkTables keys which store which
PersistedConfiguration names map to which record classes outside of
/Preferences.

As of the 2025 WPILib code, Preferences has a listener that updates all new
topics to be persistent (for backwards compatibility of old dashboards;
see wpilibsuite/allwpilib@87fc49c66). Due to this,
we cannot store data that should not be persistent under /Preferences without
risking a race condition where the topic is later marked as persistent.
@kcooney
kcooney force-pushed the kcooney/persisted-configuration-registry branch from 61f8bfe to 031d444 Compare September 20, 2025 00:13

@cuttestkittensrule cuttestkittensrule left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@kcooney
kcooney merged commit 26de853 into main Sep 22, 2025
1 check passed
@kcooney
kcooney deleted the kcooney/persisted-configuration-registry branch September 23, 2025 01:44
kcooney added a commit to Prospect-Robotics/Robot2025 that referenced this pull request Sep 24, 2025
kcooney added a commit to Prospect-Robotics/Robot2025 that referenced this pull request Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants