This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
Block id changes for every page save for block in stream field #34
Labels
bug
Something isn't working
Hi,
i noticed this behavior:
Every block inside a stream field on a page is saved with a new id when the page is saved (with or without changes on the page or in the blocks). This also seems to happen when copying a page.
"Regular" wagtail functionality (Wagtail 2.3 and 2.4) leaves a block id untouched after it was created in the same case.
I'm yet unsure if this functionality change might be on purpose or if it might be a bug? Found this while trying to compare block contents via block id after a page was copied.
Versions:
Wagtail 2.3 + wagtail-react-streamfield 0.9.0
Wagtail 2.3 + wagtail-react-streamfield 1.1.1
Wagtail 2.4 + wagtail-react-streamfield 1.1.1
Steps to reproduce:
Create one "text" block and save the page
Save the page again
Compare the content_json for the page revisions created in 2) and 3) - the block ids of "text" should differ
The text was updated successfully, but these errors were encountered: