Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common Metrics gone after Summarising by some other column #40553

Closed
cgg-pwdt opened this issue Mar 25, 2024 · 2 comments · Fixed by #40614
Closed

Common Metrics gone after Summarising by some other column #40553

cgg-pwdt opened this issue Mar 25, 2024 · 2 comments · Fixed by #40614
Assignees
Labels
Administration/Metrics & Segments Priority:P2 Average run of the mill bug Querying/GUI Query builder catch-all, including simple mode Querying/MBQL .Team/QueryingComponents Type:Bug Product defects
Milestone

Comments

@cgg-pwdt
Copy link

Describe the bug

NOTE: this issue is duplicated from link. I'm afraid I used the wrong method to raise the issue and it didn't had bug type tag. Apologies for the spam.

When creating a Metabase question, selecting a Common Metric and creating a summary, we lose the Common Metrics group. Moreover, if we pick the initial Common Metric added, Metabase shows a error message. The console log displays a "metric with id xx not found" issue.

We've recorded the following Loom to show the issue:
loom

If we pick all the Common Metrics we are summarizing and then the Dimensions, Metabase outputs the result properly. However, we lose the ability to edit the question.

To Reproduce

  1. Go to 'New > Question'
  2. Click on 'Pick the metric you want to summarize' add any Common Metric
  3. Summarize by some other column
  4. Go back to metrics
  5. Common Metrics are not there.
  6. If you click on the initial metric selected, metabase outputs an error.

Expected behavior

Common metrics should not disappear.

Logs

Logs
metric with ID does not exist : 32 > react-dom.prodcution.min.js:209
Error app.ts:30

Information about your Metabase installation

{
  "browser-info": {
    "language": "en-GB",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
    "vendor": "Google Inc."
  },
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.22+7",
    "java.vendor": "Eclipse Adoptium",
    "java.vendor.url": "https://adoptium.net/",
    "java.version": "11.0.22",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.22+7",
    "os.name": "Linux",
    "os.version": "5.10.205-195.804.amzn2.x86_64",
    "user.language": "en",
    "user.timezone": "GMT"
  },
  "metabase-info": {
    "databases": [
      "mysql",
      "postgres",
      "athena"
    ],
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "15.3"
      },
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.7.2"
      }
    },
    "run-mode": "prod",
    "version": {
      "date": "2024-03-14",
      "tag": "v0.49.0",
      "hash": "46c668b"
    },
    "settings": {
      "report-timezone": null
    }
  }
}

Severity

blocking significant part of the metabase usage

Additional context

image

https://www.loom.com/share/a3775a517dc3402ba4e37bd1e4e7fdb0?sid=b196bff3-b455-40dc-8348-a94d9b3663b6

@cgg-pwdt
Copy link
Author

thanks everyone! life savers 🚀

as I mentioned before this was duplicated because I used the wrong form initially. Here's the dupe: #40393

@uladzimirdev
Copy link
Contributor

thanks for the effort on providing clear steps to reproduce the issue @cgg-pwdt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Administration/Metrics & Segments Priority:P2 Average run of the mill bug Querying/GUI Query builder catch-all, including simple mode Querying/MBQL .Team/QueryingComponents Type:Bug Product defects
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants