Merge pull request #9967 from colinux/bundle-update-phase-1

Tech: massive gems update, phase 1
This commit is contained in:
Colin Darie 2024-02-12 10:01:18 +00:00 committed by GitHub
commit 2875991930
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 166 additions and 224 deletions

View file

@ -803,6 +803,8 @@ Rails/FindById:
Rails/FindEach:
Enabled: true
Exclude:
- spec/**/*
Rails/FreezeTime:
Enabled: true
@ -1436,7 +1438,6 @@ Style/SymbolLiteral:
Style/SymbolProc:
Enabled: true
IgnoredMethods: [after]
Style/TernaryParentheses:
Enabled: false

View file

@ -31,7 +31,6 @@ gem 'devise-two-factor'
gem 'discard'
gem 'dotenv-rails', require: 'dotenv/rails-now' # dotenv should always be loaded before rails
gem 'dry-monads'
gem 'elastic-apm'
gem 'flipper'
gem 'flipper-active_record'
gem 'flipper-ui'

View file

@ -13,7 +13,7 @@ GIT
GEM
remote: https://rubygems.org/
specs:
aasm (5.2.0)
aasm (5.5.0)
concurrent-ruby (~> 1.0)
acsv (0.0.1)
actioncable (7.0.8)
@ -61,12 +61,12 @@ GEM
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
active_model_serializers (0.10.13)
actionpack (>= 4.1, < 7.1)
activemodel (>= 4.1, < 7.1)
active_model_serializers (0.10.14)
actionpack (>= 4.1)
activemodel (>= 4.1)
case_transform (>= 0.2)
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
active_storage_validations (0.9.6)
active_storage_validations (1.1.4)
activejob (>= 5.2.0)
activemodel (>= 5.2.0)
activestorage (>= 5.2.0)
@ -114,10 +114,10 @@ GEM
anchored (1.1.0)
ast (2.4.2)
attr_required (1.0.1)
axe-core-api (4.8.0)
axe-core-api (4.8.1)
dumb_delegator
virtus
axe-core-rspec (4.8.0)
axe-core-rspec (4.8.1)
axe-core-api
dumb_delegator
virtus
@ -128,29 +128,30 @@ GEM
axlsx_styler (1.1.0)
activesupport (>= 3.1)
caxlsx (>= 2.0.2)
bcrypt (3.1.19)
benchmark-ips (2.12.0)
better_html (1.0.16)
actionview (>= 4.0)
activesupport (>= 4.0)
base64 (0.2.0)
bcrypt (3.1.20)
benchmark-ips (2.13.0)
better_html (2.0.2)
actionview (>= 6.0)
activesupport (>= 6.0)
ast (~> 2.0)
erubi (~> 1.4)
html_tokenizer (~> 0.0.6)
parser (>= 2.4)
smart_properties
bindata (2.4.10)
bindex (0.8.1)
bootsnap (1.9.3)
msgpack (~> 1.0)
brakeman (5.4.1)
bootsnap (1.18.3)
msgpack (~> 1.2)
brakeman (6.1.2)
racc
brow (0.4.1)
browser (5.3.1)
builder (3.2.4)
capybara (3.39.2)
capybara (3.40.0)
addressable
matrix
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
nokogiri (~> 1.11)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
@ -169,13 +170,13 @@ GEM
nokogiri (~> 1.10, >= 1.10.4)
rubyzip (>= 1.3.0, < 3)
charlock_holmes (0.7.7)
chartkick (5.0.4)
chartkick (5.0.5)
choice (0.2.0)
chunky_png (1.4.0)
clamav-client (3.2.0)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
concurrent-ruby (1.2.2)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
content_disposition (1.0.0)
crack (0.4.5)
@ -183,7 +184,7 @@ GEM
crass (1.0.6)
css_parser (1.16.0)
addressable
daemons (1.3.1)
daemons (1.4.1)
date (3.3.4)
deep_cloneable (3.2.0)
activerecord (>= 3.1.0, < 8)
@ -191,7 +192,7 @@ GEM
delayed_job (>= 4.1)
delayed_job (4.1.11)
activesupport (>= 3.0, < 8.0)
delayed_job_active_record (4.1.7)
delayed_job_active_record (4.1.8)
activerecord (>= 3.0, < 8.0)
delayed_job (>= 3.0, < 5)
delayed_job_web (1.4.4)
@ -201,21 +202,20 @@ GEM
sinatra (>= 1.4.4)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
devise-i18n (1.9.2)
devise (>= 4.7.1)
devise-i18n (1.12.0)
devise (>= 4.9.0)
devise-two-factor (5.0.0)
activesupport (~> 7.0)
devise (~> 4.0)
railties (~> 7.0)
rotp (~> 6.0)
diff-lcs (1.5.0)
discard (1.2.1)
diff-lcs (1.5.1)
discard (1.3.0)
activerecord (>= 4.2, < 8)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
dotenv-rails (2.7.6)
dotenv (= 2.7.6)
domain_name (0.6.20240107)
dotenv (2.8.1)
dotenv-rails (2.8.1)
dotenv (= 2.8.1)
railties (>= 3.2)
dry-cli (1.0.0)
dry-core (1.0.0)
@ -229,22 +229,15 @@ GEM
dumb_delegator (1.0.0)
ecma-re-validator (0.3.0)
regexp_parser (~> 2.0)
elastic-apm (4.6.0)
concurrent-ruby (~> 1.0)
http (>= 3.0)
ruby2_keywords
erubi (1.12.0)
et-orbi (1.2.4)
et-orbi (1.2.7)
tzinfo
ethon (0.15.0)
ffi (>= 1.15.0)
excon (0.102.0)
factory_bot (6.1.0)
factory_bot (6.4.6)
activesupport (>= 5.0.0)
ffi (1.16.3)
ffi-compiler (1.0.1)
ffi (>= 1.0.0)
rake
flipper (1.0.0)
brow (~> 0.4.1)
concurrent-ruby (< 2)
@ -269,8 +262,8 @@ GEM
fog-core (~> 2.1)
fog-json (>= 1.0)
formatador (1.1.0)
fugit (1.4.2)
et-orbi (~> 1.1, >= 1.1.8)
fugit (1.9.0)
et-orbi (~> 1, >= 1.2.7)
raabro (~> 1.4)
geo_coord (0.2.0)
geocoder (1.8.2)
@ -281,22 +274,22 @@ GEM
i18n (>= 0.7)
multi_json
request_store (>= 1.0)
graphql (2.0.24)
graphql-batch (0.5.1)
graphql (>= 1.10, < 3)
graphql (2.2.7)
graphql-batch (0.5.3)
graphql (>= 1.12.18, < 3)
promise.rb (~> 0.7.2)
graphql-rails_logger (1.2.3)
graphql-rails_logger (1.2.4)
actionpack (> 5.0)
activesupport (> 5.0)
railties (> 5.0)
rouge (~> 3.0)
graphql-schema_comparator (1.1.2)
graphql-schema_comparator (1.2.1)
bundler (>= 1.14)
graphql (>= 1.10, < 3.0)
thor (>= 0.19, < 2.0)
groupdate (6.4.0)
activesupport (>= 6.1)
haml (6.0.5)
haml (6.3.0)
temple (>= 0.8.2)
thor
tilt
@ -307,61 +300,54 @@ GEM
activesupport (>= 5.1)
haml (>= 4.0.6)
railties (>= 5.1)
haml_lint (0.42.0)
haml (>= 4.0, < 6.1)
haml_lint (0.56.0)
haml (>= 5.0)
parallel (~> 1.10)
rainbow
rubocop (>= 0.50.0)
rubocop (>= 1.0)
sysexits (~> 1.1)
hana (1.3.7)
hashdiff (1.0.1)
hashie (4.1.0)
highline (2.0.3)
html_tokenizer (0.0.7)
hashie (5.0.0)
highline (3.0.1)
htmlentities (4.3.4)
http (5.1.1)
addressable (~> 2.8)
http-cookie (~> 1.0)
http-form_data (~> 2.2)
llhttp-ffi (~> 0.4.0)
http-accept (1.7.0)
http-cookie (1.0.3)
http-cookie (1.0.5)
domain_name (~> 0.5)
http-form_data (2.3.0)
http_accept_language (2.1.1)
httpclient (2.8.3)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
i18n-tasks (1.0.9)
i18n-tasks (1.0.13)
activesupport (>= 4.0.2)
ast (>= 2.1.0)
better_html (~> 1.0)
better_html (>= 1.0, < 3.0)
erubi
highline (>= 2.0.0)
i18n
parser (>= 2.2.3.0)
parser (>= 3.2.2.1)
rails-i18n
rainbow (>= 2.2.2, < 4.0)
terminal-table (>= 1.5.1)
i18n_data (0.13.0)
iban-tools (1.1.0)
iban-tools (1.2.1)
ice_nine (0.11.2)
image_processing (1.12.2)
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
invisible_captcha (2.0.0)
rails (>= 5.0)
io-console (0.7.1)
irb (1.11.0)
invisible_captcha (2.1.0)
rails (>= 5.2)
io-console (0.7.2)
irb (1.11.1)
rdoc
reline (>= 0.3.8)
reline (>= 0.4.2)
job-iteration (1.4.1)
activejob (>= 5.2)
jquery-rails (4.6.0)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.5.1)
json (2.7.1)
json-jwt (1.13.0)
activesupport (>= 4.2)
aes_key_wrap
@ -372,7 +358,7 @@ GEM
regexp_parser (~> 2.0)
uri_template (~> 0.7)
jsonapi-renderer (0.2.2)
jwt (2.3.0)
jwt (2.7.1)
kaminari (1.2.2)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.2.2)
@ -389,21 +375,20 @@ GEM
activemodel (>= 6.0.0)
activesupport (>= 6.0.0)
redis (>= 4.2, < 6)
launchy (2.5.0)
addressable (~> 2.7)
letter_opener (1.7.0)
launchy (~> 2.2)
letter_opener_web (1.4.0)
actionmailer (>= 3.2)
letter_opener (~> 1.0)
railties (>= 3.2)
language_server-protocol (3.17.0.3)
launchy (2.5.2)
addressable (~> 2.8)
letter_opener (1.8.1)
launchy (>= 2.2, < 3)
letter_opener_web (2.0.0)
actionmailer (>= 5.2)
letter_opener (~> 1.7)
railties (>= 5.2)
rexml
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
llhttp-ffi (0.4.0)
ffi-compiler (~> 1.0)
rake (~> 13.0)
lograge (0.11.2)
lograge (0.14.0)
actionpack (>= 4)
activesupport (>= 4)
railties (>= 4)
@ -417,31 +402,31 @@ GEM
net-imap
net-pop
net-smtp
mailjet (1.6.0)
mailjet (1.7.3)
activesupport (>= 3.1.0)
rack (>= 1.4.0)
rest-client (>= 2.0.0)
maintenance_tasks (2.3.2)
maintenance_tasks (2.4.0)
actionpack (>= 6.0)
activejob (>= 6.0)
activerecord (>= 6.0)
job-iteration (>= 1.3.6)
railties (>= 6.0)
zeitwerk (>= 2.6.2)
marcel (1.0.2)
matrix (0.4.2)
memory_profiler (1.0.0)
memory_profiler (1.0.1)
method_source (1.0.0)
mime-types (3.5.1)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2023.0808)
mina (1.2.4)
open4 (~> 1.3.4)
mime-types-data (3.2023.1205)
mina (1.2.5)
rake
mini_magick (4.11.0)
mini_magick (4.12.0)
mini_mime (1.1.5)
mini_portile2 (2.8.5)
minitest (5.20.0)
msgpack (1.4.2)
minitest (5.21.2)
msgpack (1.7.2)
multi_json (1.15.0)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
@ -459,7 +444,6 @@ GEM
nokogiri (1.16.2)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
open4 (1.3.4)
openid_connect (1.3.0)
activemodel
attr_required (>= 1.0.0)
@ -471,29 +455,30 @@ GEM
validate_url
webfinger (>= 1.0.1)
orm_adapter (0.5.0)
parallel (1.23.0)
parallel (1.24.0)
parsby (1.1.1)
parser (3.3.0.2)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
pdf-core (0.9.0)
pg (1.4.6)
phonelib (0.6.53)
pg (1.5.4)
phonelib (0.8.7)
prawn (2.4.0)
pdf-core (~> 0.9.0)
ttfunk (~> 1.7)
prawn-rails (1.3.0)
prawn-rails (1.4.2)
actionview (>= 3.1.0)
prawn
prawn-table
rails (>= 3.1.0)
prawn-table (0.2.2)
prawn (>= 1.3.0, < 3.0.0)
premailer (1.22.0)
addressable
css_parser (>= 1.12.0)
htmlentities (>= 4.0.0)
premailer-rails (1.11.1)
premailer-rails (1.12.0)
actionmailer (>= 3)
net-smtp
premailer (~> 1.7, >= 1.7.9)
promise.rb (0.7.4)
psych (5.1.2)
@ -501,14 +486,14 @@ GEM
public_suffix (5.0.4)
puma (6.4.2)
nio4r (~> 2.0)
pundit (2.2.0)
pundit (2.3.1)
activesupport (>= 3.0.0)
raabro (1.4.0)
racc (1.7.3)
rack (2.2.8)
rack-attack (6.5.0)
rack (>= 1.0, < 3)
rack-mini-profiler (3.0.0)
rack-attack (6.7.0)
rack (>= 1.0, < 4)
rack-mini-profiler (3.3.0)
rack (>= 1.2.0)
rack-oauth2 (1.19.0)
activesupport
@ -547,7 +532,7 @@ GEM
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-erd (1.6.1)
rails-erd (1.7.2)
activerecord (>= 4.2)
activesupport (>= 4.2)
choice (~> 0.2.0)
@ -555,7 +540,7 @@ GEM
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
rails-i18n (7.0.3)
rails-i18n (7.0.8)
i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 8)
railties (7.0.8)
@ -574,14 +559,14 @@ GEM
rdoc (6.6.2)
psych (>= 4.0.0)
redcarpet (3.6.0)
redis (5.0.6)
redis-client (>= 0.9.0)
redis-client (0.18.0)
redis (5.0.8)
redis-client (>= 0.17.0)
redis-client (0.19.1)
connection_pool
regexp_parser (2.8.1)
regexp_parser (2.9.0)
reline (0.4.2)
io-console (~> 0.5)
request_store (1.5.0)
request_store (1.5.1)
rack (>= 1.4)
responders (3.1.1)
actionpack (>= 5.2)
@ -598,55 +583,60 @@ GEM
rubyzip (>= 1.0)
rotp (6.2.2)
rouge (3.30.0)
rqrcode (1.2.0)
rqrcode (2.2.0)
chunky_png (~> 1.0)
rqrcode_core (~> 0.2)
rqrcode_core (0.2.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
rqrcode_core (~> 1.0)
rqrcode_core (1.2.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.5)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-rails (6.0.1)
rspec-support (~> 3.13.0)
rspec-rails (6.1.1)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
rspec-core (~> 3.11)
rspec-expectations (~> 3.11)
rspec-mocks (~> 3.11)
rspec-support (~> 3.11)
rspec-core (~> 3.12)
rspec-expectations (~> 3.12)
rspec-mocks (~> 3.12)
rspec-support (~> 3.12)
rspec-retry (0.6.2)
rspec-core (> 3.3)
rspec-support (3.12.0)
rspec_junit_formatter (0.4.1)
rspec-support (3.13.0)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.50.2)
rubocop (1.60.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.0.0)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.0, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.28.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.17.1)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-performance (1.17.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.19.1)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-performance (1.20.2)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-rails (2.23.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-rspec (2.20.0)
rubocop (~> 1.33)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-rspec (2.26.1)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
ruby-graphviz (1.2.5)
rexml
ruby-progressbar (1.13.0)
@ -654,7 +644,7 @@ GEM
ffi (~> 1.12)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
saml_idp (0.14.0)
saml_idp (0.16.0)
activesupport (>= 5.2)
builder (>= 3.0)
nokogiri (>= 1.6.2)
@ -679,9 +669,10 @@ GEM
scss_lint (0.60.0)
sass (~> 3.5, >= 3.5.5)
selectize-rails (0.12.6)
selenium-devtools (0.114.0)
selenium-devtools (0.121.0)
selenium-webdriver (~> 4.2)
selenium-webdriver (4.13.1)
selenium-webdriver (4.17.0)
base64 (~> 0.2)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
@ -696,8 +687,8 @@ GEM
sentry-sidekiq (5.9.0)
sentry-ruby (~> 5.9.0)
sidekiq (>= 3.0)
shoulda-matchers (4.5.1)
activesupport (>= 4.2.0)
shoulda-matchers (6.1.0)
activesupport (>= 5.2.0)
sib-api-v3-sdk (7.4.0)
json (~> 2.1, >= 2.1.0)
typhoeus (~> 1.0, >= 1.0.1)
@ -758,10 +749,7 @@ GEM
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
ulid-ruby (1.0.2)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
unicode-display_width (2.4.2)
unicode-display_width (2.5.0)
uri_template (0.7.0)
validate_email (0.1.6)
activemodel (>= 3.0)
@ -859,7 +847,6 @@ DEPENDENCIES
discard
dotenv-rails
dry-monads
elastic-apm
factory_bot
flipper
flipper-active_record

View file

@ -39,4 +39,3 @@
%p.fr-error-text= t('.errors.uploading')
= button_tag(**retry_button_options) do
= t(".retry")

View file

@ -34,4 +34,3 @@
%button.fr-btn.fr-btn--tertiary.fr-btn--sm.autosave-retry{ type: :button, data: { action: 'autosave-status#onClickRetryButton', autosave_status_target: 'retryButton' } }
%span.autosave-retry-label Réessayer
%span.autosave-retrying-label Enregistrement en cours…

View file

@ -6,4 +6,3 @@
%ul.fr-mt-2w.fr-btns-group.fr-btns-group--inline
%li= link_to t(".buttons.edit"), modifier_dossier_path(dossier), class: "fr-btn"
%li= button_to t(".buttons.submit"), modifier_dossier_path(dossier), class: "fr-btn fr-btn--secondary", method: :post

View file

@ -13,4 +13,3 @@
%li
= link_to error_descriptor.label, error_descriptor.anchor, class: 'error-anchor'
= "(#{error_descriptor.error_message})"

View file

@ -15,4 +15,3 @@
- if export.failed?
= button_to refresh_button_options(export)[:title], download_export_path(export_format: export.format, statut: export.statut), refresh_button_options(export)

View file

@ -7,4 +7,3 @@
- if error?
#dossier_pending_correction_error_messages.fr-messages-group{ aria: { live: "assertlive" } }
%p.fr-message.fr-message--error= error_message

View file

@ -6,4 +6,3 @@
'false'
%label.fr-label{ for: @champ.input_id, id: @champ.labelledby_id }
= render EditableChamp::ChampLabelContentComponent.new form: @form, champ: @champ, seen_at: @seen_at

View file

@ -15,4 +15,3 @@
aria: { describedby: @champ.describedby_id },
class: "width-33-desktop",
id: @champ.code_postal_input_id

View file

@ -6,4 +6,3 @@
required: @champ.required?,
aria: { describedby: @champ.describedby_id },
class: "width-33-desktop", id: @champ.input_id

View file

@ -31,4 +31,3 @@
- menu.with_item(class: "hidden inactive form-inside fr-pt-1v") do
= render partial: 'instructeurs/dossiers/instruction_button_motivation', locals: { dossier: dossier, placeholder: 'Expliquez au demandeur pourquoi ce dossier est refusé (obligatoire)', popup_class: 'refuse', process_action: 'refuser', title: 'Refuser', confirm: 'Confirmez-vous le refus de ce dossier ?' }

View file

@ -2,4 +2,3 @@
%ul
- cleaned_nearby_estimation do |estimation, i18n_key|
%li= t(".#{i18n_key}", estimation: estimation)

View file

@ -4,4 +4,3 @@
= render(Dsfr::SidemenuComponent.new) do |component|
- component.with_links(links)
.fr-col= content

View file

@ -19,4 +19,3 @@
admin_api_token_path(@api_token),
class: 'fr-btn fr-btn--tertiary-no-outline fr-btn--sm fr-btn--icon-left fr-icon-delete-line',
data: { turbo_method: :delete, confirm: "Confirmez-vous la suppression du jeton « #{@api_token.name} » ?" }

View file

@ -6,4 +6,3 @@
- label = button_label(tag)
%button.fr-tag.fr-tag--sm{ type: "button", title: button_title(tag), data: { action: 'click->tiptap#insertTag', tiptap_target: 'tag', tag_id: tag[:id], tag_label: label } }
= label

View file

@ -2,7 +2,7 @@ module Manager
class OutdatedProceduresController < Manager::ApplicationController
def index
@records_per_page = params[:records_per_page] || "10"
resources = Procedure.all
resources = Procedure
.where(procedure_expires_when_termine_enabled: false)
.order(created_at: :asc)
.page(params[:_page])

View file

@ -58,7 +58,7 @@ module Users
@dossiers_traites = current_user.dossiers.state_termine.merge(@dossiers_visibles)
@dossiers_invites = current_user.dossiers_invites.merge(@dossiers_visibles)
@dossiers_supprimes_recemment = current_user.dossiers.hidden_by_user.merge(ordered_dossiers)
@dossier_transferes = @dossiers_visibles.where(dossier_transfer_id: DossierTransfer.for_email(current_user.email).ids)
@dossier_transferes = @dossiers_visibles.where(dossier_transfer_id: DossierTransfer.for_email(current_user.email))
@dossiers_close_to_expiration = current_user.dossiers.close_to_expiration.merge(@dossiers_visibles)
@dossiers_supprimes_definitivement = deleted_dossiers

View file

@ -6,6 +6,6 @@ class Cron::AdministrateurActivateBeforeExpirationJob < Cron::CronJob
.includes(:user)
.inactive
.where(created_at: 3.days.ago.all_day)
.each { |a| a.user.remind_invitation! }
.find_each { |a| a.user.remind_invitation! }
end
end

View file

@ -1,6 +1,6 @@
class Migrations::BatchUpdateDatetimeValuesJob < ApplicationJob
def perform(ids)
Champs::DatetimeChamp.where(id: ids).each do |datetime_champ|
Champs::DatetimeChamp.where(id: ids).find_each do |datetime_champ|
current_value_in_time = Time.zone.parse(datetime_champ.value)
if current_value_in_time.present?

View file

@ -9,7 +9,7 @@ class ProcedureRevisionPreloader
end
def self.load_one(revision)
ProcedureRevisionPreloader.new([revision]).all.first
ProcedureRevisionPreloader.new([revision]).all.first # rubocop:disable Rails/RedundantActiveRecordAllMethod
end
private

View file

@ -45,7 +45,7 @@ class APIBretagneService
end
in Success(body:)
body
else # no response gives back a 204, so we don't try to JSON.parse(nil) to avoid error
else # no response gives back a 204, so we don't try to JSON.parse(nil) to avoid error
{ items: [] }
end
end

View file

@ -44,7 +44,7 @@ class ArchiveUploader
end
def upload_with_chunking_wrapper
params = blob_default_params(filepath).merge(byte_size: File.size(filepath),
params = blob_default_params(filepath).merge(byte_size: File.size(filepath),
checksum: Digest::SHA256.file(filepath).hexdigest)
blob = ActiveStorage::Blob.create_before_direct_upload!(**params)
if retryable_syscall_to_custom_uploader(blob)

View file

@ -13,4 +13,3 @@
= link_to admin_procedures_url, admin_procedures_url
= render partial: "layouts/mailers/signature"

View file

@ -42,4 +42,3 @@
.fr-mt-4w
= render Dsfr::InputComponent.new(form: f, attribute: :footer, input_type: :text_field, opts: { maxlength: 190, size: nil }, required: false)

View file

@ -29,4 +29,3 @@
.actions-right
= link_to 'Annuler', admin_procedure_path(id: @procedure), class: 'fr-btn fr-btn--tertiary fr-mr-2w', data: { confirm: 'Êtes-vous sûr de vouloir annuler les modifications effectuées ?'}
= f.button 'Enregistrer', class: 'fr-btn fr-btn--primary'

View file

@ -1,2 +1 @@
= render partial: 'insert'

View file

@ -148,7 +148,7 @@ def render_single_champ(pdf, champ)
add_libelle(pdf, champ)
pdf.text champ.description
pdf.text "\n"
when 'Champs::AddressChamp', 'Champs::CarteChamp', 'Champs::TextareaChamp'
when 'Champs::AddressChamp', 'Champs::CarteChamp', 'Champs::TextareaChamp'
format_in_2_lines(pdf, champ, 5)
when 'Champs::DropDownListChamp'
add_libelle(pdf, champ)

View file

@ -23,4 +23,3 @@
= render GroupeGestionnaire::Card::AdministrateursComponent.new(groupe_gestionnaire: @groupe_gestionnaire, path: gestionnaire_groupe_gestionnaire_administrateurs_path(@groupe_gestionnaire))
= render GroupeGestionnaire::Card::ChildrenComponent.new(groupe_gestionnaire: @groupe_gestionnaire, path: gestionnaire_groupe_gestionnaire_children_path(@groupe_gestionnaire))
= render GroupeGestionnaire::Card::CommentairesComponent.new(groupe_gestionnaire: @groupe_gestionnaire, administrateur: nil, path: gestionnaire_groupe_gestionnaire_commentaires_path(@groupe_gestionnaire), unread_commentaires: @unread_commentaires)

View file

@ -11,4 +11,3 @@
- @tree_structure.each do |parent, children|
%li
= render(GroupeGestionnaire::GroupeGestionnaireTreeStructures::TreeStructureComponent.new(parent: parent, children: children))

View file

@ -10,4 +10,3 @@
= t(".without_email.#{traitement.state}", processed_at: processed_at)
- else
%p.tab-paragraph Aucune décision na été rendue

View file

@ -6,4 +6,3 @@
}
}
setDarkBeforeRender();

