Skip to content

query: show a query's folder and search within a folder - #88

Merged
rahuldotiyer merged 1 commit into
mainfrom
query-folder
Nov 30, 2026
Merged

rahuldotiyer merged 1 commit into
mainfrom
query-folder

Conversation

@rahuldotiyer

Copy link
Copy Markdown
Contributor

CLI side of core#8488 (in prod since today).

  • dune query search --folder-id <id> passes folder_id to searchDuneQueries, keeping only queries in that folder or its subfolders.
  • dune query get shows Folder: <path> (<id>) from getDuneQuery's new folder field. In -o json it adds folder and folder_access next to the latest execution. Like the MCP, the folder is shown only for queries that the key's user or team owns. It is left out when the MCP call fails.

Tests extend TestSearchOwnedOnly and TestGetShowsTheLatestExecution. Both fail without the change, and go test ./... passes. Checked live on prod: query search --query a --folder-id YrFmD-dQGeBO lists only queries in /AI, and query get 3062591 prints Folder: /AI (YrFmD-dQGeBO).

@rahuldotiyer
rahuldotiyer merged commit 4f370b4 into main Nov 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants