Commit graph

15595 commits

Author SHA1 Message Date
Martin
6e31decc2d feat(Procedure.clone): stop cloning procedure service which is confusing for some administrateurs 2022-08-31 14:56:00 +02:00
Paul Chavard
d1ae98b9a7 feat(css): add dsfr 2022-08-31 14:53:50 +02:00
Colin Darie
8059abb85e
Merge pull request #7697 from betagouv/fix-champ-null-byte
fix(champ): remove null byte before save
2022-08-31 11:58:06 +02:00
Colin Darie
4ece7c2494 fix(champ): remove null byte before save
Les null bytes peuvent être injectés lors de c/c depuis certains documents,
et ne sont pas sauvegardables en base, rendant la sauvegarde d'un dossier impossible.

Closes #7656

https://sentry.io/organizations/demarches-simplifiees/issues/3194932607/activity/?project=1429550&query=is%3Aunresolved
2022-08-31 11:39:34 +02:00
LeSim
2e04688fee
Merge pull request #7695 from govpf/feature/graphql_fix_champ_order_in_repetition
Graphql: Fix champs order in repetitions
2022-08-31 11:21:10 +02:00
Christian
63a4a13323 Graphql: Fix champs sort in repetition 2022-08-31 11:15:28 +02:00
krichtof
8cd8e6064a
Merge pull request #7696 from betagouv/fix-saml
add saml sp only if vars present
2022-08-29 08:55:36 +02:00
Christophe Robillard
f77c0fdfe4 add saml sp only if vars present 2022-08-25 21:31:14 +02:00
mfo
ac246c6775
Merge pull request #7690 from mfo/US/novalidate-editor
feat(brouillon.edit.form): novalidate
2022-08-24 15:24:50 +02:00
Martin
69ef1d508d fix(brouillon.edit.form): when their is a type de champs repetition having a child being mandatory ; the form being not validatable the browser does not block the submission 2022-08-24 15:18:05 +02:00
Martin
c230db1ec4 bug(brouillon.edit.form): when their is a type de champs repetition having a child being mandatory. if the condition is not met, should be able to submit form 2022-08-24 15:18:05 +02:00
mfo
aa0891ff3a
Merge pull request #7694 from mfo/US/fix-rubocop-prefer-filter-instead-of-select
fix(rubocop): filter does not exists on strong parameter...
2022-08-24 15:07:10 +02:00
Martin
1a1f44c5e6 fix(rubocop): filter does not exists on strong parameter... 2022-08-24 15:03:36 +02:00
mfo
a2099ebdb6
Merge pull request #7693 from mfo/US/readd-super-admin-as-instructeur-on-their-procedure-without-any-other-instructeur
feat(super-admin): re-add to procedure without any instructeur
2022-08-24 14:45:57 +02:00
Martin
5b551682cb feat(super-admin): re-add to procedure without any instructeur 2022-08-24 14:37:27 +02:00
mfo
e1f45040a1
Merge pull request #7676 from mfo/US/expand_usage_of_procedure_expires_when_termine_enabled
feat(manager#outdated_procedure): allow super admin to enable procedure_expires_when_termine_enabled for old procedure
2022-08-24 14:37:14 +02:00
Martin
2f5528398f feat(manager#outdated_procedure): allow super admin to enable procedure_expires_when_termine_enabled for old procedure
revew(typo): various typo, tx christophe :-)

fix(spec): due to typo fixes
2022-08-24 13:10:48 +02:00
mfo
d878ae645f
Merge pull request #7689 from mfo/sentry/3462032683
bug(instructeurs/archives#create): month should not be nil
2022-08-23 15:55:23 +02:00
Martin
748b8c9d64 fix(instructeurs/archives#create): missing renaming during refacto 2022-08-23 15:31:17 +02:00
Martin
e35da17ce8 bug(instructeurs/archives#create): month should not be nil 2022-08-23 15:31:17 +02:00
krichtof
9c27128c8b
Merge pull request #7680 from betagouv/saml-with-metadata
update saml idp.
Utilise une gem permettant l'intégration saml avec Dolist
2022-08-23 15:18:35 +02:00
Christophe Robillard
d4cdf1fb96 add dolist link to manager 2022-08-23 15:05:20 +02:00
Christophe Robillard
3d175f107e add dolist saml config 2022-08-23 15:05:20 +02:00
Christophe Robillard
efbec80af8 update saml controller and views
because of using another gem (saml_idp)
2022-08-23 15:05:20 +02:00
Christophe Robillard
0ccb85b139 change gem for saml idp 2022-08-23 15:05:20 +02:00
mfo
ee499da8e8
Merge pull request #7605 from mfo/US/cleanup_support_assign_tos
feat(clean.super_admin.assign_tos): remove former assign to so our support team is happy :-)
2022-08-23 14:55:55 +02:00
Martin
e23525ff4a feat(clean.super_admin.assign_tos): remove former assign to so our support team is happy :-) 2022-08-23 14:39:40 +02:00
mfo
ee0280de17
Merge pull request #7557 from mfo/US/super-admin-can-not-export
feat(export/archive): prevent creation of archives from user having a SuperAdmin user with the same email
2022-08-23 14:38:41 +02:00
mfo
5fb2c45540 review(i18n): fix typo and enhance wording. 2022-08-23 13:28:10 +02:00
Martin
d30492a222 tech(clean): better naming 2022-08-23 13:28:10 +02:00
Martin
45e0c15eb0 feat(PurgeManagerAdministrateurSessionsJob): also purge instructeur assign_tos 2022-08-23 13:28:10 +02:00
Martin
dc524cf615 fix(spec): broken spec due to TDD and refacto on former code 2022-08-23 13:28:10 +02:00
Martin
711b2ee2e4 feat(ExportComponent): only render it when connected instructeur/administrateur is not from manager 2022-08-23 13:28:10 +02:00
Martin
25c0e91d87 feat(Administrateurs::GroupeInstructeur): ensure admin from super admin can not add an instructeur 2022-08-23 13:28:10 +02:00
Martin
d1544bc4ae feat(Administrateurs::ProcedureAdministrateurs): ensure admin from super admin can not add administrateur 2022-08-23 13:28:10 +02:00
Martin
d1297bc1f5 tech(rubocopify): ... just clean up ... 2022-08-23 13:28:10 +02:00
Martin
5e8210b8f8 feat(Administrateur::ExportsController#*): prevent SuperAdmin to ask/download export 2022-08-23 13:28:10 +02:00
Martin
bfd0f3379f feat(Instructeur::ArchivesController#*): prevent SuperAdmin to index/download archives 2022-08-23 13:28:10 +02:00
Martin
c2e0994e11 feat(Administrateur::ArchivesController#*): prevent SuperAdmin to index/download archives 2022-08-23 13:28:10 +02:00
Martin
ef67958324 feat(manager): add #add_administrateur_with_confirmation and #confirm_add_administrateur so SuperAdmin requires another SuperAdmin approval to add an administrator to a procedure. Add #add_administrateur_and_instructeur for SuperAdmin willing to be administrateur/instructeur for 24 2022-08-23 13:28:10 +02:00
Martin
f0a4cbb61e feat(assign_tos): add manager column to assign_tos table. Same idea as administrateur_procedures.manager which flag a link between procedure/administrateur coming from a SuperAdmin [target: able to avoid SuperAdmin sec issues] 2022-08-23 13:28:10 +02:00
mfo
33000466a5
Merge pull request #7687 from mfo/US/fix-conditionnal-in-section
fix(conditional): within section (dark blue bg) ; use white text
2022-08-23 09:55:03 +02:00
Martin
4c302c9c0e fix(i18n.conditionnal): add missing operators Logic::NotEq key 2022-08-23 09:27:46 +02:00
Martin
ed20951f14 fix(conditional): within section (dark blue bg) ; use white text 2022-08-23 09:23:42 +02:00
mfo
73b417e6b2
Merge pull request #7684 from mfo/US/remove-unused-column
fix(migration): following e764aade13 …we still need to remove those columns otherwise destroying a procedure fails due to index on types_de_champ.revision_id
2022-08-22 16:40:25 +02:00
Martin
b9e7bdc01e fix(migration): following e764aade13 ; we still need to remove those columns otherwise destroying a procedure fails due to index on types_de_champ.revision_id 2022-08-22 16:00:56 +02:00
LeSim
15e623fd3d
Merge pull request #7674 from betagouv/fix_pj_template
fix(editeur_de_champ): permet d'ajouter à nouveau un template au pjs
2022-08-11 16:08:00 +02:00
simon lehericey
adf194cc08 fix(editeur_de_champ): can join an pj template 2022-08-11 15:01:48 +02:00
simon lehericey
6b5f38ce74 spec 2022-08-11 14:03:04 +02:00
Kara Diaby
4bddb4dde9
Merge pull request #7672 from betagouv/feat/7668
Manager : permet au super admin de se retirer d'une démarche
2022-08-11 12:30:46 +02:00