Skip to content

Commit

Permalink
fix: fetch only filterView from current WS
Browse files Browse the repository at this point in the history
Ignore filterViews from parents, as these can not be
deleted nor set as default from child WS.

JIRA: LX-514
risk: low
  • Loading branch information
ivan-nejezchleb committed Sep 19, 2024
1 parent 633aa5f commit 3d14888
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,8 @@ export class TigerWorkspaceDashboards implements IWorkspaceDashboardsService {
workspaceId: this.workspace,
include: ["user", "analyticalDashboard"],
filter: `analyticalDashboard.id==${dashboardId};user.id==${profile.userId}`,
origin: "NATIVE",

// sort: ["name"], // TODO LX-422 remove comment and array sort below once sort is supported
});
});
Expand Down Expand Up @@ -761,6 +763,7 @@ export class TigerWorkspaceDashboards implements IWorkspaceDashboardsService {
workspaceId: this.workspace,
include: ["user", "analyticalDashboard"],
filter: `analyticalDashboard.id==${dashboardId};user.id==${profile.userId};filterView.isDefault==true`,
origin: "NATIVE",
});
await Promise.all(
defaultFilterViewsForDashboard.data.data.map((view) =>
Expand Down

0 comments on commit 3d14888

Please sign in to comment.