Commit graph

14366 commits

Author SHA1 Message Date
Paul Chavard
d3ceba8955 feat(manager): display hidden_by_user_at and hidden_by_administration_at in manager views 2022-03-10 14:29:40 +01:00
Paul Chavard
51d7fd6190 test(dossier): update spec to use visible_by_administration 2022-03-10 14:29:40 +01:00
Paul Chavard
54b559364a feat(dossier): replace discarded with visible_by_administration 2022-03-10 14:29:40 +01:00
Paul Chavard
59b0f3961d refactor(dossier): improuve dossiers_count_summary 2022-03-10 14:29:40 +01:00
mfo
7c05a5fdee
Merge pull request #7010 from betagouv/US/doc/privacy-policy-constraints
doc(privacy-policy): add privacy policy doc
2022-03-10 10:53:10 +01:00
mfo
e60c515e9b
Merge branch 'main' into US/doc/privacy-policy-constraints 2022-03-10 10:48:45 +01:00
mfo
bb838c8eef
Update doc/PRIVACY-POLICY.md
Co-authored-by: LeSim <mail@simon.lehericey.net>
2022-03-10 07:04:37 +01:00
LeSim
aaebcf7121
Merge pull request #7018 from tchak/migration-dossiers-deleted-scopes-fix
fix(migration): add with_discarded to seed_hidden_at_dossiers
2022-03-09 18:00:24 +01:00
Paul Chavard
4c567632e5 fix(migration): add with_discarded to seed_hidden_at_dossiers 2022-03-09 17:53:49 +01:00
Paul Chavard
bda6f81528
Merge pull request #7017 from tchak/migration-dossiers-deleted-scopes
migrate(dossier): fill hidden_by_administration_at and hidden_by_user_at from hidden_at
2022-03-09 17:47:43 +01:00
Paul Chavard
bcbcd11c42 migrate(dossier): fill hidden_by_administration_at and hidden_by_user_at from hidden_at 2022-03-09 17:41:28 +01:00
LeSim
6ae901fd41
Merge pull request #7016 from betagouv/bump_rails
bump rails to 6.1.4.7
2022-03-09 12:48:05 +01:00
simon lehericey
feeb8b691a bump rails to 6.1.4.7 2022-03-09 10:32:29 +01:00
Pierre de La Morinerie
24e5450150
Merge pull request #7013 from betagouv/add-procedure-constraint
Suppression des AdministrateursProcedure quand une Procedure est supprimée
2022-03-08 15:18:12 +01:00
Pierre de La Morinerie
27edc6676d db: add foreign key contraint to AdministrateursProcedure
In production there are around 20 000 AdministrateursProcedure
records that reference a deleted Procedure.
2022-03-08 14:48:17 +01:00
Pierre de La Morinerie
a4108c7787 db: backport delete_orphans in recent migrations
Recent migrations used ActiveRecord when removing invalid data. This may
break if the ActiveRecord model later changes.

To ensure these migrations will run correctly, even when the code will
have changed, let's use an SQL-based helper instead of ActiveRecord.
2022-03-08 14:48:17 +01:00
Pierre de La Morinerie
3a16235868 db: Add a delete_orphans db helper 2022-03-08 14:47:43 +01:00
Martin
393c678fdd doc(privacy-policy): add privacy policy doc
Update doc/PRIVACY-POLICY.md

Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>

Update doc/PRIVACY-POLICY.md

Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>

Update doc/PRIVACY-POLICY.md

Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>

Update doc/PRIVACY-POLICY.md

Update doc/PRIVACY-POLICY.md

Update doc/PRIVACY-POLICY.md

Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
2022-03-08 13:46:49 +01:00
Pierre de La Morinerie
a645c5781d models: delete AdministrateursProcedure when destroying Procedure 2022-03-08 09:20:34 +01:00
mfo
c2eab85a90
Merge pull request #7008 from benoit-bernier/patch-1
Typo correction
2022-03-03 17:04:43 +01:00
mfo
62351153a1
Merge branch 'main' into patch-1 2022-03-03 17:01:16 +01:00
mfo
eb470b8cb7
Merge pull request #7009 from benoit-bernier/patch-2
Typo correction
2022-03-03 17:00:56 +01:00
Benoît Bernier
8ee6c5fe1b
Typo correction 2022-03-03 16:48:26 +01:00
Benoît Bernier
02661b5ec7
Typo correction 2022-03-03 16:46:02 +01:00
LeSim
3bd91d6ae3
Merge pull request #7004 from betagouv/agent_connect_is_beautiful
Rend la page de connexion visible en entier en 1280
2022-03-03 09:52:54 +01:00
simon lehericey
a01e523f08 more compression 2022-03-03 09:30:15 +01:00
simon lehericey
4c432b2ce8 wording 2022-03-03 09:30:15 +01:00
simon lehericey
ebd4d6a067 update FC/AG images 2022-03-03 09:30:15 +01:00
Paul Chavard
d8b445f39b
Merge pull request #7003 from tchak/fix-routage-toggle
fix(dossier): ensure submitted dossiers always have groupe instructeur
2022-03-02 17:01:34 +00:00
Paul Chavard
91caef0bfe fix(dossier): ensure submitted dossiers always have groupe instructeur 2022-03-02 16:57:12 +00:00
Paul Chavard
0a4d87abdb
Merge pull request #7002 from tchak/feat-admin-dossiers-count
feat(administrateur): dossiers count should only include relevant dossiers
2022-03-02 15:42:09 +00:00
Paul Chavard
ac6e219074 feat(administrateur): dossiers count should only include relevant dossiers 2022-03-02 15:37:42 +00:00
Pierre de La Morinerie
49853440f0
Merge pull request #7001 from betagouv/add-instructeur-constraint
Suppression des AdministrateursInstructeur quand un Instructeur est supprimé
2022-03-02 14:14:27 +01:00
Pierre de La Morinerie
13dfa577bd db: add missing part of schema.rb 2022-03-02 14:09:43 +01:00
Pierre de La Morinerie
5eee6b161f db: add foreign key contraints to AdministrateursInstructeur 2022-03-02 14:09:23 +01:00
Pierre de La Morinerie
087e438eb6 models: delete AdministrateursInstructeur when destroying Instructeur
By default, `has_and_belongs_to_many` properly deletes the record in
the join table.

However, as the association is declared manually with a
`has_many / through`, it doesn't delete the joined record automatically.

As we also lack a foreign-key contraint on the join table, that means
a dangling record remains in the join table.

To fix this, let's declare it a proper `has_and_belongs_to_many`
association, which will let the join record be deleted automatically
on destroy.
2022-03-02 11:26:53 +01:00
Paul Chavard
92e79027c4
Merge pull request #6997 from betagouv/fix-drom-phones-formatting
Correction de l'affichage des numéros de téléphone des DROM
2022-03-02 10:05:53 +00:00
Pierre de La Morinerie
e32c9a9f94 models: don't attempt to format invalid phone numbers
This is a defensive-programming measure, because formatting an
invalid phone number may truncate some leading numbers.
2022-03-02 09:57:03 +00:00
Pierre de La Morinerie
f35d18cd5c models: stop truncating DROM phone numbers
Fix #6996
2022-03-02 09:57:03 +00:00
Pierre de La Morinerie
5150e33212 models: ensure DROM phone numbers are valid
They were accepted before, because they were 'possible' – but now
they are explicitely considered as valid.
2022-03-02 09:57:03 +00:00
Paul Chavard
cb5561978a
Merge pull request #6999 from tchak/fix-multi-select
fix(multi-select): fix labels on multi select component
2022-03-02 09:56:07 +00:00
Paul Chavard
b8a22ae8b2 fix(multi-select): fix labels on multi select component 2022-03-02 09:48:54 +00:00
Paul Chavard
963bc90c94
Merge pull request #6998 from betagouv/dependabot/bundler/image_processing-1.12.2
chore(deps): bump image_processing from 1.12.1 to 1.12.2
2022-03-02 09:10:57 +00:00
dependabot[bot]
19cde3140e
chore(deps): bump image_processing from 1.12.1 to 1.12.2
Bumps [image_processing](https://github.com/janko/image_processing) from 1.12.1 to 1.12.2.
- [Release notes](https://github.com/janko/image_processing/releases)
- [Changelog](https://github.com/janko/image_processing/blob/master/CHANGELOG.md)
- [Commits](https://github.com/janko/image_processing/compare/v1.12.1...v1.12.2)

---
updated-dependencies:
- dependency-name: image_processing
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-01 23:35:43 +00:00
Pierre de La Morinerie
371d141fcd
Merge pull request #6971 from mfaure/Ajout_doc_deploiement
Ajout de documentation pour le déploiement
2022-03-01 17:09:30 +01:00
Pierre de La Morinerie
64a28cc8bd doc: move the ADR to their own directory 2022-03-01 17:05:06 +01:00
Pierre de La Morinerie
bbc45f25ef doc: add deployment notes 2022-03-01 17:05:05 +01:00
Matthieu FAURE
4fd9312fc9 DOC Ajout doc déploiement, avec montée de version et migration de données (afterparty) 2022-03-01 17:05:05 +01:00
Pierre de La Morinerie
98d087ab4d
Merge pull request #6992 from betagouv/admin-deletion
Suppression des AdministrateursProcedure quand un Administrateur est supprimé
2022-03-01 17:04:00 +01:00
Pierre de La Morinerie
3fde7021e7 db: add foreign key contraint to AdministrateursProcedure 2022-03-01 16:58:04 +01:00