Skip to content

Commit

Permalink
Merge branch 'master' of github.com:SocialGouv/fce
Browse files Browse the repository at this point in the history
  • Loading branch information
ImenOuidou committed Aug 8, 2024
2 parents 941f867 + 490fe7b commit f2183d8
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 19 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [27.102.0](https://github.com/SocialGouv/fce/compare/v27.101.7...v27.102.0) (2024-08-08)


### Features

* Ajout des dates de contrôles du pôle C au niveau de la fiche établissement ([#342](https://github.com/SocialGouv/fce/issues/342)) ([6e4c86e](https://github.com/SocialGouv/fce/commit/6e4c86eec9cb2c5981359beb285d8119896756d9))

## [27.101.7](https://github.com/SocialGouv/fce/compare/v27.101.6...v27.101.7) (2024-07-04)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fce",
"version": "27.101.7",
"version": "27.102.0",
"description": "",
"author": "commit42",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ const interactionsQuery = gql`
libellecommune2etablissement
}
}
interactions_C: fce_interactions_pole_c(where: { siren: { _eq: $siren } }) {
siret
date
unite
interactions_C: fce_interactions_pole_c(where: { SIRNE: { _eq: $siren } }) {
siret: SIRET
date: DATE_DERNIER_CONTROLE
unite: LIB_UC
etablissement: interactions_pole_c_siret {
etatadministratifetablissement
siret
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ const dashboardQuery = gql`
siret
}
fce_interactions_pole_c(
where: { siret: { _eq: $siret } }
order_by: { mois: desc }
where: { SIRET: { _eq: $siret } }
order_by: { DATE_DERNIER_CONTROLE: desc }
limit: 1
) {
date
date: DATE_DERNIER_CONTROLE
}
fce_interactions_pole_t(
where: { siret: { _eq: $siret } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ import { mapQueryResult } from "../../../../../utils/graphql/graphql";
import {
// normalizeInteractions3E,
// normalizeInteractions3ESRC,
// normalizeInteractionsC,
normalizeInteractionsC,
normalizeInteractionsT,
} from "../../../../../utils/interactions/interactions";

const controlesQuery = gql`
query getControles($siret: String!) {
# fce_interactions_pole_c(where: { siret: { _eq: $siret } }) {
# unite
# siret
# date
# interactions_pole_c_siret {
# denominationusuelleetablissement
# }
# }
fce_interactions_pole_c(where: { SIRET: { _eq: $siret } }) {
siret: SIRET
date: DATE_DERNIER_CONTROLE
unite: LIB_UC
interactions_pole_c_siret {
denominationusuelleetablissement
}
}
fce_interactions_pole_t(where: { siret: { _eq: $siret } }) {
date
intervenant
Expand Down Expand Up @@ -49,14 +49,14 @@ const controlesQuery = gql`
const normalizeResponsesToInteraction = ({
// fce_interactions_pole_3e,
// fce_interactions_pole_3e_src,
// fce_interactions_pole_c,
fce_interactions_pole_c,
fce_interactions_pole_t,
}) => ({
// interactions_pole_3e: normalizeInteractions3E(fce_interactions_pole_3e),
// interactions_pole_3e_src: normalizeInteractions3ESRC(
// fce_interactions_pole_3e_src
// ),
// interactions_pole_c: normalizeInteractionsC(fce_interactions_pole_c),
interactions_pole_c: normalizeInteractionsC(fce_interactions_pole_c),
interactions_pole_t: normalizeInteractionsT(fce_interactions_pole_t),
});

Expand Down

0 comments on commit f2183d8

Please sign in to comment.