ElasticPress menu item moved to the bottom of the Query Monitor menu with Query Monitor 4.1+
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 65/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, php, wordpress
調査の方向性
Start by tracing how this add-on registers its Query Monitor menu item and how Query Monitor 4.1+ combines add-on items with core items; the issue names the qm/output/menus PHP filter and assets/build/query-monitor.js as relevant entry points. Check how the menu ordering changed, then confirm ElasticPress appears near the top, ideally after Timeline, with Query Monitor 4.1 or later.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
With Query Monitor 4.1.0 or later, the ElasticPress item in the Query Monitor admin bar dropdown moved from near the top of the list to the very bottom. It now shows after all the core panels and the conditionals (e.g. is_single(), is_singular()).
Expected: ElasticPress appears near the top of the menu, as it did with Query Monitor 4.0.0 and earlier, ideally right after Timeline.
Actual: ElasticPress is the last item in the menu.
Cause: In Query Monitor 4.0.0, every panel (core and add-on) added its menu item through the qm/output/menus PHP filter at its own priority. Our QueryMonitorOutput uses the default priority 10, so it ended up near the top. Starting with Query Monitor 4.1.0, the core panels are registered and sorted in JavaScript. Items coming from qm/output/menus are appended after them ({ ...coreItems, ...QueryMonitorData.menu.sub } in assets/build/query-monitor.js), so filter priority no longer has any effect. This affects every Query Monitor add-on, not just this plugin.
Steps to Reproduce
- Install and activate ElasticPress, Debug Bar ElasticPress, and Query Monitor 4.1.0 or later.
- Visit any front-end page while logged in as an administrator.
- Hover the Query Monitor item in the admin bar.
- ElasticPress is at the bottom of the dropdown.
- Downgrade to Query Monitor 4.0.0 and repeat: ElasticPress is near the top.
Screenshots, screen recording, code snippet
Environment information
- Query Monitor: 4.1.1 (issue introduced in 4.1.0; not present in 4.0.0)
- Debug Bar ElasticPress: 4.0.0 (
develop)
WordPress information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
- 主要言語
- PHP
- スター
- 28
- フォーク
- 16
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
10up/debug-bar-elasticpress のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
10up/debug-bar-elasticpress#132 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
10up/debug-bar-elasticpress#131 ·
-
Critical Flow Documentation - ElasticPress Debugging Add-On再び着手できるかも @QAharshalkadu が 971 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
10up/debug-bar-elasticpress#97 · 担当者 1 名 ·
-
Add Static Analysis tool PHPStan再び着手できるかも @burhandodhy が 1105 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtype:enhancement
10up/debug-bar-elasticpress#93 · 担当者 1 名 ·
10up/debug-bar-elasticpress の issue をすべて見る
似ている issue
-
🧑💻 tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
guibranco/gstraccini-bot-service#1206 ·
メンテナーはふだん 1 日以内に返信
-
wpvc
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
firefly-iii/firefly-iii#13259 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[Sync EN] Document the getLastErrors() return value change in the PHP 8.2 migration guide (#6107)オープンsync-en
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信