Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Document null page titles and the 422 on route generation without a title

オープン 初心者向け
#227 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php, sql

調査の方向性

リンクされたバンドルのPR components-web-app/api-components-bundle#440 から始めて動作を確認してください。確認項目は、Page と AbstractPageData で title がデフォルトで null になること、POST /_/routes/generate が返す 422、そして CwaFixtureBuilder の変更です。その後、Doctrine マイグレーションと 2 つの SQL UPDATE 文を含め、ドキュメントに記載してください。設定された table_prefix を使うよう注記も加えます。4 つのセクションがすべて書かれ、SQL がバンドルで使われているテーブル名と一致していれば完了です。

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

説明

Bundle PR: components-web-app/api-components-bundle#440 (fixes components-web-app/api-components-bundle#439)

Please document the following.

A page's title defaults to null

A Page or page data (AbstractPageData) created without a title now stores and returns title: null. It used to be 'Unnamed Page'. Page data's title column is now nullable, as the page's already was. Front ends can tell an untitled page apart from a chosen title, so a page data with no title can fall back to its page template's title.

Route generation needs a title

POST /_/routes/generate for a page or page data with no title, or with a title that gives no slug (for example only punctuation), returns 422 with one violation on title: "A title is needed to generate a route." Nothing is created, and an existing route is not turned into a redirect. Before this change it generated /unnamed-page. Explicit route creation (POST /_/routes) is unaffected.

CwaFixtureBuilder: a page or page data with no route: and no title gets no route, top-level or nested. In an --append load, untitled page data with no route: is identified like withoutRoute() page data: it is created only with its template or parent.

Upgrade step

Generate and run a Doctrine migration. It makes _acb_abstract_page_data.title nullable. Then clear the old default:

UPDATE _acb_page SET title = NULL WHERE title = 'Unnamed Page';
UPDATE _acb_abstract_page_data SET title = NULL WHERE title = 'Unnamed Page';

Replace _acb_ with the configured table_prefix if it differs.

主要言語
Vue
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

components-web-app/docs のほかの issue

components-web-app/docs の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

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

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