Commit graph

11324 commits

Author SHA1 Message Date
simon lehericey
9bd4c11d52 Use render collection to speed up render 2020-09-11 09:43:04 +00:00
simon lehericey
b124579681 cache procedure_ids_with_notifications to avoid seeking the AR cache by going through the stack 2020-09-11 09:43:04 +00:00
simon lehericey
e4de522b48 only retrieve id of procedures with notifications 2020-09-11 09:43:04 +00:00
simon lehericey
d9c7051a00 Avoid superfluous count 2020-09-11 09:43:04 +00:00
LeSim
c8cc1fc43f
Merge pull request #5560 from betagouv/improve_landing_perfs
Amélioration de la perf de la page d'accueil
2020-09-11 11:40:09 +02:00
simon lehericey
63ea2045a7 Improve admin query on landing 2020-09-11 09:46:54 +02:00
Paul Chavard
5ad3928e49
Merge pull request #5556 from tchak/graphql-docs
Build GraphQL docs
2020-09-09 17:17:04 +02:00
Paul Chavard
45dc75c6b2 Build GraphQL docs 2020-09-09 15:20:14 +02:00
Keirua
c4eb2ee733
Merge pull request #5554 from betagouv/add_missing_test_on_job_retry
Add a missing test on job retry to the excon err
2020-09-09 11:18:22 +02:00
simon lehericey
86b04d4275 Add a missing test on job retry to the excon err 2020-09-09 09:08:48 +00:00
Keirua
b47fe2560b
Merge pull request #5544 from betagouv/dependabot/npm_and_yarn/http-proxy-1.18.1
build(deps): bump http-proxy from 1.18.0 to 1.18.1
2020-09-09 10:59:14 +02:00
dependabot[bot]
8eb87ea9dd build(deps): bump http-proxy from 1.18.0 to 1.18.1
Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.18.0 to 1.18.1.
- [Release notes](https://github.com/http-party/node-http-proxy/releases)
- [Changelog](https://github.com/http-party/node-http-proxy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/http-party/node-http-proxy/compare/1.18.0...1.18.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-09 08:54:20 +00:00
Keirua
8785d3608d
Merge pull request #5536 from betagouv/5529-tabs-in-attestations
#5529 - Replacement des tabulations par des espaces dans l’attestation
2020-09-09 10:42:11 +02:00
clemkeirua
47fd8f48cb replace tabs with 2 spaces in attestation PDF, instead of one 2020-09-09 07:18:58 +00:00
clemkeirua
19c1043b94 replace tabs with spaces in attestation 2020-09-09 07:18:58 +00:00
Keirua
515c543dd0
Merge pull request #5549 from betagouv/ensure-polynesia-numbers-are-ok
Ensure polynesia numbers are ok
2020-09-09 09:18:05 +02:00
clemkeirua
3697c610b6 make polynesia mobile phone number valid 2020-09-09 09:00:07 +02:00
clemkeirua
5471b8d22b bump phonelib version 2020-09-09 09:00:07 +02:00
clemkeirua
a62907f33b add more tests for phone numbers 2020-09-09 09:00:03 +02:00
krichtof
7038ca6c04
Merge pull request #5551 from betagouv/fix_uninitialized_excon_constant
Fix uninitialized excon constant
2020-09-08 18:44:02 +02:00
simon lehericey
5459c2fa7f Fix uninitialized excon constant 2020-09-08 18:36:24 +02:00
krichtof
18e42d1dee
Merge pull request #5439 from betagouv/5288-update-dashboard
5288 - Update dashboard to improve performance
2020-09-08 17:49:28 +02:00
clemkeirua
52d5a52ff9 test fonctionnel notifications avis 2020-09-08 15:40:42 +00:00
clemkeirua
bfd24e8aee test fonctionnel notification annotations privees 2020-09-08 15:40:42 +00:00
clemkeirua
b7b61e79ab test fonctionnel notification champ 2020-09-08 15:40:42 +00:00
clemkeirua
1fafcad401 test fonctionnel notifications commentaire 2020-09-08 15:40:42 +00:00
clemkeirua
c7b96d3d43 add feature-flip for instructeurs on cached notifications 2020-09-08 15:40:42 +00:00
clemkeirua
52ea5ef89a make Dossier#with_notifications great again
Co-authored-by: Christophe Robillard <christophe.robillard@beta.gouv.fr>
2020-09-08 15:40:42 +00:00
LeSim
8d87f60291
Merge pull request #5545 from betagouv/variabilize_banner_message
variabilize banner message
2020-09-08 17:14:16 +02:00
simon lehericey
19d73f13f0 variabilize banner message 2020-09-08 14:52:42 +02:00
Paul Chavard
23019ce28a
Merge pull request #5532 from tchak/graphql-api-with-revisions
Expose revisions on GraphQL API
2020-09-08 11:06:55 +02:00
Paul Chavard
91bc2db594 Expose revisions on GraphQL API 2020-09-08 10:54:13 +02:00
LeSim
3b89d04098
Merge pull request #5540 from betagouv/fix-double-type-de-champ
remove duplicate private champ
2020-09-04 15:50:00 +02:00
clemkeirua
61cf33e3ca remove duplicate private champ 2020-09-04 15:40:23 +02:00
Keirua
e36c7cc1c1
Merge branch 'master' into dev 2020-09-04 11:32:02 +02:00
Keirua
0ec63672a8
Merge pull request #5538 from tchak/fix-champ-order-joins
Fix champ order joins sql error
2020-09-04 11:27:43 +02:00
Paul Chavard
6d4425885d Fix champ order joins sql error 2020-09-03 18:32:43 +02:00
Pierre de La Morinerie
72afb01cbd
Merge pull request #5525 from tchak/add-revisions-step-3
Révisions : suppression de la relation procédure <-> type de champ
2020-09-03 17:15:03 +02:00
Kara Diaby
323ef832dc
Merge pull request #5534 from betagouv/dev
2020-09-03-01
2020-09-03 15:46:02 +02:00
Paul Chavard
11a1e44fbe Remove procedure_id from type_de_champ 2020-09-03 15:23:58 +02:00
Paul Chavard
d1de1587d3 Always serialize type_de_champ stable_id as id 2020-09-03 15:23:58 +02:00
Pierre de La Morinerie
0d9ac9ffd9
Merge pull request #5530 from betagouv/ignore-progress-bar-errors
Usager : lorsque qu'une barre qui affiche la progression de l'envoi d'un fichier disparait de la page, la Console ne remonte plus d'erreurs Javascript
2020-09-03 15:16:44 +02:00
Pierre de La Morinerie
e033ec3404 js: ignore missing DOM element on ProgressBar
Currently ProgressBar is used to monitor upload progress of attachments.

But there's two cases where the associated DOM element may be removed:

- In the champs editor, when the list scrolls, DOM elements are removed
and added dynamically by React;
- In the user form, the user might start an upload on a repetition, and
then remove the associated row during the download.

In both those cases, we don't want the missing DOM element to trigger
an error.
2020-09-03 15:03:13 +02:00
Kara Diaby
1084b1d47c
Merge pull request #5501 from betagouv/feat/3661
Feat/3661 - migration des templates d'emails à la nouvelle UI
2020-09-03 15:02:33 +02:00
kara Diaby
ae61c279af migrate emails text editor to new interface 2020-09-03 14:42:22 +02:00
Paul Chavard
a51d6046dc
Merge pull request #5531 from betagouv/ignore-deleted-file-in-virus-scan
jobs: ignore deleted file in Virus Scan
2020-09-03 13:10:42 +02:00
Pierre de La Morinerie
292dc84eb4 jobs: ignore deleted file in Virus Scan
We have errors in production where the job starts correctly (i.e. the
blob exists), but `blob.open` fails with a `ActiveStorage::FileNotFound`
error.

When checking later in production, the blob has been deleted.

This points to the blob (and the file) being deleted during the virus
scan job.

In that case, ignore the error (rather than retrying the job).
2020-09-03 11:00:59 +02:00
LeSim
e9251de0f8
Merge pull request #5528 from betagouv/less_bad_request_errors
Reprise silencieuse des jobs en erreur du a un pb réseau
2020-09-02 17:10:36 +02:00
simon lehericey
bd6705b90a Remove image and video analyzer which are not used 2020-09-02 17:00:26 +02:00
simon lehericey
49aa426d1b application job swallow BadRequest error and retry 2020-09-02 16:59:54 +02:00