Conversation
…nd adding a Cypress test that reliably reproduces it.
📝 WalkthroughWalkthroughThis change addresses issue Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
|
* Fixing the bug (turns out it was much easier than I first thought!) and adding a Cypress test that reliably reproduces it. * New text in app heading * Adding a failsafe to make sure sharedperson data model is not used in components --------- Co-authored-by: Ole Martin Handeland <git@olemartin.org>
|
✅ 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. |
* Fixing the bug (turns out it was much easier than I first thought!) and adding a Cypress test that reliably reproduces it. * New text in app heading * Adding a failsafe to make sure sharedperson data model is not used in components --------- Co-authored-by: Ole Martin Handeland <git@olemartin.org>



Description
One-liner fix with some more baggage.. This sets
gcTime: 0on all form data queries, not just the stateless ones. Debugging this made me scratch my head more than usual, but what I observed was:FormDataReaders(so, because it was being references in a text resource). Thus, some data was added to the query cache.process/next, the content in the data model was expanded in aTaskEndhook on the backend.Task_2on the frontend, even though we calledinvalidateFormDataQueries(), the stale query result from before re-appeared in the query cache and was used to bootstrap the newFormDataWritewith old data.I spent some time building a whole new cache-busting mechanism using the
lastChangedproperty from the instance data, but that didn't do anything - it took me a while to notice we already cleared the form data query cache.Also, for some reason this all works fine if
Task_1has a component that references the data model, so the bug depended onFormDataReadersbeing the one to fetch the data model for some reason.Related Issue(s)
Verification/QA
kind/*andbackport*label to this PR for proper release notes groupingSummary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.