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

khepri_tx_adv: Allow calls to khepri_path in transactions #312

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

the-mikedavis
Copy link
Member

Transactions might use functions like khepri_path:combine_with_conditions/2 to modify a path from the env with extra conditions like checking the version. khepri_path functions are all pure - with the exception of compile/1, but compiling regexes within a transaction for example should be harmless - so we should allow these within transactions.

Transactions might use functions like
`khepri_path:combine_with_conditions/2` to modify a path from the env
with extra conditions like checking the version. `khepri_path` functions
are all pure - with the exception of `compile/1`, but compiling regexes
within a transaction for example should be harmless - so we should allow
these within transactions.
@the-mikedavis the-mikedavis added the enhancement New feature or request label Dec 16, 2024
@the-mikedavis the-mikedavis added this to the v0.17.0 milestone Dec 16, 2024
@the-mikedavis the-mikedavis self-assigned this Dec 16, 2024
@the-mikedavis the-mikedavis marked this pull request as ready for review December 16, 2024 16:35
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.

Project coverage is 89.34%. Comparing base (0db160f) to head (f6c7b25).

Files with missing lines Patch % Lines
src/khepri_tx_adv.erl 0.00% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #312      +/-   ##
==========================================
- Coverage   89.58%   89.34%   -0.24%     
==========================================
  Files          22       22              
  Lines        3263     3276      +13     
==========================================
+ Hits         2923     2927       +4     
- Misses        340      349       +9     
Flag Coverage Δ
erlang-25 88.61% <0.00%> (-0.05%) ⬇️
erlang-26 89.01% <0.00%> (-0.24%) ⬇️
erlang-27 89.28% <0.00%> (-0.08%) ⬇️
os-ubuntu-latest 89.34% <0.00%> (-0.15%) ⬇️
os-windows-latest 89.25% <0.00%> (-0.08%) ⬇️

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

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

@dumbbell dumbbell merged commit 5186e9b into main Dec 17, 2024
26 checks passed
@dumbbell dumbbell deleted the md/khepri-path-in-khepri-tx branch December 17, 2024 08:41
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.

2 participants