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

Add a command to unregister projections #220

Merged
merged 1 commit into from
Aug 4, 2023
Merged

Conversation

the-mikedavis
Copy link
Member

Projections can be registered but not removed once they're in the store. This change adds functions to remove projections from the store by name, so if we need to alter projections in the future we can call 'unregister_projection' and then register replacements.

See #213

@the-mikedavis the-mikedavis added the enhancement New feature or request label Aug 2, 2023
@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Patch coverage: 78.57% and project coverage change: -0.16% ⚠️

Comparison is base (585970f) 89.34% compared to head (87ae146) 89.18%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #220      +/-   ##
==========================================
- Coverage   89.34%   89.18%   -0.16%     
==========================================
  Files          20       20              
  Lines        2825     2867      +42     
==========================================
+ Hits         2524     2557      +33     
- Misses        301      310       +9     
Flag Coverage Δ
erlang-24 88.10% <78.57%> (-0.22%) ⬇️
erlang-25 88.10% <78.57%> (-0.15%) ⬇️
erlang-26 88.80% <78.57%> (+0.02%) ⬆️
os-ubuntu-latest 89.18% <78.57%> (-0.09%) ⬇️
os-windows-latest 88.10% <78.57%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/khepri.erl 90.57% <33.33%> (-1.19%) ⬇️
src/khepri_pattern_tree.erl 95.00% <78.57%> (-5.00%) ⬇️
src/khepri_machine.erl 95.29% <90.00%> (-0.27%) ⬇️
src/khepri_projection.erl 83.95% <100.00%> (+0.40%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/khepri.erl Outdated Show resolved Hide resolved
Projections can be registered but not removed once they're in the store.
This change adds functions to remove projections from the store by name,
so if we need to alter projections in the future we can call
'unregister_projection' and then register replacements.
@dumbbell dumbbell merged commit cbbe2ba into main Aug 4, 2023
10 checks passed
@dumbbell dumbbell deleted the md-unregister-projection branch August 4, 2023 15:32
@dumbbell dumbbell added this to the v0.8.0 milestone Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants