ElasticPress menu item moved to the bottom of the Query Monitor menu with Query Monitor 4.1+
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, php, wordpress
- Domain
- developer-experience, tooling
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- PHP
- Stars
- 28
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
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 10up/debug-bar-elasticpress
-
Add spacing between the indexing notice and action buttonsPossibly taken @Sidsector9 claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
10up/debug-bar-elasticpress#132 · 1 assignee ·
-
ElasticPress panel cannot be expanded in Query Monitor for non-logged-in users when Authentication Cookie is enabledPossibly taken @Sidsector9 claimed this 2 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
10up/debug-bar-elasticpress#131 · 1 assignee ·
-
Critical Flow Documentation - ElasticPress Debugging Add-OnMay be free again @QAharshalkadu claimed this 974 days ago, and no pull request is open. Open
10up/debug-bar-elasticpress#97 · 1 assignee ·
-
Add Static Analysis tool PHPStanMay be free again @burhandodhy claimed this 1109 days ago, and no pull request is open. Opentype:enhancement
10up/debug-bar-elasticpress#93 · 1 assignee ·
All issues in 10up/debug-bar-elasticpress
Similar issues
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/autoshare-for-twitter#438 ·
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/Ad-Refresh-Control#240 ·
-
wpvc
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Backend bug severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RunningJoke/allipunkte#74 ·