Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ChunkStore::drop_entity_path #6588

Merged
merged 4 commits into from
Jul 4, 2024
Merged

Introduce ChunkStore::drop_entity_path #6588

merged 4 commits into from
Jul 4, 2024

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Jun 18, 2024

Introduces a new API to drop an entity path in its entirety, unconditionally.

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

To run all checks from main, comment on the PR with @rerun-bot full-check.

@teh-cmc teh-cmc added ⛃ re_datastore affects the datastore itself do-not-merge Do not merge this PR include in changelog labels Jun 18, 2024
@jleibs jleibs self-requested a review June 19, 2024 12:08
@teh-cmc teh-cmc force-pushed the cmc/store_chunks_scratch branch from 014d5cb to ad29d5c Compare June 21, 2024 07:47
@teh-cmc teh-cmc force-pushed the cmc/remove_entity_api branch from 4c2f210 to 8933d3a Compare June 21, 2024 14:59
Comment on lines 223 to 230
per_start_time
.into_values()
.flat_map(|chunk_ids| chunk_ids.into_iter())
.chain(
per_end_time
.into_values()
.flat_map(|chunk_ids| chunk_ids.into_iter()),
)
Copy link
Member

Choose a reason for hiding this comment

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

No harm in being thorough, but shouldn't every chunk_id occur both in per_start_time and per_end_time? Do we actually need to iterate both of them?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nah we don't, I went a bit overboard

@teh-cmc
Copy link
Member Author

teh-cmc commented Jun 24, 2024

Reminder to get rid of the do_not_protect mechanism -- we definitely want to protect clears now... if anything we want to protect them even more than the rest.

@teh-cmc teh-cmc force-pushed the cmc/remove_entity_api branch from 8933d3a to 9bd4c62 Compare June 24, 2024 09:04
@teh-cmc teh-cmc force-pushed the cmc/store_chunks_scratch branch from 7e789be to 1e24a6b Compare July 1, 2024 09:47
@teh-cmc teh-cmc force-pushed the cmc/remove_entity_api branch from a02c43a to 07df663 Compare July 1, 2024 10:16
@teh-cmc teh-cmc force-pushed the cmc/store_chunks_scratch branch from 56207f3 to 6b42567 Compare July 4, 2024 13:39
@teh-cmc teh-cmc force-pushed the cmc/remove_entity_api branch from 07df663 to e0fbd0f Compare July 4, 2024 13:40
@teh-cmc
Copy link
Member Author

teh-cmc commented Jul 4, 2024

@rerun-bot full-check

Copy link

github-actions bot commented Jul 4, 2024

@teh-cmc teh-cmc force-pushed the cmc/store_chunks_scratch branch from 6b42567 to d304e97 Compare July 4, 2024 15:15
Base automatically changed from cmc/store_chunks_scratch to main July 4, 2024 15:15
@teh-cmc teh-cmc force-pushed the cmc/remove_entity_api branch from 64bf654 to 396555f Compare July 4, 2024 15:16
@teh-cmc teh-cmc removed the do-not-merge Do not merge this PR label Jul 4, 2024
@teh-cmc teh-cmc merged commit 84fc7f1 into main Jul 4, 2024
27 of 30 checks passed
@teh-cmc teh-cmc deleted the cmc/remove_entity_api branch July 4, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog ⛃ re_datastore affects the datastore itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants