Commit graph

8875 commits

Author SHA1 Message Date
Paul Chavard
fa2eea81aa Cleanup demarche archivee state 2020-01-07 11:13:42 +01:00
Keirua
4527124755
Merge pull request #4668 from betagouv/strike-banner-feature-flip
Put the strike banner behind a feature-flip
2020-01-07 10:19:50 +01:00
clemkeirua
4f604c8b0a put the strike banner behind a feature-flip 2020-01-06 15:25:43 +01:00
Paul Chavard
71a3e464b4
Merge pull request #4660 from betagouv/fix-autocorrect-exception
sign_up: fix suggestions error when navigating away
2019-12-19 18:30:48 +01:00
Pierre de La Morinerie
a5f2c84cbf sign_up: fix suggestions error when navigating away
When navigating away from the page, the field receives the 'focusout'
event – but stops to be present in the DOM.

Thus we need to check that the DOM element is actually present.
2019-12-19 17:45:14 +01:00
Pierre de La Morinerie
fccbbdf53a
Fix dossier AASM exceptions (#4657)
Instructeur : meilleur messages lorsque le changement d’état d’un dossier échoue
2019-12-19 15:34:28 +01:00
Pierre de La Morinerie
8eb295d67e dossiers: avoid exceptions on invalid AASM transitions
When attempting an invalid transition on a dossier, provide a meaningful
error message (instead of letting an `AASM::InvalidTransition` exception
propagate).

This handles not only the case where the same state is applied twice
(which was already handled manually), but all cases where the transition
is invalid.
2019-12-19 13:25:32 +01:00
Pierre de La Morinerie
c7a307553c helpers: allow dossier_display_state to take a state as input
This allow to use either:

- `dossier_display_state(dossier)`
- `dossier_display_state(:en_construction)`
2019-12-19 13:22:40 +01:00
Paul Chavard
0b54af822f
Merge pull request #4655 from betagouv/dependabot/bundler/rack-2.0.8
build(deps): bump rack from 2.0.7 to 2.0.8
2019-12-19 09:45:50 +01:00
dependabot[bot]
94736e4f27
build(deps): bump rack from 2.0.7 to 2.0.8
Bumps [rack](https://github.com/rack/rack) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/2.0.7...2.0.8)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-18 23:28:28 +00:00
LeSim
3cd2296c52
Merge pull request #4650 from betagouv/fix_typo_in_job_name
Fix typo in purges_stale_exports_job filename
2019-12-18 13:43:31 +01:00
simon lehericey
2ee559c748 Fix typo in purges_stale_exports_job filename 2019-12-18 13:35:04 +01:00
LeSim
05ebb3f14e
Merge pull request #4632 from betagouv/export_uses_groupe_instructeur
Rend l'export de dossier compatible avec les procédures routées
2019-12-18 13:17:56 +01:00
simon lehericey
c95b7a33fa Add brakeman exception for a export.file.service_url 2019-12-18 13:13:15 +01:00
simon lehericey
60538c9c28 Controller use new export model 2019-12-18 13:13:15 +01:00
simon lehericey
745086cbb5 Simplify view 2019-12-18 13:13:15 +01:00
simon lehericey
ce7ab89934 Add purge stale export job 2019-12-18 13:13:15 +01:00
simon lehericey
d0939ae1a4 Add Export Model 2019-12-18 13:13:15 +01:00
simon lehericey
d0f0533a32 Remove unused code 2019-12-18 13:13:15 +01:00
LeSim
388d8d6f01
Merge pull request #4645 from betagouv/dependabot/bundler/excon-0.71.0
build(deps): bump excon from 0.68.0 to 0.71.0
2019-12-18 13:13:05 +01:00
dependabot[bot]
d7454594aa
build(deps): bump excon from 0.68.0 to 0.71.0
Bumps [excon](https://github.com/excon/excon) from 0.68.0 to 0.71.0.
- [Release notes](https://github.com/excon/excon/releases)
- [Changelog](https://github.com/excon/excon/blob/master/changelog.txt)
- [Commits](https://github.com/excon/excon/compare/v0.68.0...v0.71.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-18 09:35:44 +00:00
Keirua
bddfabb2ad
Merge pull request #4644 from betagouv/bravo_simon
Corrige un bug concernant les destinataires du mail annoncant un nouvel instructeur dans un groupe
2019-12-16 23:15:55 +01:00
simon lehericey
f069f6f779 Make the new instructeur receive the affectation mail 2019-12-16 18:20:00 +01:00
simon lehericey
c02e8b9553 Routing: send emails to the right group 2019-12-16 17:47:08 +01:00
Keirua
c9810adf4b
Merge pull request #4625 from Keirua/fix-typo-editeur
Clarification du bouton de création d'annotations privées
2019-12-16 10:30:53 +01:00
clemkeirua
c2c3f05262 p'tit fix d'utilisabilité 2019-12-16 09:49:23 +01:00
LeSim
4c57659765
Merge pull request #4633 from betagouv/fix_mail
Corrige un bug qui empéchait les mails concernant les dossiers dont la démarche n'avait pas de tel de partir
2019-12-12 16:10:12 +01:00
simon lehericey
278659dcb3 fix footer without tel 2019-12-12 15:57:47 +01:00
LeSim
7096513738
Corrige certaines dates qui ne prenaient pas en compte la timezone
Bug with time zone: Date breaks database comparisons
2019-12-11 17:44:04 +01:00
maatinito
a02a5edce3 Bug with time zone when testing sending of brouillon expiration notices 2019-12-11 17:34:10 +01:00
maatinito
9672d892e9 Bug with time zone: Time.zone.today looses time_zone and may breaks database comparisons 2019-12-11 17:34:10 +01:00
LeSim
1b17218b5c
Merge pull request #4624 from betagouv/instructor_cannot_change_its_mail
Suppression de la possibilité pour instructeur de changer son propre email
2019-12-11 17:28:57 +01:00
simon lehericey
058442c84e [link to #4557] An instructeur cannot change its email on its own 2019-12-11 17:18:21 +01:00
simon lehericey
21910c959e @current_user -> current_user 2019-12-11 17:18:21 +01:00
simon lehericey
e06733d01b Clean spec 2019-12-11 17:18:21 +01:00
simon lehericey
301653bb89 Only display email form if the user is not instructeur 2019-12-11 17:18:21 +01:00
LeSim
f407ef5eee
Merge pull request #4623 from betagouv/remove_old_administration
Suppression la clé étrangère administration_id sur DossierLogs
2019-12-11 17:15:01 +01:00
simon lehericey
3afdf9e9ac Remove unused column 2019-12-11 17:07:26 +01:00
Paul Chavard
5f79fbf38d
Merge pull request #4627 from tchak/graphql-fix-file-upload
[GraphQL] fix a crash in mutations with an attachment
2019-12-11 13:47:12 +01:00
Paul Chavard
6b5793f0b9 [GraphQL] fix a crash in mutations with an attachment 2019-12-11 13:22:32 +01:00
Paul Chavard
422b7f37ec [GraphQL] expose file information 2019-12-11 12:34:49 +01:00
LeSim
1146447c14
Merge pull request #4622 from betagouv/dependabot/bundler/puma-3.12.2
build(deps): bump puma from 3.12.0 to 3.12.2
2019-12-09 15:30:25 +01:00
dependabot[bot]
3735fbd8b7
build(deps): bump puma from 3.12.0 to 3.12.2
Bumps [puma](https://github.com/puma/puma) from 3.12.0 to 3.12.2.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v3.12.0...v3.12.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-06 08:11:25 +00:00
Pierre de La Morinerie
5dbe0722a3
Ajout d'une bannière pour prévenir des perturbations à partir d… (#4617)
Ajout d’une bannière pour prévenir des perturbations liée à la grève
2019-12-04 17:42:23 +01:00
Pierre de La Morinerie
c2882b6cc3 app: hide IE11 deprecation banner during the strike
Having two banners appearing in a few days may be overwhelming for
users.
2019-12-04 17:32:04 +01:00
Pierre de La Morinerie
ef76af5546 app: add a site-wide banner for the national strike 2019-12-04 17:32:04 +01:00
Paul Chavard
c702a5cbb6
Merge pull request #4523 from tchak/replace-procedure
Add depubliee state to procedures
2019-12-04 17:01:29 +01:00
Paul Chavard
2f060fc30a Add depubliee state to procedures 2019-12-04 16:52:41 +01:00
Paul Chavard
4a614f6f4f Add unpublished_at to procedures 2019-12-04 16:37:37 +01:00
Paul Chavard
b452d2b0e1
Merge pull request #4616 from tchak/fix-components-loading
Always load IntersectionObserver to fix old browsers
2019-12-04 16:33:01 +01:00