Skip to content
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

feat(release): ds8j #278

Merged
merged 78 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
25db53e
chore(deps): bump undici from 5.28.3 to 5.28.4
dependabot[bot] Apr 24, 2024
713a646
chore(deps): bump tar from 6.2.0 to 6.2.1
dependabot[bot] May 6, 2024
b79489c
feat(DS8J): implementation
benjaminDNUM May 30, 2024
d8a5bb9
Merge pull request #225 from SocialGouv/feat/declaration-8-jours-FUsager
benjaminDNUM May 30, 2024
aaa1512
fix: autoscale prod
matmut7 May 31, 2024
456ce7f
chore(deps): update all non-major dev dependencies
renovate[bot] May 31, 2024
61f5805
chore: clean workflows
gary-van-woerkens Jun 3, 2024
30181a0
Merge pull request #238 from SocialGouv/feat/declaration-8-jours
benjaminDNUM Jun 3, 2024
88398dd
Merge pull request #236 from SocialGouv/chore/workflows-cleaning
benjaminDNUM Jun 3, 2024
ad5392d
feat(DS8J-BO): display DS8J
benjaminDNUM Jun 3, 2024
144d5f3
fix(wording): ajouter nom dans le message d'acceuil #308
benjaminDNUM Jun 4, 2024
ea914c7
Merge pull request #240 from SocialGouv/feat/#308-f-usager-accueil-mo…
benjaminDNUM Jun 4, 2024
fccfa33
Merge pull request #239 from SocialGouv/feat/#349-en-tant-que-ddets-j…
benjaminDNUM Jun 5, 2024
bd0c342
fix(pdf): correction erreur generation pdf arrete maire
l-scherer Jun 3, 2024
9290cf2
feat(ds8j): workflow complet ds8j #350 #351 #353 #348
l-scherer Jun 4, 2024
6191a9a
Merge pull request #241 from SocialGouv/feat/bo-prise-en-charge-ds8j
l-scherer Jun 6, 2024
5ce36c6
fix(declaration-usager): ajout texte declaration définitive 334
l-scherer Jun 6, 2024
70d3d01
Merge pull request #242 from SocialGouv/fix/depot-ds8j-texte-finalisa…
l-scherer Jun 6, 2024
98a0ee5
fix(ds2m): redepose-bouton-depot-visible-334
l-scherer Jun 6, 2024
89c3a91
Merge pull request #243 from SocialGouv/fix/ds8j-bouton-depot-visible…
l-scherer Jun 6, 2024
184fa15
fix(ds8j): prestaire-datenaiss-ascenseur-h-332
l-scherer Jun 6, 2024
ed77899
Merge pull request #246 from SocialGouv/fix/masque-colonne-date-de-na…
l-scherer Jun 6, 2024
6bdad19
fix(accompagnant): wording et affichage de colonne
benjaminDNUM Jun 7, 2024
1990d93
Merge pull request #247 from SocialGouv/fix/#329-en-tant-quorganisati…
benjaminDNUM Jun 7, 2024
2331466
fix(fichier-information): wording
benjaminDNUM Jun 7, 2024
a880561
Merge pull request #248 from SocialGouv/fix/#403-f-usager-mise-a-jour…
benjaminDNUM Jun 7, 2024
cd35a44
fix(information): new file
benjaminDNUM Jun 7, 2024
d16e529
Merge pull request #249 from SocialGouv/fix/#403-nouvelle-liste-organ…
benjaminDNUM Jun 7, 2024
5c51878
xRevert "fix(information): new file"
benjaminDNUM Jun 7, 2024
105912f
Merge pull request #250 from SocialGouv/fix/rollback
benjaminDNUM Jun 7, 2024
a871c1d
fix(informations): nouveau fichier
benjaminDNUM Jun 7, 2024
0ca352f
fix/ds2m-pas-d-increment-numero-declaration-358 *$) $
l-scherer Jun 7, 2024
8d564c1
Merge pull request #252 from SocialGouv/fix/#403-new-file
benjaminDNUM Jun 7, 2024
375f821
Merge pull request #251 from SocialGouv/fix/ds2m-pas-d-increment-nume…
l-scherer Jun 10, 2024
5667f93
feat(BO-DS8J): affiche les personnels en tableau #395
benjaminDNUM Jun 6, 2024
04d3dc9
Merge pull request #244 from SocialGouv/feat/BO-meilleur-display-DS8J
l-scherer Jun 10, 2024
a501f27
feat(fusager): ajout colonne numéro déclaration #396
benjaminDNUM Jun 7, 2024
1c03ee5
Merge pull request #253 from SocialGouv/feat/396-bo-vao-ajouter-colon…
l-scherer Jun 10, 2024
62a1afd
fix(notif-ds8j): wording notification depose ds8j #348
l-scherer Jun 10, 2024
1833c7d
Merge pull request #254 from SocialGouv/fix/fusager-wording-notif-dep…
l-scherer Jun 10, 2024
2858be9
Merge pull request #255 from SocialGouv/preprod
benjaminDNUM Jun 10, 2024
01336aa
fix(BO-valid-ds2m): correction des dates mail notif #363
l-scherer Jun 10, 2024
09245d7
Merge pull request #256 from SocialGouv/fix/ds2m-erreur-dates-notif-m…
l-scherer Jun 10, 2024
83bd1b8
fix(fusager-bo): prestataire compétences devient compétence expérience
l-scherer Jun 10, 2024
3420e23
Merge pull request #257 from SocialGouv/fix/Fusager-competence-experi…
l-scherer Jun 10, 2024
f3b7d89
chore: update pg backup name
gary-van-woerkens Jun 10, 2024
4fbdd5b
feat: duplication DS remise à jour
vincent-carcel Jun 10, 2024
ac87bb7
fix(deps): update all non-major dependencies
renovate[bot] Jun 11, 2024
2fe8c03
Merge pull request #260 from SocialGouv/feat-duplication-ds-v2
vincent-carcel Jun 11, 2024
c892176
fix: Bug à l'ajout en copier/coller via le tableur - 412
vincent-carcel Jun 11, 2024
09ab522
fix: Corriger l'ordre des champs dans le tableur - 413
vincent-carcel Jun 11, 2024
cff0677
fix: modifier la mise en page de l'ajout de personnel - 414
vincent-carcel Jun 11, 2024
6aa1423
fix: modif affichage synthese
vincent-carcel Jun 12, 2024
88a537a
fix: maj placeholder
vincent-carcel Jun 12, 2024
10b3c43
Merge pull request #261 from SocialGouv/fix-VAO-412-Bug-ajout-copier-…
vincent-carcel Jun 12, 2024
39f0cf2
chore(deps): bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 12, 2024
3f51974
fix: correction bugs 419-420
vincent-carcel Jun 13, 2024
b019e7d
Merge pull request #264 from SocialGouv/fix-VAO-419-420-bug-divers
vincent-carcel Jun 13, 2024
6e01d62
Merge pull request #131 from SocialGouv/dependabot/npm_and_yarn/undic…
vincent-carcel Jun 13, 2024
2f4963c
Merge pull request #144 from SocialGouv/dependabot/npm_and_yarn/tar-6…
vincent-carcel Jun 13, 2024
784a45f
Merge pull request #232 from SocialGouv/renovate/all-devdependencies-…
vincent-carcel Jun 13, 2024
1624a62
Merge pull request #263 from SocialGouv/dependabot/npm_and_yarn/brace…
vincent-carcel Jun 13, 2024
f0b7204
Merge pull request #233 from SocialGouv/renovate/all-dependencies-min…
vincent-carcel Jun 13, 2024
6fef23b
Merge pull request #231 from SocialGouv/fix/autoscale-prod
vincent-carcel Jun 13, 2024
b6a683b
fix:date naissance incongrue et affichage personnel
vincent-carcel Jun 13, 2024
292cca5
Merge pull request #265 from SocialGouv/feat-414-420-retour-recette
vincent-carcel Jun 13, 2024
92c0164
chore: remove unused backup field
matmut7 Jun 13, 2024
422c80f
Merge branch 'main' into preprod
benjaminDNUM Jun 13, 2024
e1c2f27
Merge pull request #267 from SocialGouv/preprod
benjaminDNUM Jun 13, 2024
9e0f5b0
fix(AR-2M-8J): génération des AR uniquement à la validation par le
l-scherer Jun 14, 2024
4b60536
Merge pull request #269 from SocialGouv/fix/fusager-plus-de-generatio…
l-scherer Jun 14, 2024
13a8810
fix: bug sur composant personnel sur Chrome et Edge (#270)
vincent-carcel Jun 14, 2024
876e81d
feat: modif cerfa 8 jours (#271)
vincent-carcel Jun 14, 2024
2f8b0fa
fix: correctif tableFull (#272)
vincent-carcel Jun 17, 2024
cf8d62b
feat: affichage des départements d'hebergements (#273)
vincent-carcel Jun 17, 2024
ca65cd9
fix(ds8J-update): utilise le bon id pour l'update des personnes (#274)
benjaminDNUM Jun 18, 2024
6afdde8
fix: pas de display de la date depot 2 mois si non presente (#275)
benjaminDNUM Jun 18, 2024
97d9c2c
fix: correction typo cerfa (#277)
vincent-carcel Jun 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/deactivate.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: ♻️ Deactivate
on:
pull_request:
types: [closed]
delete:
branches:
- "**"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/review-auto.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 👓 Review Auto
on:
workflow_dispatch:
push:
branches:
- main
Expand Down
8 changes: 7 additions & 1 deletion .kontinuous/env/prod/values.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
backend:
autoscale:
enabled: true
host: api-vao.social.gouv.fr
redirectFrom:
- "api-{{ .Values.global.host }}"

frontend-usagers:
autoscale:
enabled: true
host: vao.social.gouv.fr
redirectFrom:
- "{{ .Values.global.host }}"

frontend-bo:
autoscale:
enabled: true
host: admin-vao.social.gouv.fr
redirectFrom:
- "bo-{{ .Values.global.host }}"
Expand All @@ -28,4 +34,4 @@ jobs:
NUXT_PUBLIC_APP_VERSION: "{{ .Values.global.gitBranch }}"
NUXT_PUBLIC_BACKEND_URL: "https://api-vao.social.gouv.fr"
NUXT_PUBLIC_ENVIRONMENT: "production"
NUXT_PUBLIC_SENTRY_ENABLED: "true"
NUXT_PUBLIC_SENTRY_ENABLED: "true"
12 changes: 1 addition & 11 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ fileignoreconfig:
- filename: packages/frontend-bo/src/components/demandes-sejour/Details.vue
checksum: 2fcd6dcc607405fbbdf7dc8c5b9cf6229e8a65593503b5ebb55786b9788c514f
- filename: packages/frontend-bo/src/components/demandes-sejour/DisplayFormulaire.vue
checksum: 7ca8cd5ca845caecf1d10ba0af46a4cff4e4f22537d7ba703ea04680143f8de0
checksum: 0c1ba679433b38f376fbbecfa020e9e7375c8a816ac43b1e46ab2225e9f19342
- filename: packages/frontend-bo/src/components/demandes-sejour/DisplayPj.vue
checksum: 7416e86be161886c048c7108e2ef95027e0dbaa858d2b4961e1effa469e98901
- filename: packages/frontend-bo/src/components/utils/TableFull.vue
Expand Down Expand Up @@ -216,13 +216,3 @@ fileignoreconfig:
scopeconfig:
- scope: node
version: "1.0"
aa193faebb2d
- filename: pg/scripts/03/03-3-front-data.sql
checksum: 413817c8133c69f883087a7042258dcb75e4f75a45897ea830f86d8a5cba561a
- filename: pg/scripts/03/03-3-ref-data.sql
checksum: 0738f07a54568f11530944b7dd793718435c7b1ab6cc6eacf6739f380fb1eb83
- filename: pg/seeds/BO-1-back-user.sql
checksum: 2261cabf80475ffa0c06e59760d4a89ea3331b81062fe5e8640745741a562995
scopeconfig:
- scope: node
version: "1.0"
4 changes: 2 additions & 2 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "nodemon --inspect=0.0.0.0:9229 src/index.js"
},
"dependencies": {
"@sentry/node": "~7.109.0",
"@sentry/node": "~7.117.0",
"axios": "^1.6.8",
"body-parser": "~1.20.2",
"cookie-parser": "^1.4.6",
Expand All @@ -21,7 +21,7 @@
"helmet": "~7.1.0",
"jsonwebtoken": "^9.0.2",
"multer": "^1.4.5-lts.1",
"pg": "~8.11.3",
"pg": "~8.12.0",
"pg-format": "~1.0.4",
"yup": "~1.4.0",
"nodemailer": "^6.9.13",
Expand Down
76 changes: 76 additions & 0 deletions packages/backend/src/controllers/demandeSejour/copy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
const DemandeSejour = require("../../services/DemandeSejour");
const Organisme = require("../../services/Organisme");
const { statuts } = require("../../helpers/ds-statuts");

const logger = require("../../utils/logger");
const AppError = require("../../utils/error");

const log = logger(module.filename);

module.exports = async function post(req, res, next) {
const demandeSejourId = req.params.id;
const { id: userId } = req.decoded;

log.i("IN", { demandeSejourId });

try {
const organisme = await Organisme.getOne({
use_id: userId,
});
const sourceDeclaration = await DemandeSejour.getOne({
"ds.id": demandeSejourId,
"o.id": organisme.organismeId,
});

if (!sourceDeclaration) {
log.w("DONE with error");
return next(
new AppError("Déclaration non trouvée", {
statusCode: 404,
}),
);
}

if (
sourceDeclaration.statut !== statuts.BROUILLON &&
sourceDeclaration.statut !== statuts.TRANSMISE &&
sourceDeclaration.statut !== statuts.EN_COURS
) {
log.w("DONE with error");
return next(
new AppError("Le statut de la déclaration ne permet pas sa copie", {
statusCode: 404,
}),
);
}

sourceDeclaration.files = sourceDeclaration.files?.files?.filter(
(f) =>
f.type !== "declaration_2_mois" && f.type !== "AR_declaration_2_mois",
);

const demandeId = await DemandeSejour.copy(sourceDeclaration);
if (!demandeId) {
log.w("DONE with error");
return next(
new AppError("Erreur de copie", {
statusCode: 400,
}),
);
}
await DemandeSejour.insertEvent(
"Organisateur",
demandeId,
userId,
null,
"declaration_sejour",
"creation",
{},
);
log.i("DONE");

return res.status(200).json({ demandeId });
} catch (err) {
log.w(err);
}
};
62 changes: 62 additions & 0 deletions packages/backend/src/controllers/demandeSejour/delete.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
const { statuts } = require("../../helpers/ds-statuts");
const DemandeSejour = require("../../services/DemandeSejour");

const logger = require("../../utils/logger");
const AppError = require("../../utils/error");

const log = logger(module.filename);

module.exports = async function post(req, res, next) {
const demandeSejourId = req.params.id;
const { id: userId } = req.decoded;

log.i("IN", { demandeSejourId });

try {
const declaration = await DemandeSejour.getOne({
"ds.id": demandeSejourId,
});

if (!declaration) {
log.w("DONE with error");
return next(
new AppError("Déclaration non trouvée", {
statusCode: 404,
}),
);
}
log.i(declaration.statut);
if (declaration.statut !== statuts.BROUILLON) {
log.w("DONE with error");
return next(
new AppError(
"Impossible de supprimer une demande qui n'est pas au statut BROUILLON",
{
statusCode: 400,
},
),
);
}
const deletedRows = await DemandeSejour.delete(declaration.id, userId);
if (deletedRows !== 1) {
log.w(`DONE with error, ${deletedRows} rows were deleted, expected one `);
return next(
new AppError(
"Erreur de suppression, trop de lignes supprimées ou pas assez",
{
statusCode: 400,
},
),
);
}
log.i("DONE");
return res.status(200).json({ deletedRows });
} catch (err) {
log.w(err);
return next(
new AppError("Erreur de suppression", {
statusCode: 400,
}),
);
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,30 @@ module.exports = async function post(req, res, next) {
);
}

if (declaration.statut !== statuts.EN_COURS) {
if (declaration.statut !== statuts.EN_COURS && declaration.statut !== statuts.EN_COURS_8J) {
log.w("Delaration should be in statut EN COURS");
return res.status(400).json({
message: "Statut non compatible",
});
}

const AModifierType = declaration.statut === statuts.EN_COURS ? statuts.A_MODIFIER : statuts.A_MODIFIER_8J
const textTypePrecision = "Demande de compléments " + (declaration.statut === statuts.EN_COURS ? " 2 mois" : " 8 jours");
try {
const destinataires = await DemandeSejour.getEmailToList(
declaration.organismeId,
);

await DemandeSejour.updateStatut(
declarationId,
statuts.A_MODIFIER,
AModifierType,
{
boUserId: userId,
declarationId,
metaData: { commentaire },
source: `DDETS ${territoireCode}`,
type: "declaration_sejour",
typePrecision: "Demande de complémements",
typePrecision: textTypePrecision,
userId: null,
},
() =>
Expand Down
Loading
Loading