Skip to content

[2.1] Backport #38410 - #38959

Open
ShaileshParmar11 wants to merge 1 commit into
2.1from
ShaileshParmar11/clear-all-paging-2.1
Open

ShaileshParmar11 wants to merge 1 commit into
2.1from
ShaileshParmar11/clear-all-paging-2.1

Conversation

@ShaileshParmar11

@ShaileshParmar11 ShaileshParmar11 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #38410 (295f502d4ae) to 2.1.

What it fixes

In the Incident Manager, clicking Clear all on a later page of a filtered list kept currentPage, cursorType and cursorValue in the URL, so the user stayed on page N of a different (unfiltered) result set. clearFilters in useIncidentFilters.ts now omits those three params along with the filter params; unrelated params such as pageSize and domain are kept.

Clean cherry-pick (git cherry-pick -x), same three files as on main: useIncidentFilters.ts (+3), useIncidentFilters.test.ts (new test), IncidentManager.test.tsx (paging params added to the existing Clear all test).

Related

Tests (local, Node 22, 2.1 dependencies)

  • npx jest src/components/IncidentManager: 9 suites, 102/102 passed
  • Same run on this branch merged with [2.1] Backport #38945 #38952: 10 suites, 108/108 passed
  • ESLint and Prettier clean on the 3 changed files

🤖 Generated with Claude Code

Backport of #38410 (295f502) to 2.1. clearFilters now omits
currentPage, cursorType and cursorValue, so Clear all on a later page
returns to the first page of the new result set.

(cherry picked from commit 295f502)
@ShaileshParmar11
ShaileshParmar11 requested a review from a team as a code owner November 27, 2026 10:04
@ShaileshParmar11
ShaileshParmar11 requested review from shah-harshit and removed request for a team November 27, 2026 10:04
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Clearing Incident Manager filters now removes stale page and cursor parameters, changing navigation so users return to the unfiltered results from the start.

Backports the Incident Manager fix so clicking Clear all on a later page drops currentPage, cursorType and cursorValue from the URL along with the filter params, while keeping params like pageSize and domain. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant