-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rest: Filter buildsets by sourcestamp attributes
Allow the buildsets REST endpoint to filter by sourcestamp attributes. We use the 'contains' relation to filter by a set of sourcestamp attributes: buildsets?sourcestamps__contains={"ssid":26} The list of buildsets is then only listing buildsets that have a sourcetsamp with that ssid. If the sourcestamps__contains filter is used multiple times it follows the "or" semantics like the other filters. If a single filter lists multiple attributes these follow and semantics, within the filter. The filters are implemented on SQL-level. Necessary joins are only performed if this filter is actually used.
- Loading branch information
1 parent
da9092c
commit c987817
Showing
3 changed files
with
32 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
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