apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
62.8k stars 13.87k forks source link

Creating a dashboard from welcome page #30319

Open gautierrog opened 1 month ago

gautierrog commented 1 month ago

Bug description

Hello,

Just noticed that after an upgrade to from superset 3.1.0 to 4.0.2 (possibly not related) but creating a dashboard from Add dashboard button when user have no dashboard doesn't work (empty page). Althrough creating it through the top-right menu is OK.

I have no stacktrace whatsoever.

How to reproduce the bug

  1. Connect with a user without any dashboard
  2. Click + Dashboard

Screenshots/recordings

image

Superset version

4.0.2

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

dosubot[bot] commented 1 month ago

Hello @gautierrog 👋, I'm here to help you with any issues you're experiencing. I can assist with bug fixes, answer your questions, and guide you on your journey to becoming a contributor.

The issue you're experiencing with the + Dashboard button on the welcome page not working after upgrading to Superset 4.0.2 could be related to recent changes or known issues in this version. Here are some points to consider:

  1. Known Issues in Superset 4.0.2:

    • There are several fixes related to the dashboard editor in the release notes for Superset 4.0.2, which might be relevant:
      • Fix: Cannot delete empty column inside a tab using the dashboard editor [1].
      • Fix: unable to resize due to the overlapped droptarget [1].
      • Fix: invalid drop item on a tab [1].
      • Fix: Change class name on last Droppable in a column [1].
  2. Permission Checks:

    • Ensure that the user has the necessary permissions to create a dashboard. The visibility and functionality of the + Dashboard button can be affected by user permissions and state conditions [2][3].
  3. Conditional Logic:

    • The rendering of the dashboard creation page involves conditional logic that checks if the necessary dashboard data and charts are available and if the dashboard information has been properly initiated [4].
  4. Code Path Differences:

    • The code paths for creating a dashboard from the + Dashboard button on the welcome page and the top-right menu are different. The top-right menu uses the RightMenu component and directs the user to /dashboard/new [5].

Given these points, it might be helpful to check the following:

If the problem persists, you might want to investigate further into the specific frontend components and their states involved in rendering the dashboard creation page [4][6][7][8].

To continue talking to Dosu, mention @dosu.