Skip to content

LIN-4849 Remove conflict overwrite for KTs#42

Merged
ataraxis merged 2 commits into
hillman-mainfrom
lin-4849
Jul 1, 2026
Merged

LIN-4849 Remove conflict overwrite for KTs#42
ataraxis merged 2 commits into
hillman-mainfrom
lin-4849

Conversation

@ataraxis

@ataraxis ataraxis commented Jun 3, 2026

Copy link
Copy Markdown

Summary

  • New :overwrite_conflicting_updates permission. The conflict dialog's "overwrite" radio and the controller's lock_version drop are gated on it, so KTs (FSR — which lacks the permission) can no longer clobber a concurrent update on save.
  • Guards the issue-form Parts Status JS so a read-only field skips the Send Parts automation instead of acting as if empty.
  • The permission is granted to non-FSR roles via the LIN-4849 evolve in mammoth (k2/shared/schema).

Checklist

  • Dev testing completed
  • Added Deployment notes and testing instructions in Jira

ataraxis and others added 2 commits June 2, 2026 12:27
Mid-air collisions let kiosk techs (FSR) clobber concurrent dispatch edits
by choosing "overwrite" on the conflict dialog, wiping parts orders. Add an
:overwrite_conflicting_updates permission (granted to every role but FSR via
the LIN-4849 evolve); hide the overwrite radio and skip the lock_version drop
when the user lacks it, so the save re-raises the conflict instead of clobbering.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The issue-form JS reads Parts Status via findInput(); a read-only field renders
without an input, so findInput() returns empty and .val() is undefined. Guard
removeSendParts() and the submit handler on the input being present, so a
read-only Parts Status skips the automation instead of acting as if empty (which
would strip "Send Parts" from the status list).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@ram-ku ram-ku left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM.

@ataraxis
ataraxis merged commit 21c6eb3 into hillman-main Jul 1, 2026
@ataraxis
ataraxis deleted the lin-4849 branch July 1, 2026 18:41
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