Skip to content

Fix blueprint sync by bringing back store_one_component#2396

Merged
jleibs merged 3 commits intomainfrom
cmc/fix_everything_being_broken
Jun 12, 2023
Merged

Fix blueprint sync by bringing back store_one_component#2396
jleibs merged 3 commits intomainfrom
cmc/fix_everything_being_broken

Conversation

@teh-cmc
Copy link
Copy Markdown
Contributor

@teh-cmc teh-cmc commented Jun 12, 2023

Turns out store_one_component is more than a datastore helper... it actually updates a whole bunch of secondary/derived datastructures at the same time.

At some point we should really start moving towards a reactive model where secondary indices merely subscribe to the changelog of a single source of truth and react appropriately.

Supersedes #2395

@teh-cmc teh-cmc added 📺 re_viewer affects re_viewer itself 🦟 regression A thing that used to work in an earlier release labels Jun 12, 2023
Copy link
Copy Markdown
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Without having looked at this yet: Should the insert_component footgun have a warning in its docstring, or be renamed or removed?

@teh-cmc
Copy link
Copy Markdown
Contributor Author

teh-cmc commented Jun 12, 2023

Without having looked at this yet: Should the insert_component footgun have a warning in its docstring, or be renamed or removed?

I'd argue the footgun is actually store_one_component and the way we have multiple datastructures that act as primary... :/

But in any case you're right that that's an issue for later, I'll add a comment to not remove store_one_component in the meantime 😬

Copy link
Copy Markdown
Contributor

@jleibs jleibs left a comment

Choose a reason for hiding this comment

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

There's clearly some discussion to be had here on naming, but approving/merging to unbreak main.

@jleibs jleibs merged commit 942af69 into main Jun 12, 2023
@jleibs jleibs deleted the cmc/fix_everything_being_broken branch June 12, 2023 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📺 re_viewer affects re_viewer itself 🦟 regression A thing that used to work in an earlier release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants