Skip to content

[dataquery] Dedup recent queries by content so "No run time" eliminates duplicates#10980

Open
HenriRabalais wants to merge 2 commits into
aces:29.0-releasefrom
HenriRabalais:2026-07-22_dataquery-recent-dedup
Open

[dataquery] Dedup recent queries by content so "No run time" eliminates duplicates#10980
HenriRabalais wants to merge 2 commits into
aces:29.0-releasefrom
HenriRabalais:2026-07-22_dataquery-recent-dedup

Conversation

@HenriRabalais

@HenriRabalais HenriRabalais commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Description

The "No run times (eliminate duplicates)" filter in the Recent Queries list was deduping on QueryID, but that doesn't actually catch duplicates. Identical queries can get saved under different QueryIDs, since the server dedupes saved queries by an exact string match on the query JSON, so any non-semantic difference (columns added in a different order, an optional visits key) ends up as a distinct QueryID. Keying on QueryID just leaves the duplicates in the list.

Changes

  • Dedup the recent queries by a signature of their actual content (columns + filters) instead of QueryID. Columns and filter terms are sorted so their order doesn't matter.
  • When two collapse, keep the named one as the representative if there is one, otherwise the most recent run.

Testing Instructions

  1. Run a query.
  2. Name it in the Recent Queries section.
  3. Run the same query again from scratch.
  4. Go to Recent Queries and tick "No run times (eliminate duplicates)".
  5. The two runs now collapse into a single row (showing the named query).

Related Issues

Resolves #10600

@github-actions github-actions Bot added the Module: dataquery PR or issue related to (new) dataquery module label Jul 22, 2026
@HenriRabalais HenriRabalais added the 29.0.0 - Bugs Issues found during the release testing for 29.0.0 label Jul 22, 2026
@HenriRabalais

Copy link
Copy Markdown
Collaborator Author

@CamilleBeau PR has ben made for #10600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

29.0.0 - Bugs Issues found during the release testing for 29.0.0 Module: dataquery PR or issue related to (new) dataquery module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants