Skip to content

GET /api/v1/dashboard/{pk}/filter_state/{key} does not return "name" property #36053

@rauno-plg

Description

@rauno-plg

Bug description

There seems to be a bug with GET /api/v1/dashboard/{pk}/filter_state/{key} route in the API.

When i fire the API request for the first time i do not get "name" property in the response for applied filter state.

For some reason if i do a random change in current filters(for an example just add a random divider) the same filter state key shows me the name parameter in the API response.

Happens with master from 4th of november.

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api:dashboardRelated to the REST endpoints of the Dashboard

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions