Skip to content

[REVIEW] dms_preview_pane: preview-load race + translatable Details labels - #33

Open
dnplkndll wants to merge 2 commits into
19.0-add-dms_preview_panefrom
19.0-add-dms_preview_pane-review
Open

[REVIEW] dms_preview_pane: preview-load race + translatable Details labels#33
dnplkndll wants to merge 2 commits into
19.0-add-dms_preview_panefrom
19.0-add-dms_preview_pane-review

Conversation

@dnplkndll

@dnplkndll dnplkndll commented Sep 8, 2026

Copy link
Copy Markdown

Corrections found reviewing OCA/dms#483. Base is that PR's head, so this diff is only the fixes; they fold into the [ADD] before the upstream force-push.

  • Race: two overlapping loads had no ordering guard, so the earlier read could resolve last and paint over the selected row. One KeepLast around both reads. Mutation-checked — without the guard the new test fails Expected: 2, Received: 1.
  • i18n: the six Details labels were JS literals, which the translation export doesn't pick up.

Hoot 20/20 (was 19); pre-commit green.

AI-assisted (Claude Code); every change reviewed, tested, and owned by the author.

Selecting rows faster than the ORM answers left two reads in flight with
no ordering guard: the earlier one could resolve last and paint its file
over the row the user actually had selected. Routes both reads of a load
through one KeepLast so a superseded load never settles.

Assisted-by: Claude Opus 5
The six definition-list labels were JS string literals, which the
translation export does not pick up (template text is extracted, JS
literals are not), leaving the Details tab English in every language.

Assisted-by: Claude Opus 5
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.

1 participant