Commit graph

15108 commits

Author SHA1 Message Date
Paul Chavard
a6cf311f56 Revert "if is not only in draft, its gonna be cloned anyway"
This reverts commit 71e9240a7d.
2022-05-18 22:53:39 +02:00
simon lehericey
74653631c3 few comments 2022-05-18 22:23:31 +02:00
simon lehericey
71e9240a7d if is not only in draft, its gonna be cloned anyway 2022-05-18 22:23:31 +02:00
simon lehericey
20288fbb7d revise_type_de_champ -> replace_tdcs_and_children_by_clones 2022-05-18 22:15:22 +02:00
simon lehericey
e7524b3f0d extract var 2022-05-18 21:59:31 +02:00
Paul Chavard
0e335f58ac fix(revision): update children coordinate instead of duplicating 2022-05-18 19:39:20 +02:00
Paul Chavard
24d47eb6d3 bug(revision): revising child type de champ create duplicate coordinate 2022-05-18 19:32:56 +02:00
Pierre de La Morinerie
029c6821d5
Merge pull request #7347 from betagouv/fix-model-comments
Modèles : mise à jour des commentaires du schéma
2022-05-18 15:43:27 +02:00
Pierre de La Morinerie
49410ff5f7 models: update database comments 2022-05-18 15:39:33 +02:00
LeSim
49aece457e
Merge pull request #7342 from betagouv/remove_repetition_types_de_champ
Refactor(revision): retire l'usage de repetition.types_de_champ
2022-05-18 15:23:57 +02:00
simon lehericey
fd4d543b20 fix test 2022-05-18 15:18:17 +02:00
simon lehericey
419d853d1d add target_revision on rebase 2022-05-18 15:18:17 +02:00
simon lehericey
8bd3de2050 remove use of repetition.types_de_champ (except rebase) 2022-05-18 15:18:17 +02:00
mfo
e976336612
Merge pull request #7349 from betagouv/fix/dossier_vide.pdf
fix(dossier_vide.pdf.prawn): avoid overlap on for multiline label on label
2022-05-18 15:17:27 +02:00
Martin
58d205a022 fix(dossier_vide.pdf.prawn): avoid overlap on for multiline label on label 2022-05-18 15:13:15 +02:00
LeSim
86eec7b315
Merge pull request #7346 from betagouv/simplier_children_of
simplify children_of
2022-05-18 14:30:18 +02:00
simon lehericey
1921661fad simplify children_of 2022-05-18 12:30:58 +02:00
LeSim
61c22e6324
Merge pull request #7344 from betagouv/remove_tdc_on_tdc
Refactor(revision): enleve l'usage de types_de_champ dans le modèle type_de_champ
2022-05-18 12:21:00 +02:00
simon lehericey
633f0d1ce5 remove_repetition 2022-05-18 12:12:25 +02:00
simon lehericey
4d97f6aa8c types_de_champ_for_revision 2022-05-18 11:40:34 +02:00
Paul Chavard
79fd90da75
Merge pull request #7345 from tchak/refactor-dossier-champs
refactor(dossier): champs order by coordinate
2022-05-18 11:32:31 +02:00
Paul Chavard
cdd597db19 refactor(dossier): fix champ repetition factories 2022-05-18 11:24:14 +02:00
Paul Chavard
6c2a3bafa4 refactor(dossier): champs order by coordinate 2022-05-18 11:20:50 +02:00
Paul Chavard
e59f7f2f87
Merge pull request #7343 from betagouv/remove_tdc_tdcs_in_manager
Refactor(revision) : retire l'utilisation de type_de_champ.types_de_champ dans le manager
2022-05-18 11:11:53 +02:00
simon lehericey
09744839f1 in manager dossier 2022-05-18 10:43:08 +02:00
LeSim
7f5876eb0d
Merge pull request #7302 from betagouv/add_champ_v2
Add champ v2
2022-05-18 10:35:42 +02:00
simon lehericey
be33c0ce7b extract coordinate_and_tdc 2022-05-18 10:11:31 +02:00
simon lehericey
0b90f4d30d is the order important ? 2022-05-18 10:11:31 +02:00
simon lehericey
ae86cdcf9e strange test 2022-05-18 10:11:31 +02:00
simon lehericey
5767c9b97e fix test 2022-05-18 10:11:31 +02:00
simon lehericey
7f23449f24 remove set_position 2022-05-18 10:11:31 +02:00
Paul Chavard
84d2e38494
Merge pull request #7339 from tchak/fix-add-back-export-all
feat(dossiers): bring back export all dossiers
2022-05-17 20:12:15 +02:00
Paul Chavard
0dfc015690 feat(dossiers): bring back export all dossiers 2022-05-17 18:34:00 +02:00
mfo
4fe6ae1b79
Merge pull request #7329 from betagouv/sentry/3255441683
clean(data): remove old cron UpdateAdministrateurUsageStatisticsJob from delayed job table
2022-05-17 17:03:28 +02:00
Martin
863358f389 clean(data): remove old cron UpdateAdministrateurUsageStatisticsJob from delayed job table 2022-05-17 16:57:55 +02:00
Paul Chavard
185f2acdea
Merge pull request #7266 from tchak/refactor-poll-controller
turbo poll controller
2022-05-17 16:25:36 +02:00
Paul Chavard
e33022ffc7 refactor(dossier): export to use turbo-poll 2022-05-17 16:08:47 +02:00
Paul Chavard
e9b02642c5 refactor(attachment): attachments controller to use turbo 2022-05-17 16:08:47 +02:00
Paul Chavard
32bd1b6d9f refactor(attachment): remove unused helpers 2022-05-17 16:08:47 +02:00
Paul Chavard
bc77390cfe refactor(attachment): use new components 2022-05-17 16:08:47 +02:00
Paul Chavard
2ce389d474 refactor(dossier): add Dossier::ExportComponent 2022-05-17 16:08:47 +02:00
Paul Chavard
7e1c793728 refactor(attachment): add Attachment::ShowComponent 2022-05-17 16:08:47 +02:00
Paul Chavard
d6384caf10 refactor(attachment): add Attachment::EditComponent 2022-05-17 16:08:47 +02:00
Paul Chavard
57c55107c0 feat(turbo): longer dely before hiding flash messages 2022-05-17 16:08:47 +02:00
Paul Chavard
dca4dda228 chore(view_component): enable global_output_buffer 2022-05-17 16:08:47 +02:00
Paul Chavard
df914d273f feat(turbo): add turbo-poll controller 2022-05-17 16:08:47 +02:00
Pierre de La Morinerie
144a086dce
Merge pull request #7333 from betagouv/fix-webpack-dev-server 2022-05-17 15:00:26 +02:00
Pierre de La Morinerie
03a16e2ee3 js: fix webpack-dev-server
Currently `bin/webpack-dev-server` raises an error:

> /rails_app/node_modules/webpack-cli/bin/utils/prompt-command.js:46
>    return func(...args);
>           ^
>
> TypeError: Class constructor ServeCommand cannot be invoked without 'new'

It seems this is because webpack-dev-server 4+ stopped being
compatible with webpack 5. So we have to downgrade to webpack-dev-server
3 to fix it.

See https://stackoverflow.com/questions/69046801/brand-new-rails-6-1-4-1-fails-with-webpack-error-typeerror-class-constructor
2022-05-17 14:56:47 +02:00
Paul Chavard
c933936aad
Merge pull request #7330 from tchak/fix-dossier-delete-redirect
fix(dossier): redirect on destroyed dossier -> NotFound
2022-05-17 11:46:33 +02:00
Paul Chavard
2eb7da5227 fix(dossier): redirect on not found dossiers 2022-05-17 11:42:10 +02:00