Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/remove-stale-dashboard-url-filters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperdx/app': patch
---

feat: add a "Remove ignored values from URL" button to the dashboard warning banner
14 changes: 14 additions & 0 deletions packages/app/src/DBDashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2020,6 +2020,7 @@ function DBDashboardPage({
filterValueEntries,
ignoredFilterExpressions,
ignoredVariableNames,
removeIgnoredFilterState,
getFilterQueriesForSource,
variables,
referenceVariableValues,
Expand Down Expand Up @@ -3473,6 +3474,19 @@ function DBDashboardPage({
</List.Item>
)}
</List>
<Group>
<Button
variant="secondary"
size="compact-sm"
data-testid="remove-ignored-url-filters-button"
onClick={() => {
removeIgnoredFilterState();
setShouldShowIgnoredFiltersBanner(false);
}}
>
Remove ignored values from URL
</Button>
</Group>
</Alert>
)}
{!isKioskMode && (
Expand Down
81 changes: 81 additions & 0 deletions packages/app/src/hooks/__tests__/useDashboardFilters.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,87 @@ describe('useDashboardFilters', () => {
});
});

describe('removeIgnoredFilterState', () => {
const envVariableFilter: DashboardFilter = {
...mockFilters[0],
isVariableEnabled: true,
variableName: 'env',
};

it('drops ignored expression entries, keeping declared selections', () => {
mockState = [
{ type: 'sql', condition: "environment IN ('production')" },
{ type: 'sql', condition: "team IN ('platform')" },
];

const { result } = renderHook(() => useDashboardFilters(mockFilters));

act(() => {
result.current.removeIgnoredFilterState();
});

expect(mockState).toEqual([
{ type: 'sql', condition: "environment IN ('production')" },
]);
});

it('drops orphaned variable entries, keeping declared ones', () => {
mockState = [
{ type: 'variable', name: 'nope', values: ['x'] },
{ type: 'variable', name: 'env', values: ['production'] },
];

const { result } = renderHook(() =>
useDashboardFilters([envVariableFilter]),
);

act(() => {
result.current.removeIgnoredFilterState();
});

expect(mockState).toEqual([
{ type: 'variable', name: 'env', values: ['production'] },
]);
});

it('clears both ignored expressions and orphaned variables at once', () => {
mockState = [
{ type: 'sql', condition: "team IN ('platform')" },
{ type: 'variable', name: 'env', values: ['production'] },
{ type: 'variable', name: 'nope', values: ['x'] },
];

const { result } = renderHook(() =>
useDashboardFilters([envVariableFilter]),
);

act(() => {
result.current.removeIgnoredFilterState();
});

expect(mockState).toEqual([
{ type: 'variable', name: 'env', values: ['production'] },
]);
});

it('is a no-op when there is no stale state', () => {
mockState = [{ type: 'variable', name: 'env', values: ['production'] }];

const { result } = renderHook(() =>
useDashboardFilters([envVariableFilter]),
);

act(() => {
result.current.removeIgnoredFilterState();
});

expect(mockSetState).not.toHaveBeenCalled();
expect(mockState).toEqual([
{ type: 'variable', name: 'env', values: ['production'] },
]);
});
});

describe('entry format', () => {
const envVariableFilter: DashboardFilter = {
...mockFilters[0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ describe('usePresetDashboardFilters', () => {
filterValueEntries: null,
ignoredFilterExpressions: [],
ignoredVariableNames: [],
removeIgnoredFilterState: jest.fn(),
getFilterQueriesForSource: jest.fn().mockReturnValue(mockFilterQueries),
variables: [],
unsatisfiedRequiredFilters: [],
Expand Down
31 changes: 31 additions & 0 deletions packages/app/src/hooks/useDashboardFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,31 @@ const useDashboardFilters = (
};
}, [filterValueEntries, filters, sources, connections]);

/**
* Drop every URL `filters=` entry that corresponds to no declared filter —
* the expressions in `ignoredFilterExpressions` and the variable names in
* `ignoredVariableNames`. Declared selections and passthrough entries stay.
*/
const removeIgnoredFilterState = useCallback(() => {
if (ignoredExpressions.length === 0 && ignoredVariableNames.length === 0) {
return;
}
setFilterValueEntries(prev => {
const parsed = parseDashboardFilterValues(prev ?? []);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 P1 — Cleanup round-trip also silently drops sql URL entries that parseQuery can't parse, which the banner never listed

parseDashboardFilterValues → serializeDashboardFilterValues only keeps sql entries that parseQuery turns into IN/NOT IN/numeric BETWEEN (see packages/common-utils/src/filters.ts:507 and dashboardFilterValues.ts:93). An entry like {type:'sql', condition:"status = 'error'"} never shows up in ignoredFilterExpressions, so the banner doesn't mention it, but clicking the button deletes it anyway. That breaks the doc comment's promise that only the listed values are removed. Fix: when nothing parseable changes, leave the raw sql entries in prev as they are, or report entries that don't parse as ignored so the banner lists them too.

Nothing blocks merge automatically, but a maintainer will expect this fixed if it is a real defect in code this PR changes. If it is about surrounding code, reply and say so instead of patching. Do not widen the PR. How to respond

for (const expression of ignoredExpressions) {
delete parsed.byExpression[expression];
}
for (const name of ignoredVariableNames) {
parsed.byVariable.delete(name);
}
return serializeDashboardFilterValues({
byExpression: parsed.byExpression,
byVariable: parsed.byVariable,
passthrough: parsed.passthrough,
});
});
}, [setFilterValueEntries, ignoredExpressions, ignoredVariableNames]);

// Filters as they query: source and connection variable references replaced
// by the selections. Unselected references, and those selecting a source the
// field can't use, are left as written.
Expand Down Expand Up @@ -552,6 +577,12 @@ const useDashboardFilters = (
* whose variable was turned off.
*/
ignoredVariableNames,
/**
* Remove every URL `filters=` entry that matches no declared filter (those
* in `ignoredFilterExpressions` and `ignoredVariableNames`), clearing the
* stale state that surfaces the warning banner. A no-op when there is none.
*/
removeIgnoredFilterState,
/**
* Returns the subset of filter queries that should apply to a tile whose
* source is `sourceId`. Filters with no `appliesToSourceIds` apply to all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,74 @@ test.describe(
});
});

test('removes stale URL filter state via the banner button', async ({
page,
}) => {
test.setTimeout(120000);
let dashboardId = '';

await test.step('Create a dashboard with a variable-enabled Service filter', async () => {
await dashboardPage.addNumberTile(
'Count tile',
DEFAULT_LOGS_SOURCE_NAME,
);
dashboardId = dashboardPage.getCurrentDashboardId();
await dashboardPage.openEditFiltersModal();
await dashboardPage.addFilterToDashboard(
'Service',
DEFAULT_LOGS_SOURCE_NAME,
'ServiceName',
undefined,
undefined,
{ variableName: 'svc' },
);
await expect(
dashboardPage.getFilterItemByName('Service'),
).toBeVisible();
await dashboardPage.closeFiltersModal();
});

await test.step('A link with a stale variable and expression raises the banner', async () => {
await gotoWithFilters(page, dashboardId, [
{ type: 'variable', name: 'groupBy', values: ['ServiceName'] },
{ type: 'sql', condition: "team IN ('platform')" },
{ type: 'variable', name: 'svc', values: ['accounting'] },
]);
await dashboardPage.waitForLoaded();

await expect(dashboardPage.ignoredUrlFiltersBanner).toBeVisible({
timeout: 20000,
});
await expect(dashboardPage.ignoredUrlFiltersBanner).toContainText(
'$groupBy',
);
await expect(dashboardPage.ignoredUrlFiltersBanner).toContainText(
'team',
);
// The declared variable still applied.
await expectSelected(dashboardPage, 'Service', ['accounting']);
});

await test.step('The button strips the stale state and clears the banner', async () => {
await dashboardPage.removeIgnoredUrlFilters();

await expect(dashboardPage.ignoredUrlFiltersBanner).toBeHidden();
// Only the declared selection is left in the URL.
await expectFiltersParam(page, [
{ type: 'variable', name: 'svc', values: ['accounting'] },
]);
await expectSelected(dashboardPage, 'Service', ['accounting']);
});

await test.step('The banner stays gone after a reload', async () => {
await page.reload();
await dashboardPage.waitForLoaded();

await expect(dashboardPage.ignoredUrlFiltersBanner).toBeHidden();
await expectSelected(dashboardPage, 'Service', ['accounting']);
});
});

test('carries values verbatim through the variable-keyed format', async ({
page,
}) => {
Expand Down
15 changes: 15 additions & 0 deletions packages/app/tests/e2e/page-objects/DashboardPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
// The document title comes from the saved dashboard, so it only changes
// once the rename has persisted.
const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), {

Check failure on line 289 in packages/app/tests/e2e/page-objects/DashboardPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests / E2E Tests - Shard 2

[chromium] › tests/e2e/features/dashboard.spec.ts:48:7 › Dashboard › should persist dashboard across page reloads @dashboard

10) [chromium] › tests/e2e/features/dashboard.spec.ts:48:7 › Dashboard › should persist dashboard across page reloads @dashboard › Create and name a new dashboard Error: expect(page).toHaveTitle(expected) failed Expected pattern: /^Test Dashboard 1796157324821 - / Received string: "My New Dashboard - ClickStack" Timeout: 10000ms Call log: - Expect "toHaveTitle" with timeout 10000ms 14 × unexpected value "My New Dashboard - ClickStack" at page-objects/DashboardPage.ts:289 287 | // once the rename has persisted. 288 | const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); > 289 | await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), { | ^ 290 | timeout: 10000, 291 | }); 292 | } at DashboardPage.renameDashboard (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:289:29) at DashboardPage.editDashboardName (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:271:5) at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard.spec.ts:57:7 at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard.spec.ts:51:5

Check failure on line 289 in packages/app/tests/e2e/page-objects/DashboardPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests / E2E Tests - Shard 2

[chromium] › tests/e2e/features/dashboard-template-import.spec.ts:1389:7 › Dashboard Template Import › should round-trip a dashboard through export and re-import @dashboard @full-stack

9) [chromium] › tests/e2e/features/dashboard-template-import.spec.ts:1389:7 › Dashboard Template Import › should round-trip a dashboard through export and re-import @dashboard @full-stack › Create a dashboard with a tile and a filter Error: expect(page).toHaveTitle(expected) failed Expected pattern: /^E2E Export Import 1796157313090 - / Received string: "My New Dashboard - ClickStack" Timeout: 10000ms Call log: - Expect "toHaveTitle" with timeout 10000ms 14 × unexpected value "My New Dashboard - ClickStack" at page-objects/DashboardPage.ts:289 287 | // once the rename has persisted. 288 | const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); > 289 | await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), { | ^ 290 | timeout: 10000, 291 | }); 292 | } at DashboardPage.renameDashboard (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:289:29) at DashboardPage.editDashboardName (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:271:5) at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-template-import.spec.ts:1401:9 at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-template-import.spec.ts:1398:7

Check failure on line 289 in packages/app/tests/e2e/page-objects/DashboardPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests / E2E Tests - Shard 2

[chromium] › tests/e2e/features/dashboard-template-import.spec.ts:447:7 › Dashboard Template Import › should map tile onClick dashboard to the selected dashboard id on import @dashboard @full-stack

8) [chromium] › tests/e2e/features/dashboard-template-import.spec.ts:447:7 › Dashboard Template Import › should map tile onClick dashboard to the selected dashboard id on import @dashboard @full-stack › Create a target dashboard for the onClick link Error: expect(page).toHaveTitle(expected) failed Expected pattern: /^E2E OnClick Target 1796157305010 - / Received string: "My New Dashboard - ClickStack" Timeout: 10000ms Call log: - Expect "toHaveTitle" with timeout 10000ms 14 × unexpected value "My New Dashboard - ClickStack" at page-objects/DashboardPage.ts:289 287 | // once the rename has persisted. 288 | const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); > 289 | await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), { | ^ 290 | timeout: 10000, 291 | }); 292 | } at DashboardPage.renameDashboard (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:289:29) at DashboardPage.editDashboardName (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:271:5) at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-template-import.spec.ts:462:9 at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-template-import.spec.ts:459:7

Check failure on line 289 in packages/app/tests/e2e/page-objects/DashboardPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests / E2E Tests - Shard 2

[chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:764:9 › Dashboard Table Linking › Dashboard mode: ignored-filter warning banner is dismissable @dashboard @full-stack

7) [chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:764:9 › Dashboard Table Linking › Dashboard mode: ignored-filter warning banner is dismissable @dashboard @full-stack › Create the target dashboard with NO declared filters Error: expect(page).toHaveTitle(expected) failed Expected pattern: /^E2E Orphan Filter Target 1796157283288 - / Received string: "My New Dashboard - ClickStack" Timeout: 10000ms Call log: - Expect "toHaveTitle" with timeout 10000ms 14 × unexpected value "My New Dashboard - ClickStack" at page-objects/DashboardPage.ts:289 287 | // once the rename has persisted. 288 | const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); > 289 | await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), { | ^ 290 | timeout: 10000, 291 | }); 292 | } at DashboardPage.renameDashboard (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:289:29) at DashboardPage.editDashboardName (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:271:5) at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:773:9 at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:771:7

Check failure on line 289 in packages/app/tests/e2e/page-objects/DashboardPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests / E2E Tests - Shard 2

[chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:676:9 › Dashboard Table Linking › Dashboard mode: a variable-enabled target filter still receives an expression-keyed link @dashboard @full-stack

6) [chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:676:9 › Dashboard Table Linking › Dashboard mode: a variable-enabled target filter still receives an expression-keyed link @dashboard @full-stack › Create the target dashboard with a variable-enabled ServiceName filter Error: expect(page).toHaveTitle(expected) failed Expected pattern: /^E2E Variable Filter Target 1796157281352 - / Received string: "My New Dashboard - ClickStack" Timeout: 10000ms Call log: - Expect "toHaveTitle" with timeout 10000ms 14 × unexpected value "My New Dashboard - ClickStack" at page-objects/DashboardPage.ts:289 287 | // once the rename has persisted. 288 | const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); > 289 | await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), { | ^ 290 | timeout: 10000, 291 | }); 292 | } at DashboardPage.renameDashboard (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:289:29) at DashboardPage.editDashboardName (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:271:5) at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:689:9 at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:687:7

Check failure on line 289 in packages/app/tests/e2e/page-objects/DashboardPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests / E2E Tests - Shard 2

[chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:583:9 › Dashboard Table Linking › Dashboard mode: filter templates render into the destination dashboard URL filters param @dashboard @full-stack

5) [chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:583:9 › Dashboard Table Linking › Dashboard mode: filter templates render into the destination dashboard URL filters param @dashboard @full-stack › Create the target dashboard with a declared filter matching ServiceName Error: expect(page).toHaveTitle(expected) failed Expected pattern: /^E2E Filter Target 1796157280387 - / Received string: "My New Dashboard - ClickStack" Timeout: 10000ms Call log: - Expect "toHaveTitle" with timeout 10000ms 14 × unexpected value "My New Dashboard - ClickStack" at page-objects/DashboardPage.ts:289 287 | // once the rename has persisted. 288 | const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); > 289 | await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), { | ^ 290 | timeout: 10000, 291 | }); 292 | } at DashboardPage.renameDashboard (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:289:29) at DashboardPage.editDashboardName (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:271:5) at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:592:9 at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:590:7

Check failure on line 289 in packages/app/tests/e2e/page-objects/DashboardPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests / E2E Tests - Shard 2

[chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:446:9 › Dashboard Table Linking › Dashboard mode (ID): selecting a dashboard from dropdown navigates to that dashboard id @dashboard @full-stack

4) [chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:446:9 › Dashboard Table Linking › Dashboard mode (ID): selecting a dashboard from dropdown navigates to that dashboard id @dashboard @full-stack › Create the target dashboard Error: expect(page).toHaveTitle(expected) failed Expected pattern: /^E2E ID Target Dashboard 1796157264807 - / Received string: "My New Dashboard - ClickStack" Timeout: 10000ms Call log: - Expect "toHaveTitle" with timeout 10000ms 14 × unexpected value "My New Dashboard - ClickStack" at page-objects/DashboardPage.ts:289 287 | // once the rename has persisted. 288 | const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); > 289 | await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), { | ^ 290 | timeout: 10000, 291 | }); 292 | } at DashboardPage.renameDashboard (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:289:29) at DashboardPage.editDashboardName (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:271:5) at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:454:9 at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:453:7

Check failure on line 289 in packages/app/tests/e2e/page-objects/DashboardPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests / E2E Tests - Shard 2

[chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:339:9 › Dashboard Table Linking › Dashboard mode: WHERE template referencing unknown column shows Link error @dashboard @full-stack

3) [chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:339:9 › Dashboard Table Linking › Dashboard mode: WHERE template referencing unknown column shows Link error @dashboard @full-stack › Create a valid target dashboard Error: expect(page).toHaveTitle(expected) failed Expected pattern: /^E2E Target Dashboard Column 1796157259344 - / Received string: "My New Dashboard - ClickStack" Timeout: 10000ms Call log: - Expect "toHaveTitle" with timeout 10000ms 14 × unexpected value "My New Dashboard - ClickStack" at page-objects/DashboardPage.ts:289 287 | // once the rename has persisted. 288 | const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); > 289 | await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), { | ^ 290 | timeout: 10000, 291 | }); 292 | } at DashboardPage.renameDashboard (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:289:29) at DashboardPage.editDashboardName (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:271:5) at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:345:9 at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:343:7

Check failure on line 289 in packages/app/tests/e2e/page-objects/DashboardPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests / E2E Tests - Shard 2

[chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:233:9 › Dashboard Table Linking › Dashboard mode: valid link navigates to target dashboard with rendered WHERE @dashboard @full-stack

2) [chromium] › tests/e2e/features/dashboard-table-linking.spec.ts:233:9 › Dashboard Table Linking › Dashboard mode: valid link navigates to target dashboard with rendered WHERE @dashboard @full-stack › Create the target dashboard (must exist before opening drawer) Error: expect(page).toHaveTitle(expected) failed Expected pattern: /^E2E Target Dashboard 1796157255349 - / Received string: "My New Dashboard - ClickStack" Timeout: 10000ms Call log: - Expect "toHaveTitle" with timeout 10000ms 14 × unexpected value "My New Dashboard - ClickStack" at page-objects/DashboardPage.ts:289 287 | // once the rename has persisted. 288 | const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); > 289 | await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), { | ^ 290 | timeout: 10000, 291 | }); 292 | } at DashboardPage.renameDashboard (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:289:29) at DashboardPage.editDashboardName (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:271:5) at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:242:9 at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/dashboard-table-linking.spec.ts:240:7

Check failure on line 289 in packages/app/tests/e2e/page-objects/DashboardPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests / E2E Tests - Shard 3

[chromium] › tests/e2e/features/materialized-views.spec.ts:57:9 › Materialized View Acceleration › MV indicator and chart data show on saved dashboard tile @full-stack @dashboard

2) [chromium] › tests/e2e/features/materialized-views.spec.ts:57:9 › Materialized View Acceleration › MV indicator and chart data show on saved dashboard tile @full-stack @dashboard Error: expect(page).toHaveTitle(expected) failed Expected pattern: /^MV Tile Test 1796157291904 - / Received string: "My New Dashboard - ClickStack" Timeout: 10000ms Call log: - Expect "toHaveTitle" with timeout 10000ms 14 × unexpected value "My New Dashboard - ClickStack" at page-objects/DashboardPage.ts:289 287 | // once the rename has persisted. 288 | const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); > 289 | await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), { | ^ 290 | timeout: 10000, 291 | }); 292 | } at DashboardPage.renameDashboard (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:289:29) at DashboardPage.editDashboardName (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:271:5) at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/materialized-views.spec.ts:67:7

Check failure on line 289 in packages/app/tests/e2e/page-objects/DashboardPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests / E2E Tests - Shard 3

[chromium] › tests/e2e/features/heatmap-series.spec.ts:96:7 › Heatmap modes › series heatmap with a group by renders and persists @full-stack @dashboard

1) [chromium] › tests/e2e/features/heatmap-series.spec.ts:96:7 › Heatmap modes › series heatmap with a group by renders and persists @full-stack @dashboard › Create a series heatmap on the log source Error: expect(page).toHaveTitle(expected) failed Expected pattern: /^E2E Series Heatmap 1796157264229 - / Received string: "My New Dashboard - ClickStack" Timeout: 10000ms Call log: - Expect "toHaveTitle" with timeout 10000ms 14 × unexpected value "My New Dashboard - ClickStack" at page-objects/DashboardPage.ts:289 287 | // once the rename has persisted. 288 | const escaped = newName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); > 289 | await expect(this.page).toHaveTitle(new RegExp(`^${escaped} - `), { | ^ 290 | timeout: 10000, 291 | }); 292 | } at DashboardPage.renameDashboard (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:289:29) at DashboardPage.editDashboardName (/home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/page-objects/DashboardPage.ts:271:5) at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/heatmap-series.spec.ts:122:7 at /home/runner/work/ClickStack/ClickStack/packages/app/tests/e2e/features/heatmap-series.spec.ts:119:5
timeout: 10000,
});
}
Expand Down Expand Up @@ -2350,6 +2350,21 @@
.click();
}

/**
* The ignored-URL-filters banner's "Remove ignored values from URL" button, which
* strips the stale `filters=` state and clears the banner in one click.
*/
get removeIgnoredUrlFiltersButton() {
return this.ignoredUrlFiltersBanner.getByTestId(
'remove-ignored-url-filters-button',
);
}

/** Click the banner's "Remove ignored values from URL" button. */
async removeIgnoredUrlFilters() {
await this.removeIgnoredUrlFiltersButton.click();
}

// ---- Chart annotation helpers ----

/**
Expand Down
Loading