simon lehericey
ce5cd63ed2
comment
2023-10-18 13:01:07 +02:00
simon lehericey
1bb4d3cf17
remove useless assignment
2023-10-18 13:01:07 +02:00
simon lehericey
dbe67aaf18
default_page <= max_page_size
2023-10-18 13:01:07 +02:00
simon lehericey
c5899f2c46
extract limit and expected_size
2023-10-18 13:01:07 +02:00
simon lehericey
311c9215cd
extract ensure_valid_params
2023-10-18 13:01:07 +02:00
simon lehericey
0dd68ab73d
add comments
2023-10-18 13:01:07 +02:00
Paul Chavard
71d5470100
fix(graphql): implement real cursor pagination
2023-10-18 13:01:07 +02:00
Kara Diaby
5b08f54665
Ajoute les changements à l'API
2023-10-16 08:53:52 +00:00
simon lehericey
24fd12ed70
explicit about different contexts
2023-09-20 14:11:09 +02:00
simon lehericey
0b03ba4d68
remove v1/v2 api token logic
2023-09-20 14:11:09 +02:00
Paul Chavard
21b9a491cb
fix(graphql): improuve sort for pending deleted dossiers
2023-09-15 16:15:43 +02:00
Colin Darie
ea7d3f9364
feat(graphql): expose sva/svr dates
2023-08-29 16:33:00 +02:00
Paul Chavard
cd85bad379
graphql(query): expose __typename and timestamps one some nodes
2023-08-07 17:13:26 +02:00
Paul Chavard
e584edeb16
graphql(attachment): prevent null errors
2023-08-07 17:11:02 +02:00
Paul Chavard
166c57b466
Merge pull request #9377 from tchak/feat-api-request-touch
...
ETQ Administrateur, je voudrais que mon compte soit considéré comme actif si je n'utilise que l'API
2023-08-02 11:52:18 +00:00
Paul Chavard
e9cb50d09c
feat(api): add last_authenticated_at timestamp to api requests
2023-08-02 13:22:18 +02:00
Paul Chavard
b404064d3b
feat(graphql): add mutation flag to lograge
2023-08-02 13:20:58 +02:00
Paul Chavard
bb100c610f
fix(graphql): increase graphql timeout untill we can improuve API perf
2023-08-02 13:20:58 +02:00
Paul Chavard
0ca72492e3
feat(graphql): use camelize with inflection
2023-08-01 14:55:08 +02:00
Paul Chavard
4d298600e6
chore(graphql): update stored query to include corrections
2023-07-27 12:51:59 +02:00
Colin Darie
caf41a82e6
feat(graphql): can flag pending correction with "dossier envoyer message"
...
Co-authored-by: Paul Chavard <github@paul.chavard.net>
2023-07-21 16:45:47 +02:00
Colin Darie
873218222c
feat(graphql): returns dossier & message correction status
...
Co-authored-by: Paul Chavard <github@paul.chavard.net>
2023-07-21 16:45:47 +02:00
Paul Chavard
1882f652d5
fix(dossier): do not create groupe instructeur assignements on brouillons
2023-07-18 16:54:00 +02:00
Eric Leroy-Terquem
0e58e10b82
refactor(DossierAssignment): move create_assignment to assign_to_groupe_instructeur
2023-07-18 16:54:00 +02:00
Eric Leroy-Terquem
24f68b4deb
feat(DossierAssignment): create assignments from api
2023-07-18 16:54:00 +02:00
Paul Chavard
32ecbaee61
feat(graphql): add timestamps to files and champs
2023-07-12 11:06:42 +02:00
Paul Chavard
d5820277c0
feat(cojo): add cojo type de champ
2023-07-10 14:57:34 +02:00
Paul Chavard
7136c96a36
feat(procedure): validate external links
2023-07-06 10:27:43 +02:00
Eric Leroy-Terquem
b94e8edb67
refactor(routing): move toggle_routing to procedure model
2023-07-03 14:47:56 +02:00
Eric Leroy-Terquem
3de5aa0382
refactor(routing): toggle routing from mutations
2023-07-03 14:47:56 +02:00
Paul Chavard
02dcead04a
fix(commune): add fallbacks to commune name resolution
2023-06-28 09:44:21 +02:00
Eric Leroy-Terquem
3f55c71bc8
Merge pull request #8658 from E-L-T/notify-instructeur-when-added-or-removed-from-api
...
feat(API): notify instructeurs when added or removed from procedure
2023-06-26 09:37:15 +00:00
Paul Chavard
10524643fb
fix(hack): fix and test hack for procedures using groupe instructeur api
2023-06-14 19:24:58 +01:00
Paul Chavard
b3aeb46c1b
fix(prefill): it should be possible to prefill a dossier on a test procedure
2023-06-14 09:14:12 +01:00
Paul Chavard
35f4c9f48b
fix(api_entreprise): raison_sociale can be nil
2023-06-01 13:42:54 +02:00
Paul Chavard
6e160e54e3
chore(graphql): reorder fields declarations by nullability
2023-06-01 12:18:18 +02:00
Paul Chavard
86f18de7a6
fix(api_entreprise): nom_commercial can be nil
2023-06-01 12:16:54 +02:00
simon lehericey
ba5c64ea84
a cheap solution ?
2023-05-31 11:38:16 +02:00
Paul Chavard
c06a4113b3
fix(graphql): gracefully handle change state errors
2023-05-24 12:04:04 +02:00
Paul Chavard
bca08c8e6c
feat(graphql): expose user connection type
2023-05-23 18:18:21 +02:00
Paul Chavard
0b696049b2
chore(graphql): remove sentry log on timeout errors
2023-05-15 11:36:10 +02:00
Paul Chavard
71cfe094aa
fix(groupe_instructeur): always use assign_to_groupe_instructeur method
2023-05-09 17:23:23 +02:00
Nicolas Cavigneaux
3aa6a5e28e
fix: url helper method calls for files
2023-05-03 11:35:28 +02:00
Nicolas Cavigneaux
8f6beb1093
fix: Rails 7 preloader now take named arguments
2023-05-03 10:10:38 +02:00
Paul Chavard
ce466d072a
feat(manager): display procedure state and unpublished date
2023-04-19 19:59:54 +02:00
Paul Chavard
05cfb4055d
fix(dossier): improuve dossier state display
2023-04-19 12:27:16 +02:00
github-merge-queue[bot]
a286af8a70
Merge pull request #8918 from tchak/graphql-add-error-codes
...
ETQ intégrateur API, je voudrais avoir des codes d'erreur plus précis
2023-04-19 09:00:32 +00:00
github-merge-queue[bot]
26e516ea72
Merge pull request #8888 from tchak/graphql-improuve-stored-query
...
ETQ intégrateur API, je voudrais avoir accès aux dossiers récemment supprimés d’un groupe instructeur
2023-04-18 13:25:31 +00:00
Paul Chavard
ae1ec87397
feat(graphql): add code to timeout errors
2023-04-18 15:22:11 +02:00
Paul Chavard
f70532a844
feat(graphql): global not found error handling
2023-04-18 15:22:11 +02:00
Paul Chavard
fbae6d941d
feat(graphql): add error codes to graphql errors
2023-04-18 15:22:11 +02:00
Paul Chavard
2a09f1d505
fix(graphql): return empty arrays from loaders when loading collections
2023-04-18 15:20:43 +02:00
Paul Chavard
bd07441b7e
fix(graphql): stub metadata on fake files interfaces
2023-04-18 11:36:40 +02:00
Paul Chavard
ca9fa71667
feat(graphql): improuve stored query
2023-04-17 18:43:00 +02:00
Paul Chavard
bf6cc25063
feat(graphql): expose pendingDeletedDossiers on groupe instructeur
2023-04-17 18:43:00 +02:00
Paul Chavard
aaae3f461d
feat(graphql): expose commune and departement information on address
2023-04-07 12:13:41 +02:00
Paul Chavard
a5733002ed
feat(graphql): improuve logs
2023-04-05 13:56:26 +02:00
Paul Chavard
dee0952b2a
fix(graphql): demandeur personne morale can be in degraded mode
2023-04-05 11:20:18 +02:00
Paul Chavard
a778e1083b
fix(graphql): return better errors when dossiers cannot change state
2023-04-04 17:24:30 +02:00
Paul Chavard
3eae17b7cb
feat(graphql): log type and timeout errors
2023-03-30 09:18:00 +02:00
Paul Chavard
666db74b09
feat(graphql): add postalCode to champ commune
2023-03-28 16:34:19 +02:00
Paul Chavard
275150d727
feat(graphql): expose pendingDeletedDossiers
...
fix #8785
2023-03-22 19:40:43 +01:00
Christophe Robillard
0a715bc79e
add doc to some graphql fields
2023-03-22 10:31:46 +01:00
Lisa Durand
893ee5801e
Merge pull request #8743 from demarches-simplifiees/ask-question-in-avis
...
[instructeurs] Je peux poser une question dans une demande d'avis
2023-03-17 15:10:51 +00:00
Paul Chavard
f4f55183de
Merge pull request #8768 from tchak/fix-graphql-attachement
...
fix(graphql): return empty array when no attachments
2023-03-16 10:44:50 +00:00
Lisa Durand
5b0570d289
add new fields to serializer
2023-03-16 11:32:05 +01:00
Paul Chavard
4ba3c0e650
fix(graphql): return empty array when no attachments
2023-03-16 10:59:08 +01:00
simon lehericey
8b5d493f12
clean: log current_user in api v2, when not using token_v3
2023-03-16 10:06:23 +01:00
Paul Chavard
d481222110
refactor(graphql): extract compute_demarche_authorization
2023-03-15 19:09:49 +01:00
Paul Chavard
8ee13f1719
feat(api_token): add allowed_procedure_ids and write_access
2023-03-15 19:09:49 +01:00
Paul Chavard
85d31632e3
feat(graphql): add read_only check to mutations
2023-03-15 19:09:49 +01:00
Paul Chavard
cbaa77fca7
feat(annotations): activate autosave
2023-03-14 15:22:13 +01:00
Eric Leroy-Terquem
72b6dacfbd
fix(API): remove notification to group when instructeurs removed
2023-03-08 11:59:58 +01:00
Eric Leroy-Terquem
6c277e8678
fix(groupe instructeur API): move condition to catch error
2023-03-08 11:59:58 +01:00
Eric Leroy-Terquem
a150aa33ef
feat(GroupeInstructeurSupprimerInstructeurs): add notification for removed instructeurs via API
2023-03-08 11:59:58 +01:00
Eric Leroy-Terquem
ac0d7a67a1
feat(GroupeInstructeurAjouterInstructeurs): add notification for added instructeurs via API
2023-03-08 11:59:58 +01:00
Eric Leroy-Terquem
b2f3a7af4c
feat(GroupeInstructeurSupprimerInstructeurs): enable emailing for unrouted procedures
2023-03-08 11:59:55 +01:00
Paul Chavard
6647be216b
Merge pull request #8722 from E-L-T/do-not-notify-group-when-instructeurs-removed
...
feat(groupe instructeur): do not notify group when instructeurs removed
2023-03-02 12:51:23 +00:00
Paul Chavard
ac00a91984
fix(graphql): fix etablissement in degraded mode
2023-03-02 13:32:17 +01:00
Eric Leroy-Terquem
f6c4986e86
feat(groupe instructeur mailer): do not notify group when instructeurs removed
2023-03-02 09:46:58 +01:00
krichtof
5840c8c7f9
Merge pull request #8711 from demarches-simplifiees/8708-demarches-publiques
...
Ne pas publier le descriptif de toutes les procedures sur datagouv
2023-03-01 10:09:47 +00:00
Paul Chavard
f31241e067
fix(graphql): fix etablissement as_degraded_mode?
2023-02-28 18:09:13 +01:00
Christophe Robillard
9ff88db48c
publish only some opendata procedures for datagouv
...
- only published or closed procedures
- only procedures with flag opendata
- only procedures with 4 or more dossiers
- only procedures without word "mail" in lien_site_web
- only procedures without word "intra" in lien_site_web
2023-02-28 17:02:08 +01:00
Christophe Robillard
38fa7a44c3
publish opendata demarches only if they are publiees or closes
2023-02-23 15:47:18 +01:00
Paul Chavard
3c3629d151
refactor(instructeurs): add_instructeurs should add
2023-02-22 09:49:26 +01:00
Paul Chavard
fcd0f7c609
bring back find_or_create_instructeurs
2023-02-22 09:49:26 +01:00
Eric Leroy-Terquem
d0c432d939
refactor(groupe instructeur): move method to Instructeur model
2023-02-22 09:49:26 +01:00
Paul Chavard
9c0cd8979a
fix(graphql): context should correctly preserve demarche authorization state
2023-02-21 16:06:39 +01:00
Paul Chavard
e56d51e0f6
fix(graphql): fix demarcheUrl
2023-02-21 10:57:43 +01:00
Eric Leroy-Terquem
a46faf8cdf
feat(groupe instructeur mailer): make two kind of notifications for removed instructeur
2023-02-16 10:37:04 +01:00
Eric Leroy-Terquem
5be58c8223
refactor(groupe instructeur mailer): rename mailer methods
2023-02-16 10:37:04 +01:00
Eric Leroy-Terquem
cbf072961c
feat(groupe instructeur mailer): add emailing to removed instructeurs
2023-02-16 10:37:04 +01:00
Paul Chavard
8b74a6f39b
fix(geometry): implement our own bbox to replace rgeo
2023-02-15 11:58:59 +01:00
Paul Chavard
5f0e9f7313
fix(graphql): fixing couple of n+1
2023-02-09 10:37:44 +01:00
Eric Leroy-Terquem
6cbc514d56
feat(groupe instructeurs): remove mailing when add instructeurs
2023-02-08 10:36:42 +01:00
Paul Chavard
a4cbbe721e
feat(types de champ): add EPCI champ
2023-01-20 11:32:36 +01:00
Paul Chavard
8f1ae99413
fix(graphql): remove deprecated options from introspection query
2023-01-20 09:54:50 +01:00
Martin
52380d5249
fix(api): on fixe avec avec des tests le prob de token
2023-01-19 17:40:19 +01:00
Paul Chavard
b5dc71e975
fix(graphql): demarche with pj should return schema
2023-01-18 18:06:10 +01:00
Paul Chavard
e19af241ca
feat(graphql): expose pays, region and departement options in schema
2023-01-18 13:46:40 +01:00