Commit graph

1805 commits

Author SHA1 Message Date
seb-by-ouidou
9b26bf911c fix: fixes after tchak s review 2023-10-03 13:51:57 +02:00
seb-by-ouidou
44b4b5d0ab feat: rename admins_group_manager to gestionnaire 2023-10-03 13:51:57 +02:00
seb-by-ouidou
e2f792b44b FEAT: init admins group 2023-10-03 13:51:57 +02:00
krichtof
428ae4a45a
Merge pull request #9507 from demarches-simplifiees/9449-signature-groupe-instructeur
9449 ETQ instructeur ou admin, je peux apposer sur une attestation un tampon dédié à un groupe instructeur
2023-09-29 14:20:46 +00:00
Colin Darie
f942610d32
Merge pull request #9473 from demarches-simplifiees/create-export-page-V2-ldu
[Export] Créer une page d'export et sortir les liens des dropdowns
2023-09-28 17:15:31 +00:00
Colin Darie
123114be81
fix(conditional): don't .to_i/to_f => 0 an invalid number 2023-09-28 15:26:34 +02:00
Colin Darie
d4198869fb
chore(exports): dropdown menu re-uses the same pending export or create a fresh one
Pour permettre d'avoir des données fraiches dans un export tout
en conservant l'historique des exports,
la demande d'export depuis le menu créé toujours un nouvel export sauf:
- si un autre export identique est déjà en préparation
- si un autre export identique s'est terminé il y a moins de 5 minutes

Co-Authored-By: Lisa Durand <lisa.c.durand@gmail.com>
2023-09-28 15:23:31 +02:00
Colin Darie
ec46faf690
fix(exports): don't duplicate exports when belonging to multiple groupe instructeurs 2023-09-28 12:35:24 +02:00
Colin Darie
82dd05c189
chore(exports): finders by groupe instructeurs compatible across exports components
Co-Authored-By: Lisa Durand <lisa.c.durand@gmail.com>
2023-09-28 12:35:07 +02:00
Colin Darie
2cc2c9f77d
Merge pull request #9520 from demarches-simplifiees/filter-instructeur-exclude-en-attente-ldu
[instructeur] je veux pouvoir filtrer les dossiers "en construction" sans avoir ceux "en attente de corrections"
2023-09-27 11:57:35 +00:00
Eric Leroy-Terquem
774e375f44 feat(conditional): can condition on departement champ value 2023-09-27 10:22:12 +02:00
Lisa Durand
129230af88 exclude dossiers with pending correction when instructeur filters on 'en_construction' 2023-09-26 16:36:39 +02:00
Eric Leroy-Terquem
1060aadff7
Merge pull request #9504 from demarches-simplifiees/do-not-route-cloned-procedures-if-admin-is-different
Correction : désactive le routage des procédures clonées si l'admin n'est pas aussi admin de la procédure parente
2023-09-22 09:10:42 +00:00
Christophe Robillard
5482863eea add signature to groupe_instructeur 2023-09-22 10:24:16 +02:00
Eric Leroy-Terquem
70cc8dac4c fix(procedure): do not route cloned procedures from different admin 2023-09-21 15:24:17 +02:00
Eric Leroy-Terquem
5e4d96654f fix(dossier clone): always rebase cloned dossiers 2023-09-21 13:50:40 +02:00
simon lehericey
05a8fd8ee1 refactor of api_token 2023-09-20 14:11:09 +02:00
simon lehericey
40ed59a231 rename find_and_verify => authenticate 2023-09-20 14:11:09 +02:00
simon lehericey
c7afad2a88 refacto: spec 2023-09-20 14:11:09 +02:00
LeSim
e6f8400cfd
Merge pull request #9477 from demarches-simplifiees/can-route-from-epci-champ
ETQ admin je peux router par département depuis le champ EPCI
2023-09-19 08:21:26 +00:00
Colin Darie
8358fec884
fix(prefill): don't create Individual for non-individual procedures
Closes #9486
2023-09-18 16:45:02 +02:00
Eric Leroy-Terquem
0aa0b27810 test(champ value): test compute of champ value for epci tdc 2023-09-18 09:35:27 +02:00
Eric Leroy-Terquem
967139ec88 feat(routing): make routing engine work with epci champ 2023-09-18 09:32:07 +02:00
Eric Leroy-Terquem
cf7c7d9761 feat(routing): add epci to routable_types_de_champ 2023-09-18 09:32:07 +02:00
Eric Leroy-Terquem
0454d2066e
Merge pull request #9474 from demarches-simplifiees/can-route-from-commune-champ
ETQ admin je peux router par département depuis un type de champ communes
2023-09-15 08:18:24 +00:00
Colin Darie
f28739d648
Merge pull request #9372 from colinux/svr
Admin: permet l'activation du SVR
2023-09-13 12:08:39 +00:00
Colin Darie
680919a68f
feat(svr): instructor filters with svr wording specific 2023-09-13 13:50:26 +02:00
Colin Darie
e8000adecf
feat(svr): refuses automatically a dossier 2023-09-13 13:50:23 +02:00
Eric Leroy-Terquem
cdeddc6e1e test(champ value): test compute of champ value for communes tdc 2023-09-13 10:53:52 +02:00
Eric Leroy-Terquem
46ff36c2bc feat(routing): make routing engine work with commune champ 2023-09-13 10:45:21 +02:00
Eric Leroy-Terquem
50d0587a81 feat(routing): add communes to routable_types_de_champ 2023-09-13 10:45:20 +02:00
Eric Leroy-Terquem
345729a159 test(champ value): test compute of champ value for regions tdc 2023-09-13 10:22:01 +02:00
Eric Leroy-Terquem
d37fb90b2f feat(routing): make routing engine work with region champ 2023-09-13 10:22:00 +02:00
Eric Leroy-Terquem
5afaa458e2 feat(routing): add regions to routable_type_de_champ 2023-09-13 10:22:00 +02:00
krichtof
5aabce488b
Merge pull request #9425 from demarches-simplifiees/9356-service-gi
ETQ Usager, je veux voir dans mon dossier les informations de contact de mon groupe instructeur
2023-09-11 07:38:34 +00:00
Christophe Robillard
587960cfd9 clone groupe instructeur service
if admin owns original procedure
2023-09-11 08:58:04 +02:00
Christophe Robillard
46dec40543 add contact information model 2023-09-08 11:04:06 +02:00
simon lehericey
d319385d17 Add tests for prefill identity 2023-09-07 10:17:19 +02:00
simon lehericey
4cbb8e91f2 Workable draft prefill identity (no link or query help) 2023-09-07 10:17:19 +02:00
LeSim
d69636c411
Merge pull request #9230 from colinux/log-destroyed-dossiers
Tech: log technique de la destruction de dossiers
2023-09-06 14:17:57 +00:00
Colin Darie
20c7921abe
chore(log): log destroyed dossiers 2023-09-06 16:07:18 +02:00
Eric Leroy-Terquem
32b446deee refactor(groupe instructeur): add valid_rule? method
Co-authored-by: LeSim <mail@simon.lehericey.net>
2023-09-05 15:59:11 +02:00
Eric Leroy-Terquem
0cab4d9807 test(routing): test routing priorities 2023-09-05 15:59:11 +02:00
Eric Leroy-Terquem
e1ab65e62a feat(routing): can route from not_eq routing rules 2023-09-05 15:57:31 +02:00
Colin Darie
b5e2c9b860
fix(sva): improvements when a dossier has already been terminated 2023-09-04 16:09:01 +02:00
simon lehericey
fdf51b5ea1 fix: a expert merge transfers hidden procedures 2023-08-31 14:26:45 +02:00
Christian Lautier
db278e83ed add a constant for the most used test password 2023-08-31 13:40:05 +02:00
LeSim
3e193675aa
Merge pull request #9392 from demarches-simplifiees/move-groupe-instructeur-validation-to-model
Tech : déplace une validation sur le groupe d'instructeurs défaut du controleur au modèle
2023-08-31 09:45:03 +00:00
Colin Darie
c4a54fc576
Merge pull request #9426 from colinux/fix-avis-answer-sort
ETQ instructeur: fix flaky test et tri des dossiers par avis
2023-08-30 09:34:44 +00:00
Colin Darie
cf87419a19
fix(avis): table is only sortable by question_answer, answer is not exposed 2023-08-29 18:01:14 +02:00
Eric Leroy-Terquem
ca25788f07 feat(routing): use only department codes in routing rules 2023-08-29 15:50:42 +02:00
Eric Leroy-Terquem
7e3fc68c53 feat(routing): make routing engine work with departement champ 2023-08-29 15:50:42 +02:00
Eric Leroy-Terquem
ac823c1b25 feat(routing): add departements to routable_type_de_champ 2023-08-29 15:50:42 +02:00
Eric Leroy-Terquem
fc2c196cfa chore(groupe instructeur): move closed validation for defaut groupe to model 2023-08-21 16:31:54 +02:00
Martin
05687e63ca amelioration(dossier.routage): assigne le groupe d'instructeur au moment de passer_en_construction! un dossier et ignore ce concept de pre-setter le groupe d'instructeur sur tout le reste de l'app 2023-08-14 10:17:23 +02:00
Christian Lautier
5ce42afe28 Fix datetime_champ validation with negative time zone 2023-08-02 14:40:47 +02:00
Paul Chavard
e9cb50d09c feat(api): add last_authenticated_at timestamp to api requests 2023-08-02 13:22:18 +02:00
Colin Darie
fb470c1504
fix(fork): dossier forkable when associated objects to champs are not valid 2023-07-26 12:18:49 +02:00
Paul Chavard
d669e0fb45 fix flaky spec 2023-07-25 12:49:13 +02:00
seb-by-ouidou
243b8c239a feat(administrateur): add environment variable for Administrateur::UNUSED_ADMIN_THRESHOLD 2023-07-24 15:55:33 +00:00
Paul Chavard
4bc8b23a19 fix(dossier): purge motivation after repasser en instruction 2023-07-24 09:52:12 +02:00
Colin Darie
5998cfe31f refactor(correction): rename kind => reason with default correction => incorrect 2023-07-21 16:45:47 +02:00
krichtof
753731cc53
Merge pull request #9259 from demarches-simplifiees/9189-merge-api-tokens
ajoute les jetons api lors de la fusion d'un compte administrateur
2023-07-19 12:04:19 +00:00
Paul Chavard
4f4e68719a
Merge pull request #9275 from tchak/validate-geo-json
ETQ Instructeur, je veux que les GeoJSON déposés par les utilisateurs soient valides
2023-07-19 08:01:01 +00:00
Paul Chavard
47dc2cba9c
Merge pull request #9325 from tchak/fix-dpo-lien-validation
fix(procedure): accept dpo emails with accents
2023-07-18 16:27:49 +00:00
Paul Chavard
04b3a70108 feat(champ): validate GeoJSON 2023-07-18 18:01:29 +02:00
Paul Chavard
1882f652d5 fix(dossier): do not create groupe instructeur assignements on brouillons 2023-07-18 16:54:00 +02:00
Eric Leroy-Terquem
0e58e10b82 refactor(DossierAssignment): move create_assignment to assign_to_groupe_instructeur 2023-07-18 16:54:00 +02:00
Eric Leroy-Terquem
c09655a07f feat(DossierAssignment): create assignment from routing engine 2023-07-18 16:54:00 +02:00
Paul Chavard
08f0184700 fix(procedure): accept dpo emails with accents 2023-07-18 15:16:31 +02:00
Christophe Robillard
18f5c2a9ad merge only v3 api tokens 2023-07-17 16:35:07 +02:00
Christophe Robillard
67b9bb264a build raison sociale from nom and nom 2023-07-14 16:19:44 +02:00
Martin
ce9dbed663 amelioration(NotificationMailer): sort la creation des commentaire sur la messagerie du mailer [trop de prob possible sinon: au retry on dupliquait les commenaitres, si le mail foirait, on commentait pas etc...] 2023-07-11 15:11:40 +02:00
Colin Darie
07432503a7
Merge pull request #9291 from colinux/stats
Stats: ignore aperçus, brouillons en construction & dossiers des démarches en brouillon
2023-07-11 08:36:12 +00:00
Colin Darie
0d106cdf4b
Merge pull request #9104 from colinux/sva
ETQ admin je peux configurer ma démarche en SVA/SVR
2023-07-11 08:21:46 +00:00
Colin Darie
73a28d2eca
fix(sva): don't process dossiers submitted before sva was enabled 2023-07-11 10:02:47 +02:00
Colin Darie
7225f1b023
fix(sva): not compatible with declarative procedure 2023-07-11 10:02:47 +02:00
Colin Darie
4c46a2f8da
feat(sva): date in pdf 2023-07-11 10:02:47 +02:00
Colin Darie
8c49dcf21e
feat(sva): exports include SVA devision date 2023-07-11 10:02:47 +02:00
Colin Darie
f369775d5b
fix(sva): compute decision date from the day after deposit or resolution 2023-07-11 10:01:49 +02:00
Colin Darie
b4e6c20bbd
feat(sva): log operation when instructeur requests a correction 2023-07-11 10:01:49 +02:00
Colin Darie
6ce8428ac6
feat(sva): instructeur can flag a dossier as incomplete 2023-07-11 10:01:48 +02:00
Colin Darie
168189c3ac
feat(sva): instructeurs can filter by sva/svr decision before a date 2023-07-11 10:01:48 +02:00
Colin Darie
d70278a534
refactor(sva): dossier can't repasser en construction without pending correction 2023-07-11 10:01:47 +02:00
Colin Darie
3612eddf79
feat(sva): accepte automatiquement 2023-07-11 10:01:46 +02:00
Colin Darie
eb7f1f199a
feat(sva): block configuration changes when procedure is published 2023-07-11 10:01:46 +02:00
Colin Darie
afe373c6b4
feat(sva): transition to en_instruction when (re-)submitting a dossier 2023-07-11 10:01:46 +02:00
Colin Darie
8c210e6fc7
feat(admin): config sva/svr 2023-07-11 10:01:45 +02:00
Paul Chavard
95f7ca0f44 fix(cojo): invalid accreditation should result in a blank champ 2023-07-10 19:15:39 +02:00
Colin Darie
aa8bef48b0 fix(stat): ignore forks, previews & dossiers from draft procedures 2023-07-10 15:16:56 +02:00
Paul Chavard
d5820277c0 feat(cojo): add cojo type de champ 2023-07-10 14:57:34 +02:00
Colin Darie
6fa7ed1c1f
Merge pull request #9279 from colinux/fix-email-default-template
Correctif: utilise le template d'email de notification par défaut quand la démarche n'a pas personnalisé le sien
2023-07-06 09:30:04 +00:00
Colin Darie
edc790be8f test: remove false positive warning about expect.not_to raise(SpecificError) syntax 2023-07-06 10:56:01 +02:00
Paul Chavard
9cfbc75f25 spec(procedure): test url validator 2023-07-06 10:27:43 +02:00
Colin Darie
c83cc048c6
Merge pull request #9269 from mfo/US/text-merge-fork-with-revision-removing-repetition
Test: merge_fork d'un dossier étant sur une revision passée avec une répétition qui a été supprimée
2023-07-04 12:21:31 +00:00
Eric Leroy-Terquem
f959450477
Merge pull request #9244 from demarches-simplifiees/refactor-routing-update
Tech : mise à jour du routage sans callback
2023-07-04 09:39:00 +00:00
Eric Leroy-Terquem
7fe4ec67c3 update previous routing system tests 2023-07-03 14:58:45 +02:00
Eric Leroy-Terquem
7598b0a513 remove previous routing sytem code 2023-07-03 14:58:45 +02:00
Eric Leroy-Terquem
a2c636d784 fix(tests): create groupe instructeurs with factory 2023-07-03 14:47:56 +02:00
Martin
5c9101d15f bug(merge_fork): un dossier etant sur une revision passee avec une repetition qui a ete supprime ne peut merge_fork 2023-06-30 14:25:23 +02:00