Update targets to new listing method (#2045)

This uses the prefetch method to fetch resource IDs and validate them
for authz by the user before then fetching the full list of targets.
This commit is contained in:
Jeff Mitchell authored and Timothy Messier committed 2022-04-29 16:33:44 -04:00
1 parent 21b0d584ad
commit 4cf2a87e8d
8 files changed
+150 -23

No files matched your search

+6
View File
@@ -43,5 +43,11 @@ final (action, library_id) as (
)
select * from final
order by action, library_id;
`
targetPublicIdList = `
select public_id, scope_id from target
%s
;
`
)