django-commons / django-commons/django-debug-toolbar

Feature Request: Add column sorting option for SQL query panel

Open
#490 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
8.4k
Forks
1.1k
Avg merge
1d 5h
Merged PRs (30d)
13

Description

A common use case for the SQL query panel is to check and see if you're running over a loop in your code which is causing many queries over the same object (i.e. the same query continuing to unnecessarily occur over and over again).

The feature request here would be to allow sorting of the columns in the SQL panel so I can sort by query or time. What would even be better was if we had the option to group by query.

via jquery

via plain js

Thanks a ton for building a super awesome tool!!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The payload does not name files or tests; start by locating the SQL query panel and its table-rendering entry point, then inspect how query and time columns are represented. Done means the panel supports sorting by query or time and, if included in scope, grouping identical queries; verify the behavior with the panel's existing checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, javascript, jquery, python, sql
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.