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

🐛 FIX: Centralise splitting of need ID #1101

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Conversation

chrisjsewell
Copy link
Member

@chrisjsewell chrisjsewell commented Feb 7, 2024

Ensure the splitting of a need ID, on a . into main.part IDs, cannot except (and remove duplication of the logic)

closes #1096

Ensure the splitting of a need ID, on a `.` into main and part IDs, cannot except.
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (73b961e) 83.19% compared to head (5c36939) 83.17%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1101      +/-   ##
==========================================
- Coverage   83.19%   83.17%   -0.03%     
==========================================
  Files          56       56              
  Lines        6456     6447       -9     
==========================================
- Hits         5371     5362       -9     
  Misses       1085     1085              
Flag Coverage Δ
pytests 83.17% <100.00%> (-0.03%) ⬇️

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.

@chrisjsewell
Copy link
Member Author

Note @twodrops this will not warn if you have an ID that incorrectly has a .; it will split them into main.part, as expected.

If you wanted to warn or allow . in main IDs, we would need something a little more complex, like a configuration option to "turn-off" allowing need part IDs

@danwos danwos merged commit f6b090a into master Feb 12, 2024
18 checks passed
@danwos danwos deleted the fix/1096/dot-in-id branch February 12, 2024 08:41
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.

Sphinx-Needs throws exception when "." is used in ID
2 participants