pit/issues/libpit/0017ts3.rst

27 lines
772 B
ReStructuredText
Raw Normal View History

Creating a new issue bases the next id only on the filtered issues.
===================================================================
Problem
-------
This represents a more systematic error. Filtering should be applied when
viewing the data only, not when loading the data. It is possible that
operations may need the full data to modify parts of it.
Solution
--------
Remove filtering fromt he project and issue construction. Double check that
filtering is correctly applied during all the access methods (eachIssue,
eachProject, each)
Testing
-------
Updated ProjectTest.testConstruction() to reflect changes.
Added a test to ProjectTest.testCreateNewIssue() that needs to count a closed
task to correctly generate a new id.
TODO: Need to create filter tests.