Commit graph

12461 commits

Author SHA1 Message Date
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
LeSim
6349406334
Merge pull request #5884 from betagouv/dev
2021-02-08-01
2021-02-08 11:31:19 +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
cbb3b36e52
Merge pull request #5863 from betagouv/dev
2021-01-27-02
2021-01-27 18:05:57 +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
Paul Chavard
1b5aef10f2 Stop crashing when removed repetition row is submitted 2021-01-27 17:33:55 +01:00
Paul Chavard
6a5722a5e5
Merge pull request #5859 from tchak/fix-champ-carto
Stop crashing if a selection utilisateur contains no geometry
2021-01-27 17:33:42 +01:00
Paul Chavard
3d0c888058 Stop crashing if a selection utilisateur contains no geometry 2021-01-27 17:18:55 +01:00
Paul Chavard
749850da0a
Merge pull request #5861 from tchak/fix-watermark
Stop crashing if attachment can not be watermarked
2021-01-27 17:18:38 +01:00
Paul Chavard
0633d43868 Stop crashing if attachment can not be watermarked and mark blob as invalid 2021-01-27 16:49:09 +01:00
Paul Chavard
912e188402
Merge pull request #5860 from tchak/fix-annuaire-education
Make siren_siret on annuaire education optional
2021-01-27 16:47:52 +01:00
Paul Chavard
df475dc306 Make siren_siret on annuaire education optional 2021-01-27 15:25:58 +01:00
Paul Chavard
0aa384c40b
Merge pull request #5858 from betagouv/dev
2021-01-27-01
2021-01-27 14:13:39 +01:00
Paul Chavard
c7c2ebd201
Merge pull request #5856 from tchak/fix-annuaire-education
Make some annuaire education fields optional
2021-01-27 13:35:03 +01:00
Paul Chavard
1bba12dc3a Make some annuaire education fields optional 2021-01-27 12:51:59 +01:00
Paul Chavard
92f6105eb9
Merge pull request #5857 from tchak/fix-personne-morale-api-type
Fix personne morale api type
2021-01-27 12:51:36 +01:00
Paul Chavard
a26537c77d Make some api entreprise fields optional 2021-01-27 11:53:00 +01:00
Paul Chavard
03ddd17884 Ignore entreprise_id on etablissements 2021-01-27 11:53:00 +01:00
Paul Chavard
8b6d218f91
Merge pull request #5855 from tchak/fix-champ-siret
Enforce siret validity for champ siret
2021-01-27 11:51:29 +01:00
Paul Chavard
96f8b9e2bf Enforce siret validity for champ siret 2021-01-27 11:13:00 +01:00
Kara Diaby
c0aa80fc58
Merge pull request #5852 from betagouv/fix-admin-list-expert
Fix admin list expert
2021-01-26 14:21:09 +01:00
kara Diaby
9b8d2f6fd3 instead of call Avis table, we now call Experts Procedure table to see the experts list 2021-01-26 13:59:10 +01:00
kara Diaby
85242e118b add an email method to expert model 2021-01-26 13:59:09 +01:00
Paul Chavard
00ee6faadb
Merge pull request #5850 from tchak/fix-champs-order
fix order of types de champ on procedure
2021-01-26 11:36:11 +01:00