You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when you already have a needs.json with all the needs, then you remove a need and re-run the needs builder it doesn't remove the need for the json and it doesn't update the number of total needs.
If you remove the json and run needs build again it will generate the list without the removed ones, but shouldn't the list be updated with removed needs as well?
The text was updated successfully, but these errors were encountered:
You are right, the removed need should disappear from the json list.
I think we need to wipe out the complete need-list for the current doc-version from the json and create it from scratch.
So somewhere in builder.py we need to have something like this:
needs_list.load_json()
# Delete complete need-list to ensure that removed needs from rst-files are
# no longer part of the needs.json export.
needs_list.wipe_version(version)
for key, need in needs.items():
needs_list.add_need(version, need)
I noticed that when you already have a needs.json with all the needs, then you remove a need and re-run the needs builder it doesn't remove the need for the json and it doesn't update the number of total needs.
If you remove the json and run needs build again it will generate the list without the removed ones, but shouldn't the list be updated with removed needs as well?
The text was updated successfully, but these errors were encountered: