sanity icon indicating copy to clipboard operation
sanity copied to clipboard

fix(form): fix issue making circular structures sometimes causing infinite loop

Open bjoerge opened this issue 1 year ago • 3 comments

Description

This PR adds the fix and unit test proposed in #6646 with a few minor modifications, mostly in order to align it with established coding conventions. See #6646 for an in-depth explanation of the issue.

What to review

Does the changes make sense?

Testing

A unit test asserting the correct behavior is included.

Notes for release

Fixes an issue that could under certain conditions cause a circular structure to enter an infinite loop. Shoutout to @sarahsvedenborg and @stian-svedenborg for identifying the issue and proposing a fix.

bjoerge avatar May 16 '24 12:05 bjoerge

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
page-building-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 11:15am
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 11:15am
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 11:15am
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 11:15am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview May 27, 2024 11:15am

vercel[bot] avatar May 16 '24 12:05 vercel[bot]

No changes to documentation

github-actions[bot] avatar May 16 '24 12:05 github-actions[bot]

Component Testing Report Updated May 27, 2024 11:18 AM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 39s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 6s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 26s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 31s 11 7 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 14s 6 0 0
formBuilder/inputs/PortableText/DisableFocusAndUnset.spec.tsx ✅ Passed (Inspect) 8s 3 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 36s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 16s 21 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 5s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 7s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 21s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 15s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 30s 12 0 0

github-actions[bot] avatar May 16 '24 12:05 github-actions[bot]