Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dossier): always use update path to editable dossier #11235

Merged

Conversation

tchak
Copy link
Member

@tchak tchak commented Jan 22, 2025

No description provided.

Copy link

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.40%. Comparing base (5700d4f) to head (1266af6).
Report is 33 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11235      +/-   ##
==========================================
- Coverage   84.42%   84.40%   -0.02%     
==========================================
  Files        1199     1199              
  Lines       26381    26381              
  Branches     4965     4965              
==========================================
- Hits        22271    22268       -3     
- Misses       4110     4113       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@colinux
Copy link
Member

colinux commented Jan 22, 2025

ça corrige une erreur en particulier ? (j'essaie de faire le ménage sur sentry, y a eu pas mal de nouveaux trucs) '

@@ -6,7 +6,7 @@
.dossier-edit.fr-container.counter-start-header-section
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: dossier }
= render NestedForms::FormOwnerComponent.new
= form_for dossier_for_editing, url: brouillon_dossier_url(dossier), method: :patch, html: { id: 'dossier-edit-form', class: 'form', multipart: true, novalidate: 'novalidate' } do |f|
= form_for dossier_for_editing, url: brouillon_dossier_url(dossier_for_editing), method: :patch, html: { id: 'dossier-edit-form', class: 'form', multipart: true, novalidate: 'novalidate' } do |f|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on est d'accord que c'est juste du cosmétique ?

  1. côté serveur, on adaptait bien par default si dossier.en_construction? on prend le fork, sinon le dossier
  2. et de tte maniere, l'autosave se declenche sur le champ, qui lui etait le bon car on passe par dossier_for_editing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oui, mais à terme ça permettra de simplifier le code

@tchak
Copy link
Member Author

tchak commented Jan 28, 2025

Non, c'est juste du nettoyage pour préparer la migration vers les streams

@tchak tchak added this pull request to the merge queue Jan 28, 2025
Merged via the queue into demarches-simplifiees:main with commit ef00646 Jan 28, 2025
18 checks passed
@tchak tchak deleted the refactor-dossier-update-path branch January 28, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants