Posts saved before v0.10.0 can lose or misread saved remote data
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Read issue #867 for background, then trace how saved remote data is read in the editor and in PHP. Compare the old and current formats, including custom query output and the loading case described here. Done means both sides detect old data consistently, all listed cases work, and current saved data remains unchanged.
Written by the indexing model from the issue text.
Description
Description
Posts saved before v0.10.0 store remote data in an older format. If such a post hasn't been saved since:
- In the editor, saved values can show as empty until fresh data loads.
- A text field named
resultis split into characters in the editor. - A row with fields named both
resultanduuidisn't converted in the editor. - With an object or array field named
result, visitors see the saved content instead of live data. - Changing focus away from a query input and saving while data is still loading leaves visitors on saved content and empties the saved row values.
Impact
Narrow, and limited to these old posts. We haven't had a report of it. These were checked with hand-built data, not posts from an old install.
Notes for a fix
- Current saved data, including output from custom queries, should keep working unchanged.
- The editor and PHP should detect the old format the same way.
- Keeping old values in the editor with
result.result ?? resultmade one case worse: saving during loading lost the label and formatting on the front end.
More background is in #867.
- Dominant language
- PHP
- Stars
- 86
- Forks
- 14
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 23
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/remote-data-blocks
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Automattic/remote-data-blocks#883 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 54/100
Automattic/remote-data-blocks#878 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Automattic/remote-data-blocks#821 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Automattic/remote-data-blocks#640 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Automattic/remote-data-blocks#312 ·
Maintainers usually reply within 1 day
All issues in Automattic/remote-data-blocks
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
recca0120/vscode-phpunit#620 ·
Maintainers usually reply within 1 day
-
Validation rule generation for recursive Data objects is unbounded (O(payload depth))Possibly taken @irfanm96 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
spatie/laravel-data#1226 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day