-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/#729 refacto de la table hebergement v 2 #617
base: main
Are you sure you want to change the base?
Conversation
1d067f1
to
ad40a56
Compare
ad40a56
to
1607870
Compare
1607870
to
7c1d9ed
Compare
7c1d9ed
to
4cd710b
Compare
4cd710b
to
d3f00c0
Compare
d3f00c0
to
688305d
Compare
688305d
to
e8c37f9
Compare
e8c37f9
to
b20168e
Compare
Quality Gate passedIssues Measures |
🎉 Deployment for commit b20168e : Ingresses
Docker images
|
FROM front.demande_sejour ds | ||
INNER JOIN front.organismes o ON o.id = ds.organisme_id | ||
LEFT JOIN front.agrements agr ON agr.organisme_id = ds.organisme_id | ||
WHERE ds.id = $1 | ||
`; | ||
|
||
const queryHebegements = ` | ||
SELECT DISTINCT | ||
A.DEPARTEMENT AS DEPARTEMENT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mettre au moins AS "departement" pour pas se trainer un truc bizarre dans le code
@@ -92,7 +92,14 @@ EIG.ID, | |||
DS.PERSONNEL -> 'encadrants' as "encadrants", | |||
DS.PERSONNEL -> 'accompagnants' as "accompagnants", | |||
DS.STATUT as "dsStatut", | |||
JSONB_PATH_QUERY_ARRAY(DS.HEBERGEMENT,'$.hebergements.coordonnees.adresse.label') as "adresses", | |||
(SELECT DISTINCT | |||
ARRAY_AGG(A.LABEL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mettre un alias as "label"
close jira : https://jira-mcas.atlassian.net/browse/VAO-637?atlOrigin=eyJpIjoiY2RiYmRlZmExMWQ4NDQ4ZGExMDRiN2FlOGZhZWZiNDkiLCJwIjoiaiJ9
Dans cette PR, on se debarasse de tous les appels
ds.hebergement
et des jsons dans la table hebergement pour recuperer de la données