NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
21 Sep 2020

As additional to #30580

Summary of Changes

This fixing displaying of the SQL query parameters in debugBar.
Also optimised "Call Stack" rendering, that saves ~0.3s for rendering in my tests.

Testing Instructions

Apply path, run npm install

Actual result BEFORE applying this Pull Request

Not possible to view the query parameters

Expected result AFTER applying this Pull Request

Click on "Params" icon to show the table with used query parameters

Screenshot_2020-09-21_14-28-09

Documentation Changes Required

none

avatar Fedik Fedik - open - 21 Sep 2020
avatar Fedik Fedik - change - 21 Sep 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Sep 2020
Category JavaScript Repository NPM Change Front End Plugins
4705224 21 Sep 2020 avatar Fedik clean
avatar Fedik Fedik - change - 21 Sep 2020
Labels Added: NPM Resource Changed ?
avatar Fedik Fedik - change - 21 Sep 2020
The description was changed
avatar Fedik Fedik - edited - 21 Sep 2020
avatar richard67
richard67 - comment - 21 Sep 2020

Adding release blocker label as the original issue #30318 had it, and PR #30580 had only fixed one aspect while this PR now fixes the remaining issue.

avatar richard67 richard67 - test_item - 21 Sep 2020 - Tested successfully
avatar richard67
richard67 - comment - 21 Sep 2020

I have tested this item successfully on 9a522d0

Tested with "MySQLi", "MySQL (PDO)" and "PostgreSQL (PDO)" databases and drivers.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30717.

avatar richard67
richard67 - comment - 21 Sep 2020

@Fedik Maybe there is a small improvement possible?

The call stack and the query plan have a bold heading, see green frame in the below screenshot.

Would be nice to have something like that, e.g. "Query Parameters", for the parameters, too.

2020-09-21_01

And there is a little inconsistency, the "Call Stack" heading is only capitalized, but the "QUERY PLAN" is completely uppercase. Maybe the "QUERY PLAN" can be changed to "Query Plan"?

No need to do it with this PR here, future PR is also ok for me.

avatar Fedik
Fedik - comment - 21 Sep 2020

"Call Stack" heading is only capitalized, but the "QUERY PLAN" is completely uppercase.

"Explain table" rendered based on SQL response.
"QUERY PLAN" comes from SQL response for PostgreSQL, similar for MySQL headings all table columns comes from SQL response.

And "Call Stack" is hard-coded in the debugbar.

avatar richard67
richard67 - comment - 21 Sep 2020

@Fedik And a heading for the parameters table, e.g. "Query Parameters", can that be added?

avatar Fedik Fedik - change - 21 Sep 2020
Labels Added: ?
avatar Fedik
Fedik - comment - 21 Sep 2020

Added, and update a styling a bit, to make it a little better readable

avatar richard67 richard67 - test_item - 21 Sep 2020 - Tested successfully
avatar richard67
richard67 - comment - 21 Sep 2020

I have tested this item successfully on 32565fc

@Fedik You are my hero ;-)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30717.

avatar richard67
richard67 - comment - 21 Sep 2020

@alikon Please test this PR here ... am sure you will like it ?

avatar alikon
alikon - comment - 21 Sep 2020

using the Prebuilt package i've got strange results
image

i'll re-test later on a proper npm environment

avatar Fedik
Fedik - comment - 21 Sep 2020

yea, that exact result with old JS

avatar Quy Quy - test_item - 21 Sep 2020 - Tested successfully
avatar Quy
Quy - comment - 21 Sep 2020

I have tested this item successfully on 32565fc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30717.

avatar Quy Quy - change - 21 Sep 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 21 Sep 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30717.

avatar wilsonge wilsonge - close - 22 Sep 2020
avatar wilsonge wilsonge - merge - 22 Sep 2020
avatar wilsonge wilsonge - change - 22 Sep 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-09-22 17:36:07
Closed_By wilsonge
Labels Added: ?
Removed: ?
avatar wilsonge
wilsonge - comment - 22 Sep 2020

Thanks!

Add a Comment

Login with GitHub to post a comment