Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
fix(dataproduct): sort datasets alphabetically in dataproduct view
Browse files Browse the repository at this point in the history
Co-authored-by: Paul B. Beskow <[email protected]>
Co-authored-by: vebjorre <[email protected]>
  • Loading branch information
3 people committed Aug 16, 2024
1 parent 29d8d74 commit 9574d52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/database/gensql/dataproducts_v2.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pkg/database/queries/dataproducts_v2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ SELECT dp.*, dsrc.last_modified as "dsrc_last_modified"
FROM dataproduct_view dp
LEFT JOIN datasource_bigquery dsrc ON dsrc.dataset_id = dp.ds_id
WHERE (array_length(@ids::uuid[], 1) IS NULL OR dp_id = ANY (@ids))
AND (array_length(@groups::TEXT[], 1) IS NULL OR dp_group = ANY (@groups));
AND (array_length(@groups::TEXT[], 1) IS NULL OR dp_group = ANY (@groups))
ORDER BY ds_name ASC;

-- name: GetDataproductsWithDatasetsAndAccessRequests :many
SELECT dp.*, dsrc.last_modified as "dsrc_last_modified",
Expand Down

0 comments on commit 9574d52

Please sign in to comment.