-
Notifications
You must be signed in to change notification settings - Fork 31
Fix for incremental validation updates when saving attachment tags #3827
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
Conversation
…l later after incremental validation updates arrive from tags saving
📝 WalkthroughWalkthroughAdds a new method Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (2)📚 Learning: 2025-08-28T12:00:32.967ZApplied to files:
📚 Learning: 2025-08-22T13:53:28.252ZApplied to files:
🧬 Code graph analysis (3)src/features/validation/backendValidation/BackendValidation.tsx (1)
src/features/validation/backendValidation/useUpdateIncrementalValidations.ts (1)
src/features/formData/FormDataWriteStateMachine.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (11)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
cammiida
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
…3827) * Setting data in FormDataWrite so that waitForValidation() doesn't fail later after incremental validation updates arrive from tags saving * Moving the code snippet so it always happens --------- Co-authored-by: Ole Martin Handeland <[email protected]>
|
✅ Automatic backport successful! A backport PR has been automatically created for the The release branch The cherry-pick was clean with no conflicts. Please review the backport PR when it appears. |
…3827) * Setting data in FormDataWrite so that waitForValidation() doesn't fail later after incremental validation updates arrive from tags saving * Moving the code snippet so it always happens --------- Co-authored-by: Ole Martin Handeland <[email protected]>



Description
Replaces #3822.
There was a bug introduced in #3753, as navigation could still be blocked. This happened because a comparison in
useWaitForValidation()was waiting until the last saved validation issues was set inValidationContext. That's not what happens if the last thing to set incremental validations is something else, in this case updating attachment tags.Related Issue(s)
Verification/QA
kind/*andbackport*label to this PR for proper release notes groupingSummary by CodeRabbit
New Features
Tests