Skip to content

Reduce redundant deployments requests on deployments page#21427

Open
jeevan6996 wants to merge 1 commit intoPrefectHQ:mainfrom
jeevan6996:ui-v2/fix-deployments-redundant-requests
Open

Reduce redundant deployments requests on deployments page#21427
jeevan6996 wants to merge 1 commit intoPrefectHQ:mainfrom
jeevan6996:ui-v2/fix-deployments-redundant-requests

Conversation

@jeevan6996
Copy link
Copy Markdown

closes #20397

this PR removes a redundant deployments request in the deployments route by relying on paginated response metadata for empty-state/count handling.

Changes
  • stop issuing a separate count query in ui-v2/src/routes/deployments/index.tsx
  • keep existing empty-state UX by deriving state from paginated count plus active filters
  • extract route-level filter/pagination helpers into ui-v2/src/routes/deployments/utils.ts
  • add tests for helper behavior in ui-v2/src/routes/deployments/utils.test.ts
Testing
  • attempted: npm run test -- src/routes/deployments/utils.test.ts
  • local environment failure: Node dynamic library load error (libsimdjson.31.dylib missing)

@github-actions github-actions bot added bug Something isn't working ui Related to the Prefect web interface ui-replatform Related to the React UI rewrite labels Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ui Related to the Prefect web interface ui-replatform Related to the React UI rewrite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple http requests with same results to load deployments in the UI

1 participant