View file

@ -7,4 +7,3 @@
%td{ align:"center", style:"border-radius: 5px;", color: theme[:color], bgcolor: theme[:bg_color] }
%a{ href: url, target:"_blank", rel: "noopener", style:"font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #{theme[:color]}; text-decoration: none; text-decoration: none; border-radius: 5px; padding: 12px 25px; border: 1px solid #{theme[:border_color]}; display: inline-block; min-width: 250px" }
= text

View file

@ -36,5 +36,3 @@
Nous vous invitons à regarder
= link_to 'la documentation', ARCHIVAGE_DOC_URL
afin de voir les options à votre disposition pour mettre en place un système darchive.

View file

@ -5,6 +5,3 @@
%tr
%th= t("api_particulier.providers.cnaf.scopes.adresse.#{key}")
%td= adresse[key]

View file

@ -5,4 +5,3 @@
= "#{pretty_date_exercice(year_for_bilan(bilan))} :"
= pretty_currency(value_for_bilan_key(bilan, key), unit: pretty_currency_unit(etablissement.entreprise_bilans_bdf_monnaie))
%br

View file

@ -13,4 +13,3 @@
%li.fr-nav__item
= link_to "Annonces publiées", release_notes_path, class: "fr-nav__link", target: "_self"

View file

@ -5,4 +5,3 @@
.fr-col-lg-10
%h1.fr-h2 Annonce
= render ReleaseNote::FormComponent.new(release_note: @release_note)

View file

@ -1,8 +0,0 @@
# Set options ELASTIC_APM_SERVER_URL & ELASTIC_APM_SECRET_TOKEN by env vars instead
# See https://www.elastic.co/guide/en/apm/agent/ruby/current/configuration.html
#
# server_url: ''
# secret_token: ''
# Enable it with ELASTIC_APM_ENABLED="true"
enabled: false

View file

@ -190,12 +190,6 @@ SIB_WEBHOOK_URL=""
# ServicesPublics+ tracking url shown to user when dossier is terminated.
SERVICES_PUBLICS_PLUS_URL=""
# Elasticsearch APM
# send application logs to elasticsearch APM component via elastic-apm gem
# see https://www.elastic.co/guide/en/apm/agent/ruby/current/configuration.html for more configuration options and vars
ELASTIC_APM_ENABLED="" # disabled by default, set to "true" to enable
ELASTIC_APM_SERVER_URL="http://192.168.0.1:8200" # elasticsearch APM endpoint URL
# Classic SMTP
CLASSIC_SMTP_ENABLED="disabled"
SMTP_HOST=""

View file

@ -132,8 +132,8 @@ ignore_unused:
# - 'activerecord.attributes.*'
## Ignore these keys completely:
# ignore:
# - kaminari.*
ignore:
- 'shared.champs.drop_down_list{,.other}' # pluralization "other" false positive
## Sometimes, it isn't possible for i18n-tasks to match the key correctly,
## e.g. in case of a relative key defined in a helper method.

