-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(frontend): update fiches service-public view (#361)
* fix(frontend): update fiches service-public view * fix: review
- Loading branch information
Lionel
authored
Mar 23, 2021
1 parent
56f41bb
commit 7a54a73
Showing
9 changed files
with
123 additions
and
30 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
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
1 change: 1 addition & 0 deletions
1
targets/hasura/migrations/1616080671217_create_fichesp_view/down.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP VIEW IF EXISTS "v1"."fiches_sp"; |
11 changes: 11 additions & 0 deletions
11
targets/hasura/migrations/1616080671217_create_fichesp_view/up.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE OR REPLACE VIEW"v1"."fiches_sp" AS | ||
SELECT | ||
fichesp.id, | ||
fichesp.status, | ||
COALESCE(documents.is_published AND documents.is_available, false) as online_status, | ||
documents.cdtn_id, | ||
documents.is_published, | ||
documents.is_available | ||
FROM service_public_contents as "fichesp" | ||
LEFT JOIN documents on fichesp.id = documents.initial_id | ||
ORDER BY online_status ASC, TRIM(leading 'F' FROM id)::INTEGER ASC; |
Empty file.
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