#2120 Adjust the logic when filtering issues by priorities
Merged by pingou. Opened by pingou.
fix_test_priority  into  master

Download 2120.patch

In the database priorities are stored in tickets as integer so we cannot
query them as string directly.
The approach taken with this commit allows to filter by priority given
its rank (integer) or its label (name).

Thanks to faitout for pointing it out

I recommend making a new test to check this rather than adding it to an existing test. Adding it like this confuses the purpose of the test and also makes it very long and more difficult to understand. Keeping the tests short and to the point makes them easier to understand, and also makes problems easier to debug when they fail.

LGTM.

rebased

Tests have been split into two as suggested :)

Thanks for the review :)

Pull-Request has been merged by pingou

Metadata