Closed rhertogh closed 1 year ago
New panel for showing DB query callers Added a new panel to display the callers of database queries, providing better insight into query usage.
Improved CSS selectors compatibility Changed some CSS selectors from IDs to classes for better compatibility with other panels and themes, such as Bootstrap.
Fixed issue with aliases in backtraces Resolved an issue where aliases were not being resolved in backtraces, preventing false positives when determining repeating query callers using path aliases in the codebase or project configuration files.
Introduction of queries.php file Added a new file, queries.php, to handle related code.
Enhanced detail view with tabs Updated the detail view to utilize tabs for better organization and display of query and caller data.
Code separation for querying and callers Moved all code related to querying into its own tab, leaving only callers in the main detail tab for better focus.
Removed unused variables Eliminated some unused variables from both views for cleaner code.
@samdark @bizley Originally this issue was intended to show "repeating callers" (as discussed in #499) and is currently implemented as such (minimum of 5 calls). Since it's now displayed on a separate tab do we want to show all callers on that tab (so including callers that, for example, only make 1 query call)? The "repeating calls" would that simply be "Total calls". Looking at it now it would actually make more sense that way.
@rhertogh agree.
@samdark @bizley The PR has been updated to list all "callers" (please see updated screenshot in opening post).
👍
Existing DB panel is unchanged and located under the "Queries" tab:
A new tab "Callers" is added: