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

Cannot import dashboards with circular click behavior #38665

Closed
zbodi74 opened this issue Feb 12, 2024 · 3 comments · Fixed by #42267
Closed

Cannot import dashboards with circular click behavior #38665

zbodi74 opened this issue Feb 12, 2024 · 3 comments · Fixed by #42267
Assignees
Labels
.Escalation Operation/Serialization Enterprise contents migration Priority:P1 Security holes w/o exploit, crashing, setup/upgrade, login, broken common features, correctness .Team/BackendComponents also known as BEC Type:Bug Product defects
Milestone

Comments

@zbodi74
Copy link

zbodi74 commented Feb 12, 2024

Describe the bug

It is impossible to import dashboards with a circular click behavior, for example, when a dashboard links to itself, or when click behavior dashboard A has a link pointing to dashboard B which has a link pointing to dashboard A.

To Reproduce

  1. Create a DashboardA, add a QuestionA
  2. Create DashboardB, add a QuestionB
  3. Set up a circular click route between the dashboards:
    • DashboardA/QuestionA --> DashboardB
    • DashboardB/QuestionB --> DashboardA
  4. Export everything
  5. (!) Import and see the circular reference error below

Expected behavior

The import should work, load all resources, and restore all exported links.

Logs

clojure.lang.ExceptionInfo: Circular dependency on [{:model "Dashboard", :id "GUnezeAXjrWMd8k4x8PXx"}] {:path [{:model "Dashboard", :id "GUnezeAXjrWMd8k4x8PXx"}]}

Information about your Metabase installation

Reported in v47, also broken as of 1.48.5.

Severity

Reported by a customer. No workaround, apart from removing some of the links..

Additional context

No response

@zbodi74 zbodi74 added Type:Bug Product defects Priority:P2 Average run of the mill bug .Needs Triage Operation/Serialization Enterprise contents migration labels Feb 12, 2024
@bshepherdson
Copy link
Contributor

Ah, someone found it! I wondered if there was a cycle opportunity anywhere in our data model, and here's one after all.

@michael-stott
Copy link

michael-stott commented Apr 3, 2024

Good spot. I just came looking for this. It looks like I just hit the same thing using 1.49.3. Or should I say it looks very much the same. Our 'Home' dashboard has links to various other dashboards and then each of those have a link back to the 'Home'.

@andreasenberg
Copy link

I'm experiencing something that looks a lot like this on 1.49.5 when using link cards to handle navigation back and forth between dashboards. I'm not sure if they are represented in a similar way as a linked question in the exported yaml files so that a fix for the issue described here potentially also would resolve the issue I'm facing?

Regardless, it would be great if the link card issue could be included as a scenario to adress/test together with changes intended to fix this. Let me know if you rather have these issues separated into two github issues and I'll create one for my scenario.

@ixipixi ixipixi added .Escalation Priority:P1 Security holes w/o exploit, crashing, setup/upgrade, login, broken common features, correctness and removed Priority:P2 Average run of the mill bug labels May 2, 2024
@darksciencebase darksciencebase added the .Team/BackendComponents also known as BEC label May 2, 2024
@piranha piranha added this to the 0.49.10 milestone May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.Escalation Operation/Serialization Enterprise contents migration Priority:P1 Security holes w/o exploit, crashing, setup/upgrade, login, broken common features, correctness .Team/BackendComponents also known as BEC Type:Bug Product defects
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants