Posts saved before v0.10.0 can lose or misread saved remote data

オープン
#879 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php, wordpress
領域
backend, frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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 result is split into characters in the editor.
  • A row with fields named both result and uuid isn'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 ?? result made one case worse: saving during loading lost the label and formatting on the front end.

More background is in #867.

主要言語
PHP
スター
86
フォーク
14
平均マージ
1日 5時間
マージ済み PR(30日)
23

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Automattic/remote-data-blocks のほかの issue

Automattic/remote-data-blocks の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。