View file

@ -1,2 +1,2 @@
Phonelib.default_country = "FR"
Phonelib.default_country = ["FR"]
Phonelib.parse_special = true

View file

@ -2,6 +2,7 @@ fr:
activemodel:
models:
outdated_procedure:
one: Démarche sans expiration
other: Démarches sans expiration
attributes:
outdated_procedure:

View file

@ -1,6 +1,6 @@
class CleanupAssignTosFromBetagouv < ActiveRecord::Migration[6.1]
def up
super_admin_emails = SuperAdmin.all.pluck(:email)
super_admin_emails = SuperAdmin.pluck(:email)
super_admin_emails.each do |email|
user = User.find_by(email: email)

View file

@ -1,6 +1,6 @@
class ReaddSuperAdminToTheirProcedureWithoutInstructeur < ActiveRecord::Migration[6.1]
def change
super_admin_emails = SuperAdmin.all.pluck(:email)
super_admin_emails = SuperAdmin.pluck(:email)
# we want to re-assign each super admin being an admin of a procedure
# to every procedure that lost all instructeur
# so we cache procedure without instructeur first

View file

@ -1,7 +1,7 @@
class BackfillProceduresZones < ActiveRecord::Migration[6.1]
def up
# rubocop:disable DS/Unscoped
Procedure.unscoped.each do |procedure|
Procedure.unscoped.find_each do |procedure|
procedure.zones << procedure.zone if procedure.zone
end
# rubocop:enable DS/Unscoped
@ -9,7 +9,7 @@ class BackfillProceduresZones < ActiveRecord::Migration[6.1]
def down
# rubocop:disable DS/Unscoped
Procedure.unscoped.each do |procedure|
Procedure.unscoped.find_each do |procedure|
procedure.zones.destroy_all
end
# rubocop:enable DS/Unscoped

