Skip to content

Fix: Allow to set the filter via URL query parameter #4296

Fix: Allow to set the filter via URL query parameter

Fix: Allow to set the filter via URL query parameter #4296

Triggered via pull request January 13, 2025 13:30
Status Failure
Total duration 8m 49s
Artifacts

ci-js.yml

on: pull_request
Matrix: Upload coverage
Matrix: Linting
Matrix: Run tests
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 3 warnings
Linting (18)
Process completed with exit code 1.
Linting (20)
The job was canceled because "_18" failed.
Linting (20)
Process completed with exit code 1.
src/web/entities/__tests__/filterprovider.jsx > FilterProvider component tests > should prefer locationQuery filter over defaultSettingFilter: src/web/entities/__tests__/filterprovider.jsx#L53
AssertionError: expected "spy" to be called with arguments: [ { filter: Filter{ …(2) } } ] Received: 1st spy call: Array [ Object { "filter": Filter { "entityType": "filter", + "id": undefined, "terms": Array [ FilterTerm { - "keyword": "location", + "keyword": "foo", "relation": "=", - "value": "query", + "value": "bar", }, FilterTerm { "keyword": "rows", "relation": "=", "value": 42, }, ], }, }, ] Number of calls: 1 ❯ src/web/entities/__tests__/filterprovider.jsx:53:24
src/web/hooks/__tests__/usePageFilter.jsx > usePageFilter tests > should prefer locationQuery filter over defaultSettingFilter: src/web/hooks/__tests__/usePageFilter.jsx#L60
AssertionError: expected Filter{ entityType: 'filter', …(2) } to deeply equal Filter{ entityType: 'filter', …(1) } - Expected + Received Filter { "entityType": "filter", + "id": undefined, "terms": Array [ FilterTerm { - "keyword": "location", + "keyword": "sort", "relation": "=", - "value": "query", + "value": "name", + }, + FilterTerm { + "keyword": "first", + "relation": "=", + "value": 1, }, FilterTerm { "keyword": "rows", "relation": "=", "value": 42, }, ], } ❯ src/web/hooks/__tests__/usePageFilter.jsx:60:31
Run tests (20)
Process completed with exit code 1.
Run tests (18)
The job was canceled because "_20" failed.
Run tests (18)
The operation was canceled.
Upload coverage (18)
Process completed with exit code 1.
Linting (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run tests (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Upload coverage (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636