Fix stale dateField URL param and restore SearchListFilter test comments#26532
Fix stale dateField URL param and restore SearchListFilter test comments#26532ShaileshParmar11 merged 14 commits intomainfrom
Conversation
… Manager - Backend: Add dateField query param to /search/list endpoint in TestCaseResolutionStatusResource - Backend: Update SearchListFilter to filter by updatedAt when dateField=updatedAt, else @timestamp - Frontend: Add dateField to TestCaseIncidentStatusParams type - Frontend: Add date field type selector (Created At / Last Updated At) to IncidentManager UI - Tests: Add unit tests for date field selector rendering, URL updates, and API param passing Co-authored-by: ShaileshParmar11 <71748675+ShaileshParmar11@users.noreply.github.com>
...tadata-ui/src/main/resources/ui/src/components/IncidentManager/IncidentManager.component.tsx
Show resolved
Hide resolved
…e in IncidentManager - Use SortingDropDown (text + chevron, same as TableQueries) instead of Ant Design Select - Remove the 'Date:' Form.Item label wrapper - The date field type selector now shows inline as e.g. 'Created at ∨' beside the date range picker - Update unit tests to mock SortingDropDown and use button-based interaction Co-authored-by: ShaileshParmar11 <71748675+ShaileshParmar11@users.noreply.github.com>
...tadata-ui/src/main/resources/ui/src/components/IncidentManager/IncidentManager.component.tsx
Outdated
Show resolved
Hide resolved
…e field selection.
…manager-filtering
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
… Created At or Updated At, including new e2e and updated unit tests.
…manager-filtering
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
… and unused import Co-authored-by: ShaileshParmar11 <71748675+ShaileshParmar11@users.noreply.github.com>
… value Co-authored-by: ShaileshParmar11 <71748675+ShaileshParmar11@users.noreply.github.com>
Co-authored-by: ShaileshParmar11 <71748675+ShaileshParmar11@users.noreply.github.com>
|
The Java checkstyle failed. Please run You can install the pre-commit hooks with |
|
The Java checkstyle failed. Please run You can install the pre-commit hooks with |
|
🟡 Playwright Results — all passed (11 flaky)✅ 3398 passed · ❌ 0 failed · 🟡 11 flaky · ⏭️ 183 skipped
🟡 11 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…t-manager-filtering
…iltering' into copilot/add-incident-manager-filtering
Code Review ✅ Approved 2 resolved / 2 findingsFixes stale dateField URL parameter handling and restores SearchListFilterTest comments, addressing type mismatch in callback prop and clearing dateField when date range is cleared. No issues found. ✅ 2 resolved✅ Bug: Type mismatch: narrow callback passed to broader prop type
✅ Edge Case:
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|



Demo:
Screen.Recording.2026-03-18.at.9.35.31.PM.mov
Two fixes on top of the incident manager date-field filtering feature:
handleDateRangeClear— staledateFieldURL paramWhen clearing the date range picker,
dateFieldwas omitted from the cleanup, leaving a stale param in the URL. On the next date range selection, the olddateFieldvalue silently persisted to the API.const updatedFilters = omit(allParams, [ 'startTs', 'endTs', 'key', 'title', + 'dateField', // clear together with the date range it belongs to ]);SearchListFilterTest.java— comments restoredExplanatory comments that document the
dateFieldrouting contract (timestamp→@timestamp,updatedAt→updatedAt) and per-test intent were removed in a prior session. They are now restored.Also corrected the
noTimestamptest's expected value:TestCaseResolutionStatusis a time-series entity with nodeletedfield, so the filter falls back tomatch_allrather than{"term": {"deleted": "false"}}.Type of change:
Checklist:
I have read the CONTRIBUTING document.
My PR title is
Fixes <issue-number>: <short explanation>I have commented on my code, particularly in hard-to-understand areas.
For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
I have added a test that covers the exact scenario we are fixing.
I have added tests around the new logic.
Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.