Skip to content

Questions in Usage analytics should never open the native query panel #49904

Open
@luizarakaki

Description

Describe the bug

We hide the "Show SQL" on Usage analytics questions, but if the user had it open in another question, it opens in Usage analytics questions too.

To Reproduce

  1. Go to a question where you have "Create native query" permission
  2. Click on "Show editor" > "View the SQL"
  3. Now go to a Usage analytics question
  4. See the SQL

Expected behavior

Questions in Usage analytics should never show the SQL or the Convert to SQL button

Logs

No response

Information about your Metabase installation

1.51.3

Severity

P3

Additional context

Thread

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions