Commit graph

452 commits

Author SHA1 Message Date
Nicolas Bouilleaud
e9c6ed80e4 Migration: Index and make Procedure.path nonnull 2019-09-17 16:30:48 +02:00
Paul Chavard
8e44172e59 Remove unused columns and tables 2019-09-17 15:39:15 +02:00
Nicolas Bouilleaud
661b80777d Replace old migrations with a single “recreate_structure”
* copy-paste the description from schema.rb,
 * without the `force: :cascade` options (that drops the tables before recreating them).
* create a new migration with it
* give it the same timestamp as the last deleted migration, so that it exists in the schema_migration table and it is not run in production.
* (Also got rid of some stray changes in schema.rb for mon_avis and unconfirmed_email)
* Run rake db:migrate and make sure nothing moves
2019-09-16 14:44:37 +02:00
Paul Chavard
65e227c44b Migrate to flipper 2019-09-10 16:10:14 +02:00
simon lehericey
3cc8f0c792 Link Dossier and GroupeInstructeur 2019-09-03 06:47:02 +02:00
simon lehericey
97884c4349 Link AssignTo et GroupeInstructeur 2019-09-02 11:41:12 +02:00
simon lehericey
f296318072 Create GroupeInstructeur 2019-09-02 11:41:12 +02:00
simon lehericey
9fc63d923f Fix seeds.rb 2019-08-14 16:34:50 +02:00
simon lehericey
81f44fa76b Link user and administrateur 2019-08-14 15:06:15 +02:00
simon lehericey
dd4ffb926c Link user and instructeur 2019-08-13 15:15:16 +02:00
Nicolas Bouilleaud
17579ab8a5 Rename Gestionnaire to Instructeur in seeds.rb 2019-08-13 14:04:23 +02:00
simon lehericey
c681806f8d Rename gestionnaires to instructeurs in db 2019-08-12 13:47:01 +02:00
Pierre de La Morinerie
befee0ea57 Drop types_de_piece_justificative and pieces_justificatives tables
Now that the content of these tables has been migrated, we can drop
them.
2019-08-01 12:21:25 +02:00
Paul Chavard
6f3fde21f2
Merge pull request #4139 from Keirua/fix/confirm-on-delete-champ
#4137 - Ajout d'un confirm à la suppression d'un champ
2019-07-31 12:31:44 +02:00
pedong
5921da9397 add schema.rb updated 2019-07-29 17:48:44 +02:00
pedong
8d03a6747c add lockable to User, Gestionnaire, administration, Administrateur 2019-07-29 17:48:44 +02:00
Nicolas Bouilleaud
d06e2cd25f Fix schema.rb description after #4116
Always run migrations in the PR :)
2019-07-29 11:41:15 +02:00
clemkeirua
12f1a29b68 update tests 2019-07-25 11:13:30 +02:00
pedong
0f957ec77b [fixe #3974] add message for invite mail 2019-07-23 18:54:58 +02:00
clemkeirua
6d43465ee5 renammed into monavis_embed 2019-07-17 18:04:32 +02:00
clemkeirua
d8b63cd4c9 added 'monavis' inside the procedure and for users 2019-07-17 18:04:32 +02:00
Pierre de La Morinerie
2c8d953bb9 db: fix missing update to schema.rb 2019-07-11 16:45:32 +02:00
Pierre de La Morinerie
619f663e1a procedure: remove individual_with_siret column 2019-07-11 15:57:46 +02:00
Pierre de La Morinerie
a047ee356b procedure: remove expects_multiple_submissions column 2019-07-11 15:57:46 +02:00
simon lehericey
0f9fdf3f75 Activate device email change confirmation 2019-07-09 11:55:17 +02:00
Nicolas Bouilleaud
4d73275bab Drop Procedure.administrateur_id 2019-07-04 17:01:12 +02:00
Mathieu Magnin
b34f8fbe3d Add ActionText 2019-07-03 13:15:49 +02:00
Paul Chavard
46c1bbbc6f Official support for declarative demarches 2019-07-02 14:12:26 +02:00
simon lehericey
92bd382c64 [fix #4008] secured login for all gestionnaires 2019-07-01 15:06:39 +02:00
Nicolas Bouilleaud
f355f849a6 Add BillSignature Model 2019-06-17 16:16:28 +02:00
Nicolas Bouilleaud
be4c575622 Add Follow.unfollowed_at
The active scopes is used indirectly in the dossier<->gestionnaire associations: the existing tests in dossier and gestionnaire just work™.
2019-06-12 17:33:53 +02:00
Nicolas Bouilleaud
ba48a1da6e Ensure Follow dates can not be not null
* Add Follow.unfollowed_at
* Change the unicity constraint to gestionnaire/dossier AND unfollowed_at
2019-06-12 17:33:53 +02:00
Paul Chavard
3c4380251d Add digest and timestamps to operation_logs 2019-05-14 14:31:03 +02:00
Pierre de La Morinerie
dd4eae7d62 admin: add a expects_multiple_submissions property on procedures 2019-03-28 15:26:15 +01:00
simon lehericey
1644fd9059 Notification: add gestionnaire.procedures_with_email_notifications scope 2019-03-18 16:19:36 +01:00
Frederic Merizen
29a7ecb477 Remove unused column
The index in schema.rb is not directly related to this modification, it should
have been part of 2b763e4484 but was presumably
forgotten
2019-03-11 15:12:07 +01:00
Mathieu Magnin
2b763e4484 Add procedure_id index to type_de_piece_justificative 2019-02-27 15:45:45 +01:00
Mathieu Magnin
ff1f59a882 Add index Procedure_id on TypesDeChamp 2019-02-26 12:05:49 +01:00
simon lehericey
b9b83cca3a use multiple trusted_device_token 2019-02-18 17:20:42 +01:00
simon lehericey
a7e068003a [fix #3427] Administration can soft delete a dossier 2019-02-14 18:09:08 +01:00
simon lehericey
cb4f843171 DossierOperationLog: add automatic operation column 2019-01-16 17:12:32 +01:00
gregoirenovel
a9d4672de1 Remove sql views 2019-01-05 10:44:43 +01:00
gregoirenovel
edca75148a Drop the now useless rna_informations table 2019-01-05 10:44:43 +01:00
gregoirenovel
0596d53ac2 Enable the Lint/UnusedBlockArgument cop 2019-01-03 10:53:50 +01:00
gregoirenovel
186e362701 Enable the Layout/SpaceInsideArrayLiteralBrackets 2019-01-03 10:53:50 +01:00
Paul Chavard
5d1c24f3d8 Add type de champ repetition models (with row) 2018-12-19 15:31:11 +01:00
gregoirenovel
8769e49e92 [Fix #586] Add timestamps to tables where they were missing 2018-12-19 14:40:10 +01:00
gregoirenovel
27f4d9421f Remove now useless carto tables 2018-12-19 10:29:11 +01:00
Paul Chavard
b927ab4568 Add user_id and gestionnaire_id to commentaires 2018-12-05 11:25:18 +01:00
Paul Chavard
fb57a07927 Add stable_id to types_de_champ 2018-11-29 11:41:13 +01:00
Paul Chavard
85e3eb04f4 Add DossierOperationLog model 2018-11-27 12:49:40 +01:00
gregoirenovel
9bff7afabb [Fix #233] Remove the champ_id column on commentaires 2018-11-22 12:44:19 +01:00
Paul Chavard
e63fd9d573 Add migrated flag to module_api_cartos 2018-11-20 10:53:14 +01:00
simon lehericey
36621bffeb FlipFlop: enable for gestionnaire 2018-11-13 10:41:45 +01:00
simon lehericey
5690599289 Session: send a mail to confirm gestionnaire login 2018-11-13 10:41:45 +01:00
Paul Chavard
520dbc25c4 Drop procedure_paths table 2018-11-01 15:46:55 +01:00
Paul Chavard
fcdc0114fd Add id to geo areas 2018-10-30 12:16:09 +01:00
simon lehericey
2238e5bd9f Time.now => Time.zone.now 2018-10-26 10:10:20 +00:00
simon lehericey
13ffa61435 DateTime.now => Time.zone.now 2018-10-26 10:10:20 +00:00
Paul Chavard
202e055b7b Add geo areas schema 2018-10-16 14:00:52 +03:00
gregoirenovel
ed11852300 Delete the InviteGestionnaire model 2018-10-10 12:07:10 +02:00
gregoirenovel
d9d4f6fe20 Enable Style/SymbolProc 2018-10-03 12:15:48 +02:00
gregoirenovel
a171186dd8 Enable Style/TrailingCommaInHashLiteral 2018-10-03 12:03:21 +02:00
gregoirenovel
ed240cb4d3 Enable Style/UnneededInterpolation 2018-10-03 12:03:21 +02:00
gregoirenovel
6eeba14885 Enable Style/WordArray 2018-10-03 12:03:21 +02:00
Frederic Merizen
bdc0ee6126 Remove unused column 2018-10-03 11:32:14 +02:00
Frederic Merizen
892f9ca668 Remove now unused view 2018-10-02 18:30:30 +02:00
gregoirenovel
b994fa4206 Do one thing per line 2018-10-01 16:15:46 +02:00
simon lehericey
fe30c19aa4 Seed: fix weak password 2018-09-27 15:36:34 +02:00
simon lehericey
4300d7abf8 [fix #2449] Migration: remove administrateur api_token column 2018-09-27 10:24:56 +02:00
simon lehericey
8c4f8347ca Api Token: store token in an encrypted form 2018-09-27 10:14:32 +02:00
gregoirenovel
904f75a963 [Fix #1722] Drop the entreprises table 2018-09-25 13:50:55 +02:00
Frederic Merizen
a3cb2356cf [#2622] Change DB schema to JSONB 2018-09-24 19:39:01 +02:00
Paul Chavard
5ab22ee139 Add path column to procedures table 2018-09-18 13:21:18 +02:00
gregoirenovel
00ecae5f93 Procédure → Démarche 2018-09-05 15:46:24 +02:00
Paul Chavard
c67f8dcaaa Add after_party 2018-08-30 11:54:54 +01:00
gregoirenovel
5059c12b34 Remove the now useless mark column on the feedbacks table 2018-08-28 10:36:36 +02:00
gregoirenovel
fc0c54365f Add SQL validation for Feedback rating 2018-08-28 10:36:36 +02:00
gregoirenovel
4103861f90 Add the rating column to feedbacks 2018-08-27 17:03:11 +02:00
gregoirenovel
f30a62971a Drop the cerfas table 2018-08-22 21:17:19 +02:00
lucien mollard
9ecc5f7928 add a user satisfaction form' 2018-08-09 11:41:26 +02:00
Frederic Merizen
01ca8cc3cc [#2179] Add denormalized search_terms field to Dossier 2018-07-27 11:00:15 +02:00
gregoirenovel
cfdbeca4da Add the siret column to the services table 2018-07-19 15:36:29 +02:00
Paul Chavard
f30dadfb53 Update search to version 4 2018-06-28 15:16:20 +02:00
Pierre de La Morinerie
e50cc68e75 Rakefile: move first user creation to db/seeds.rb 2018-06-13 10:58:23 +02:00
Mathieu Magnin
927cd3c6f4 Create virus scan model to store clamav result 2018-06-12 15:12:38 +02:00
Frederic Merizen
d3cfcaa8ac [#1946] Add durees_conservation_required flag to procedures 2018-06-01 16:46:39 +02:00
simon lehericey
7eb34053f8 Procedure: add juridique_required flag to procedure 2018-06-01 11:12:53 +02:00
simon lehericey
a96889310b Procedure: add legal reference 2018-05-31 16:55:31 +02:00
Mathieu Magnin
55a3d59e38 Create new model to store deleted dossier metadatas 2018-05-30 18:01:36 +02:00
Paul Chavard
81179ceba9 Update search view to search v3 2018-05-24 17:54:51 +02:00
Frederic Merizen
79e35158e3 [#1946] Add data retention times to Procedure 2018-05-24 11:16:25 +02:00
simon lehericey
5bd589344e Devise: confirm user email 2018-05-23 15:55:52 +02:00
Paul Chavard
4ad3932c05 Add test_procedure to procedure_path 2018-05-23 11:32:26 +02:00
simon lehericey
928227a610 Procedure: remove now duplicate organisation and direction 2018-05-18 16:21:27 +02:00
simon lehericey
39bb56d1d9 Service: add organisme, email, tel, horaires, adresse 2018-05-18 16:21:27 +02:00
simon lehericey
fc17b68dc1 Service: create model 2018-05-18 16:21:26 +02:00
Paul Chavard
2b8ee92074 Add aasm_state to procedures 2018-05-17 14:46:48 +02:00
Paul Chavard
0c54220c2b Add test_started_at to procedures 2018-05-15 11:00:20 +02:00
Mathieu Magnin
7130eb6f41 Fix Sentry #2565 2018-05-02 16:46:38 +02:00
simon lehericey
9d0b568ef5 Procedure: add parent_procedure 2018-04-24 15:48:20 +02:00
simon lehericey
06a5063807 Procedure: add cloned_from_library flag 2018-04-24 14:22:22 +02:00
Paul Chavard
6b9003c3f4 Create flipflop table 2018-04-18 16:51:21 +02:00
Paul Chavard
27592ae072 Add simple web hooks to procedures 2018-04-09 11:02:24 +02:00
simon lehericey
155ffcb4ba Individual: change birthdate column type 2018-04-04 15:26:51 +02:00
simon lehericey
0093db18a1 Individual: add a second birthdate which is a date 2018-04-03 16:23:04 +02:00
gregoirenovel
2385548a03 [Ref #1626] Add the administrateurs_procedures table and associations 2018-03-23 11:40:03 +01:00
Frederic Merizen
2fa88a432b Add missing brackets around parameters in method definitions 2018-03-20 17:54:51 +01:00
gregoirenovel
8555a51350 [Fix #1534] Add missing timestamps columns 2018-03-20 16:53:47 +01:00
gregoirenovel
578cbcda37 Remove the mandataire_social column 2018-03-20 16:20:17 +01:00
Paul Chavard
5faf4cdd84 Remove all references to old STI 2018-03-08 14:17:04 +01:00
Paul Chavard
94dba77202 Fix capital social for large amounts 2018-03-07 11:24:59 +01:00
gregoirenovel
0a9f442260 Enable some Rails cops 2018-03-06 17:18:44 +01:00
gregoirenovel
e26f4148ff Bump development gems
- brakeman
- rubocop
- scss_lint
2018-03-06 16:17:22 +01:00
gregoirenovel
fe7f8da636 Revert "Bump development gems"
This reverts commit d6ad3fc3fd.
2018-03-06 15:11:26 +01:00
gregoirenovel
d6ad3fc3fd Bump development gems
- brakeman
- rubocop
- scss_lint
2018-03-06 10:36:35 +01:00
Paul Chavard
9481f12294 Inline entreprise and rna in to etablissement 2018-02-27 16:22:53 +01:00
Mathieu Magnin
5cd6767593 Remove unused procedure_filter 2018-02-26 17:42:46 +01:00
gregoirenovel
deeda0e540 Add a unicity constraint on AssignTo 2018-02-23 17:12:24 +01:00
gregoirenovel
922e504623 Add active_storage tables 2018-02-15 11:14:02 +01:00
Paul Chavard
2e4ada98e6 Add private columns to Champ and TypeDeChamp 2018-02-13 12:35:03 +01:00
Paul Chavard
160b4e78c7 Update schema.rb 2018-02-13 10:28:56 +01:00
Mathieu Magnin
50f35ee905 [Fix #1296] Birthday field is optional in procedure 2018-02-07 15:57:48 +01:00
gregoirenovel
c5c330e1df Drop the Notifications table 2018-02-06 14:07:20 +01:00
gregoirenovel
b138dcd876 Enable the Layout/SpaceInsideHashLiteralBraces cop 2018-01-18 10:53:35 +01:00
gregoirenovel
278a662350 Enable the Layout/SpaceAroundEqualsInParameterDefault cop 2018-01-18 10:53:34 +01:00
gregoirenovel
48fd3605a4 Bump rubocop 2018-01-18 10:47:11 +01:00
Paul Chavard
8688d62a24 Add active attribute to administrateur model 2018-01-16 10:49:07 +01:00
gregoirenovel
345b892956 Enable the Layout/LeadingCommentSpace cop 2018-01-15 22:33:13 +01:00
gregoirenovel
1e71188d4d Enable the Layout/IndentationConsistency cop 2018-01-15 22:33:13 +01:00
gregoirenovel
0be657c0d7 Enable the Layout/IndentHash cop 2018-01-15 22:33:12 +01:00
gregoirenovel
9e0e553f80 Enable the Layout/IndentArray cop 2018-01-15 22:33:12 +01:00
gregoirenovel
5125cf8396 Enable the Layout/FirstParameterIndentation cop 2018-01-15 22:14:39 +01:00
gregoirenovel
9f855afdfe Enable the Layout/FirstHashElementLineBreak cop 2018-01-15 22:14:38 +01:00
gregoirenovel
08ed400ec2 Enable the Layout/FirstArrayElementLineBreak cop 2018-01-15 22:14:38 +01:00
gregoirenovel
5b1d578726 Delete 3 now unused tables 2018-01-15 18:32:14 +01:00
gregoirenovel
7c34807f46 Don’t use unless 2018-01-12 11:32:43 +01:00
Frederic Merizen
56749769d6 [Fix #1186] Rename object to subject for mail templates 2018-01-09 16:00:31 +01:00
Frederic Merizen
39a138e48d Drop MAIL_TEMPLATES table
it’s not used since 695dc16b8 / 335caed65e anymore
2018-01-09 15:28:16 +01:00
Simon Lehericey
8d52f57e6a Fix pg extension creation in migration for #1097 2018-01-09 15:20:04 +01:00
simon lehericey
2bc61f9f3f [fix #1097] Accent insensitive search 2018-01-09 10:29:54 +01:00
simon lehericey
6a2b575027 [fix #1097] Add whitelist mechanisme to procedure 2018-01-09 10:29:54 +01:00
LeSim
3dda27b281 [fix #504] Dossier: received -> en_instruction 2017-12-15 12:10:54 +01:00
LeSim
56545933a9 [fix #504] Dossier: initiated -> en_construction
The change must not impact the api
2017-12-15 11:52:09 +01:00
Mathieu Magnin
d8bbb8cb08 Add timestamps on Entreprises 2017-12-08 09:15:45 +01:00
gregoirenovel
dc439933d8 Make the procedures’ table organisation column not null 2017-11-29 10:36:22 +01:00
Mathieu Magnin
5775901868 Add commentaire file uploader 2017-11-28 15:07:09 +01:00
Simon Lehericey
d0cad00940 ProcedurePresentation: change default sort value 2017-11-20 17:22:52 +01:00
Simon Lehericey
909ecf2142 Notification: add timestamp to champs, pieces jusitificatives and follows 2017-11-10 16:29:44 +01:00
Simon Lehericey
3dce5b9b5e AttestationTemplate: store logo and signature with uuid 2017-10-19 15:32:04 +02:00