feat: expose the champs changed in a correction via a traitement checkpoint#13235
Merged
Conversation
tchak
force-pushed
the
push-nxrnqluquupo
branch
2 times, most recently
from
June 3, 2026 12:45
4614f85 to
2606662
Compare
mfo
approved these changes
Jun 10, 2026
mfo
left a comment
Contributor
There was a problem hiding this comment.
pas de bug, mais des proposition de refactoring. a prendre ou a laisser
tchak
force-pushed
the
push-nxrnqluquupo
branch
11 times, most recently
from
June 16, 2026 11:30
a57a78f to
0149996
Compare
mfo
reviewed
Jun 16, 2026
mfo
reviewed
Jun 16, 2026
mfo
reviewed
Jun 16, 2026
mfo
reviewed
Jun 16, 2026
mfo
reviewed
Jun 16, 2026
| lines << diff_line(t('.removed_values'), removed) if removed.present? | ||
| return tag.em(t('.changed')) if lines.empty? | ||
|
|
||
| safe_join(lines, tag.br) |
Member
Author
There was a problem hiding this comment.
oui, mais je ne sais pas trop comment s'en sortir ici. Nous sommes déjà à l'intérieur d'un dd
mfo
reviewed
Jun 16, 2026
mfo
reviewed
Jun 16, 2026
mfo
reviewed
Jun 16, 2026
mfo
reviewed
Jun 16, 2026
mfo
reviewed
Jun 16, 2026
tchak
force-pushed
the
push-nxrnqluquupo
branch
2 times, most recently
from
June 16, 2026 13:43
7414874 to
39275c9
Compare
…kpoint When a dossier is corrected (by the usager or an instructeur), the champs moved out of the buffer stream are now tagged with the history stream id as a "checkpoint", and that same id is stored on the resulting traitement. This links each correction traitement to the exact set of champs it changed. - Add a `checkpoint` column to `champs` and `traitements`. - `merge_user/instructeur_buffer_stream!` returns the history stream id and stamps the moved champs with it; submit helpers thread it onto the traitement. - Introduce `ChangedColumn`, which diffs the checkpointed champs against their reference values and yields displayable columns with their new values (handling repetitions). - `Traitement#changed_columns` / `#has_changes?` surface a correction's changes, and `Dossier#user_changed_columns` / `#instructeur_changed_columns` expose pending buffer changes. - Expose `changedColumns` on the GraphQL `Traitement` type.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
tchak
enabled auto-merge
June 17, 2026 12:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a dossier is corrected (by the usager or an instructeur), the champs moved out of the buffer stream are now tagged with the history stream id as a "checkpoint", and that same id is stored on the resulting traitement. This links each correction traitement to the exact set of champs it changed.
checkpointcolumn tochampsandtraitements.merge_user/instructeur_buffer_stream!returns the history stream id and stamps the moved champs with it; submit helpers thread it onto the traitement.ChangedColumn, which diffs the checkpointed champs against their reference values and yields displayable columns with their new values (handling repetitions).Traitement#changed_columns/#has_changes?surface a correction's changes, andDossier#user_changed_columns/#instructeur_changed_columnsexpose pending buffer changes.changedColumnson the GraphQLTraitementtype.