Add filtering onto the images query in get_matching_tags_for_images
Should make the query even faster in the security notification case
This commit is contained in:
parent
d77463cc8b
commit
977bbc20a2
3 changed files with 40 additions and 18 deletions
|
@ -94,7 +94,8 @@ def test_get_matching_tag_ids_images_filtered(initialized_db):
|
|||
for image in filtered_images:
|
||||
pairs.append((image.docker_image_id, image.storage.uuid))
|
||||
|
||||
matching_tags = get_matching_tags_for_images(pairs, filter_query=filter_query)
|
||||
matching_tags = get_matching_tags_for_images(pairs, filter_images=filter_query,
|
||||
filter_tags=filter_query)
|
||||
|
||||
expected_tag_ids = set([tag.id for tag in expected_tags_query])
|
||||
matching_tags_ids = set([tag.id for tag in matching_tags])
|
||||
|
|
Reference in a new issue