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

[BE] [Bug] Metrics are not returned by /api/activity/popular_items #42607

Closed
Tracked by #37335
ranquild opened this issue May 13, 2024 · 1 comment
Closed
Tracked by #37335

[BE] [Bug] Metrics are not returned by /api/activity/popular_items #42607

ranquild opened this issue May 13, 2024 · 1 comment
Assignees

Comments

@ranquild
Copy link
Contributor

ranquild commented May 13, 2024

E2E repro

it.skip("should see metrics in popular items on the homepage (metabase#42607)", () => {

Steps:

  • Run EE
  • Log in as user A.
  • Create a metric and run its query
  • Log out and log in as user B.
  • Open homepage
  • There are no "popular items" and x-rays are displayed.

When doing the same with a question, the question is returned by the endpoint correctly.

@metamben metamben self-assigned this May 14, 2024
@metamben
Copy link
Contributor

@ranquild, how exactly should the metric's query be run? If I just open it it gets executed via the POST /dataset endpoint in ad-hoc context, so the execution is not returned in popular_items. I also managed to execute it in collection context, but those executions don't count either. Do we need a new type of context? It's probably not a good idea to allow those context to be considered by popular_items.

@ranquild ranquild closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
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

No branches or pull requests

2 participants