View file

@ -20,7 +20,7 @@ namespace :after_party do
user.reload
# rubocop:enable DS/Unscoped
# rubocop:enable Rails/PluckInWhere
Avis.where(claimant: instructeur).each do |avis|
Avis.where(claimant: instructeur).find_each do |avis|
experts_procedure = ExpertsProcedure.find_or_create_by(expert: user.expert, procedure: avis.procedure)
avis.update_column(:experts_procedure_id, experts_procedure.id)
end

View file

@ -4,7 +4,7 @@ namespace :after_party do
puts "Running deploy task 'fix_dossier_transfer_with_uppercase'"
# in production, about 1000, no need to track progress
DossierTransfer.all.find_each do |dt|
DossierTransfer.find_each do |dt|
if /A-Z/.match?(dt.email)
dt.email = dt.email.downcase
dt.save

View file

@ -6,7 +6,7 @@ namespace :superadmin do
EOD
task list: :environment do
rake_puts "All SuperAdmins:"
SuperAdmin.all.pluck(:email).each do |a|
SuperAdmin.pluck(:email).each do |a|
puts a
end
end

View file

@ -28,7 +28,7 @@ namespace :support do
fail "Must specify a USER_EMAIL" if user_email.nil?
administrateur = Administrateur.joins(:user).where(user: { email: user_email }).first
AdministrateursProcedure.where(administrateur: administrateur).each do |administrateur_procedure|
AdministrateursProcedure.where(administrateur: administrateur).find_each do |administrateur_procedure|
procedure = administrateur_procedure.procedure
if procedure.administrateurs.count > 1
begin

View file

@ -1,10 +1,9 @@
= simple_form_for(@<%= singular_table_name %>) do |f|
= simple_form_for(@#{singular_table_name}) do |f|
= f.error_notification
.form-inputs
<%- attributes.each do |attribute| -%>
= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
<%- end -%>
- attributes.each do |attribute|
= f.send(attribute.reference? ? :association : :input, attribute.name)
.form-actions
= f.button :submit

View file

@ -984,7 +984,7 @@ describe API::V2::GraphqlController do
it "should fail" do
expect(gql_data).to eq(nil)
expect(gql_errors).not_to eq(nil)
expect(body[:errors].first[:message]).to eq("809: unexpected token at '{'")
expect(body[:errors].first[:message]).to eq("unexpected token at '{'")
expect(body[:errors].first.key?(:backtrace)).to be_falsey
end
end

View file

@ -123,7 +123,7 @@ describe Gestionnaires::GroupeGestionnairesController, type: :controller do
it do
subject
expect(GroupeGestionnaire.all.count).to eq(1)
expect(GroupeGestionnaire.count).to eq(1)
expect(response).to redirect_to(gestionnaire_groupe_gestionnaires_path)
end
end

View file

@ -78,7 +78,7 @@ describe 'Signin in:' do
click_on 'Se connecter', match: :first
sign_in_with user.email, password
expect(page).to have_content('Vous devez confirmer votre compte par courriel.')
expect(page).to have_content('Vous devez confirmer votre compte par email.')
end
end
end

View file

@ -16,7 +16,7 @@ describe 'user access to the list of their dossiers', js: true do
@default_per_page = Dossier.default_per_page
Dossier.paginates_per dossiers_per_page
last_updated_dossier.update_column(:updated_at, "19/07/2052 15:35".to_time)
last_updated_dossier.update_column(:updated_at, Time.zone.parse("19/07/2052 15:35"))
login_as user, scope: :user
visit dossiers_path