-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
waivers/+filtered API endpoint: handle scenarios (#431)
The FilteredWaiversResource method which backs this endpoint tries to find only 'current' waivers by grouping all waivers by subject_type, subject_identifier and testcase, then taking only the highest-numbered waiver from each group. This breaks if we have multiple waivers for the same subject and testcase but with different scenarios - the endpoint will only return one waiver, the one with the highest ID, and will not return the valid and current waivers for other scenarios as it should. Signed-off-by: Adam Williamson <awilliam@redhat.com>
- Loading branch information
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters