-
Notifications
You must be signed in to change notification settings - Fork 71
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
🔧 Remove delete from needs.json
#1347
base: master
Are you sure you want to change the base?
Conversation
The `:delete:` option on a need directive deletes a need before creating/storing it, therefore it is literally impossible for it to be anything other than `False`.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1347 +/- ##
==========================================
+ Coverage 86.87% 87.96% +1.08%
==========================================
Files 56 60 +4
Lines 6532 7105 +573
==========================================
+ Hits 5675 6250 +575
+ Misses 857 855 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
That means a deleted requirement doesn't appear in the needs.json with the delete attribute set to true ? |
deleted items have never appeared in the needs.json; that is the purpose of the need directive maybe they do currently, if someone makes a "custom" needs.json outside of sphinx-needs and imports it in, but this also should not be allowed |
That is quite wierd. I though the purpose of this :delete: directive is to mark a requirement as "removed" and therefore, it would be a good practice to add a rational to this "delete" and then, to ensure the ID is not used by a new requirement |
Quite possibly; I didn't add If we want to ensure no other need is created with the same ID as one deleted, it would probably be better to keep track of these IDs separately. |
No, the goal of |
The
:delete:
option on a need directive deletes a need before creating/storing it, therefore it is literally impossible for it to be anything other thanFalse
.