Commit graph

11906 commits

Author SHA1 Message Date
Paul Chavard
753d0478ef update sentry gems 2021-02-10 17:52:04 +01:00
Paul Chavard
ef9fe9e53a
Merge pull request #5892 from tchak/fix-print-css
fix print css
2021-02-10 17:20:14 +01:00
Paul Chavard
434e99bf4f fix print css 2021-02-10 17:10:58 +01:00
Paul Chavard
eba645976d
Merge pull request #5890 from tchak/sentry-tracing
Add sentry traces (20% for now)
2021-02-10 16:22:50 +01:00
Paul Chavard
eac967f84e Add sentry traces (20% for now) 2021-02-10 15:35:21 +01:00
LeSim
48bc15a932
Merge pull request #5889 from betagouv/add_throttling_for_api_entreprise
Add throttling for api entreprise
2021-02-10 13:59:08 +01:00
simon lehericey
f7ae974f29 Add throttling for api entreprise 2021-02-10 12:40:14 +01:00
LeSim
b6d8409c9f
Merge pull request #5888 from tchak/fix-unstable-tests
Fix unstable tests
2021-02-09 17:06:55 +01:00
Paul Chavard
00e1d88a75 clean up download helper data before test run 2021-02-09 15:13:13 +01:00
Paul Chavard
c04077ca34 fix flaky test by imposing a stable sort order 2021-02-09 15:13:04 +01:00
Paul Chavard
2c089f53dd
Merge pull request #5887 from betagouv/zeitwerk-renaming
Renommage des constantes pour Zeitwerk
2021-02-09 14:57:00 +01:00
Pierre de La Morinerie
0af7188d8c zeitwerk: add inflections 2021-02-09 13:09:10 +01:00
Pierre de La Morinerie
7d1c79bf4b zeitwerk: Url -> URL 2021-02-09 13:07:30 +01:00
Pierre de La Morinerie
150ddab660 zeitwerk: Api -> API 2021-02-09 13:07:30 +01:00
Pierre de La Morinerie
482f990594
Merge pull request #5879 from betagouv/stats-css
Statistiques : correction de l'affichage visuel du nombre de dossiers (#5879)
2021-02-09 11:02:48 +01:00
Pierre de La Morinerie
29ded36e86 stylesheets: fix the dossiers number wrapping on two lines 2021-02-09 11:01:52 +01:00
Pierre de La Morinerie
73f61bae2d
Merge pull request #5880 from betagouv/fix-tests-warnings
Tests : correction d'un avertissement Rspec sur l'assertion des exceptions (#5880)
2021-02-09 11:01:40 +01:00
Pierre de La Morinerie
88ffa10a56 spec: fix rspec raise_error warning
Rspec warns that if there is for example a SyntaxError, the test will
pass (an error was raised, but it wasn't an ArgumentError, so this is
fine).

Instead check that no error occurs whatsoever.
2021-02-09 10:12:32 +01:00
Pierre de La Morinerie
d090091540
Merge pull request #5874 from adullact/5873_configure_email_footer_logo
Permet au logo dans le pied-de-page des emails d'être configuré par une variable d'environnement (#5874)
2021-02-09 10:12:16 +01:00
Fabrice Gangler
229f495753 allow email footer logo to be configured in .env file
Refs: #5873
2021-02-09 09:39:02 +01:00
Pierre de La Morinerie
08a588614f
Merge pull request #5881 from betagouv/ruby-2.7-keyword-arguments 2021-02-09 09:38:14 +01:00
Pierre de La Morinerie
2d1c50917f mailers: fix Ruby 2.7 arguments passing 2021-02-09 09:20:46 +01:00
Pierre de La Morinerie
4ad9adc510 models: fix Ruby 2.7 arguments passing
Arguments to an ActiveRecord scope will always been passed as a
Dictionnary. Thus
`Dossier.with_notifiable_procedure(notify_on_closed: true)` will trigger
a Ruby 2.7 warning:

> /ruby/2.7.0/gems/activerecord-6.0.3.4/lib/active_record/relation.rb:412: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call

Fix the issue by always expecting a Dictionary (rather than keyword
arguments).
2021-02-09 09:20:46 +01:00
Pierre de La Morinerie
0d94eacf32 spec: fix Ruby 2.7 arguments passing 2021-02-09 09:20:46 +01:00
Pierre de La Morinerie
b204fe74a4 gems: update zip_tricks and zipline
This fixes a Ruby 2.7 deprecation warning:

> /ruby/2.7.0/gems/zip_tricks-5.3.1/lib/zip_tricks/streamer.rb:340: warning: The called method `write_deflated_file' is defined here
2021-02-09 09:20:46 +01:00
Paul Chavard
f17a593b03
Merge pull request #5883 from tchak/fix-n-queries
fix annotations n+1
2021-02-08 11:11:59 +01:00
Paul Chavard
0223eabcce fix annotations n+1 2021-02-08 10:41:36 +01:00
Paul Chavard
cbdb32d191
Merge pull request #5882 from tchak/drop-job-errors
Drop api entreprise job errors
2021-02-06 14:05:02 +01:00
Paul Chavard
9156754cf6 After maximum ammount of retries discard the job and log exception 2021-02-05 18:56:27 +01:00
Paul Chavard
a591d5528e Add job exception log methods to champ and dossier 2021-02-05 18:56:27 +01:00
Paul Chavard
78a07ef021 Add job exception logs to dossier and champ 2021-02-04 19:27:27 +01:00
Pierre de La Morinerie
a8c0b616e4
Merge pull request #5872 from adullact/5871_configure_mailers-bizdev-signature
Permet à la signature des emails bizdev d'être configurée par une variable d'environnement (#5872)
2021-02-04 13:48:12 +01:00
Fabrice Gangler
3034716963 allow mailers/_bizdev_signature to be configured in .env file
Refs: #5871
2021-02-04 13:09:40 +01:00
Pierre de La Morinerie
af5ce7cfcf
Merge pull request #5870 from adullact/5869_configure_logo_in_export_PDF
Le logo des exports PDF peut être configuré via une variable d'environnement (#5870)
2021-02-04 12:46:46 +01:00
Fabrice Gangler
d039798ac8 allow logo in PDF export to be configured in .env file
Refs: #5869
2021-02-04 12:24:31 +01:00
Pierre de La Morinerie
82743d7da3
Merge pull request #5507 from betagouv/i18n-tasks 2021-02-04 12:24:23 +01:00
Pierre de La Morinerie
3b5617b123 mailers: remove dead AdministrationMailer code 2021-02-04 12:15:13 +01:00
Judith
6d89a83d14 unused locales clean-up 2021-02-04 12:15:13 +01:00
Judith
ed10a9dd62 gem i18n-tasks added to Gemfile 2021-02-04 12:15:13 +01:00
Pierre de La Morinerie
a953de7150
Merge pull request #5877 from betagouv/update-byebug
gems: use a zeitwerk-compatible version of byebug
2021-02-04 11:28:32 +01:00
Pierre de La Morinerie
705cb2e657 gems: use a zeitwerk-compatible version of byebug
It seems byebug is not compatible with the zeitwerk autoloader, but
byebug-pry is.
2021-02-04 09:42:49 +00:00
Pierre de La Morinerie
0d99f32c93
Merge pull request #5865 from tchak/layout-cleanup
Remove old design's css and js
2021-02-02 15:41:43 +01:00
Pierre de La Morinerie
0d101f3f1a views: remove old design's leftbars 2021-02-02 15:33:09 +01:00
Pierre de La Morinerie
334e50d4f8 views: remove old design's navbars 2021-02-02 15:33:09 +01:00
Paul Chavard
a503417298 Remove old css and js 2021-02-02 15:26:11 +01:00
Pierre de La Morinerie
16e860e00c
Merge pull request #5820 from tchak/update-sentry 2021-02-02 14:43:12 +01:00
Paul Chavard
41c3a98d7d Update Raven references to use Sentry 2021-01-28 19:46:36 +01:00
Paul Chavard
6ea44eefa9 fix upstream change in i18n
c4dfcda202
2021-01-28 19:46:36 +01:00
Paul Chavard
c46ab38055 Add sentry-rails 2021-01-28 15:31:27 +01:00
Paul Chavard
2eae5c4afe
Merge pull request #5862 from tchak/fix-champs-repetition
Stop crashing when removed repetition row is submitted
2021-01-27 17:43:29 +01:00