Files
taskwarrior-2.x/src
Tomas Babej d54c7e090e Task: Correctly handle bulk removal of virtual tags/depends attributes
This edge case would happen if a user issued a following command

    $ task 1 mod depends:
or

    $ task 1 mod tags:

which would not perform as expected for tasks with non-empty depends /
tags attributes.

The problem under the hood is the fact that current synchronization
between 'tags" attribute and its constituent decomposed `tag_X`
attributes is performed in a way where the set of tags obtained from
`tag_X` attributes is taken as the source of truth.

If the legacy 'tags:' attribute was set to empty, the fixTags() method
would then restore its previous value from the `tag_X` attributes,
effectively leading to a no-op.

The same happens with dependencies. The fix here is to detect removal of
depends and tags attributes, and instead of setting the legacy
attributes to empty values, we iteratively remove all tags/dependencies.

Closes #2655.
2021-11-22 15:51:27 +01:00
..
2016-06-25 17:28:15 -04:00
2011-07-16 13:20:26 -04:00
2021-09-05 12:02:07 -04:00
2011-07-16 13:20:26 -04:00
2021-11-06 11:50:02 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2015-07-17 14:59:42 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2013-09-01 13:53:24 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00
2021-09-05 12:02:07 -04:00