Skip to content

query create: agree to a public query at the team's private limit - #89

Merged
rahuldotiyer merged 1 commit into
mainfrom
query-public-at-private-limit
Nov 30, 2026
Merged

rahuldotiyer merged 1 commit into
mainfrom
query-public-at-private-limit

Conversation

@rahuldotiyer

Copy link
Copy Markdown
Contributor

CLI side of core#8454 (in prod). When --private is not set, the team's queries are private by default and its private query limit is used up, createDuneQuery and createAndExecuteQuery now fail with nothing created. Their error tells an AI assistant to ask the user and then retry with public_if_private_limit_reached: true.

  • query create and query create-and-run get --public-if-private-limit-reached, which passes that consent on. Like the MCP, it never makes a query public for a strict-privacy team.
  • That error is replaced with one that names the CLI flag instead of the MCP argument.

TestCreateAtThePrivateLimit covers both commands and fails without the change, and go test ./... passes. Not checked live: reproducing it needs an Enterprise flex team at its private query limit. The error match keys on the public_if_private_limit_reached text from core's services/queries/create.ts.

Not included: dashboard create uses REST, and createDashboard gained the same publicIfPrivateLimitReached on the MCP. Whether the REST endpoint needs it is an open question in the parity map.

@rahuldotiyer
rahuldotiyer merged commit 9e70082 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