ElasticPress menu item moved to the bottom of the Query Monitor menu with Query Monitor 4.1+
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, php, wordpress
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- PHP
- Star
- 28
- Fork
- 16
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của 10up/debug-bar-elasticpress
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
10up/debug-bar-elasticpress#132 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
10up/debug-bar-elasticpress#131 ·
-
Critical Flow Documentation - ElasticPress Debugging Add-OnCó thể làm lại được @QAharshalkadu đã nhận 971 ngày trước và không có pull request nào đang mở. Đang mở
10up/debug-bar-elasticpress#97 · 1 người được giao ·
-
Add Static Analysis tool PHPStanCó thể làm lại được @burhandodhy đã nhận 1105 ngày trước và không có pull request nào đang mở. Đang mởtype:enhancement
10up/debug-bar-elasticpress#93 · 1 người được giao ·
Tất cả issue của 10up/debug-bar-elasticpress
Issue tương tự
-
a11y
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
🧑💻 tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
guibranco/gstraccini-bot-service#1206 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
wpvc
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100