Skip to content

Remove client-side filtering a facet calculations#473

Merged
hholb merged 1 commit into
stagingfrom
hholb/search-fix
Nov 10, 2025
Merged

Remove client-side filtering a facet calculations#473
hholb merged 1 commit into
stagingfrom
hholb/search-fix

Conversation

@hholb

@hholb hholb commented Nov 10, 2025

Copy link
Copy Markdown
Member

Resolves: #474

This PR removes the client-side search filtering and facet calculation introduced in #469. Now we rely on the backend for all filtering and facet calculation.

This was causing some issues in the the pagination and counting logic. Turns when out applying client-side filtering we can't know which of the gardens on the next page will be filtered out until they get here which causes quite a few issues with correctly rendering counts and page indications.

Client-side filtering seemed like a good idea at the time -- turns out we need to do all of the filtering in one place to stay consistent. Seems obvious in hindsight. You live and learn.

@hholb hholb marked this pull request as ready for review November 10, 2025 18:35

@WillEngler WillEngler left a comment

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.

LGTM, thanks!!

@hholb hholb merged commit 11aea3a into staging Nov 10, 2025
1 check passed
WillEngler pushed a commit to Garden-AI/garden-frontend-staging that referenced this pull request Nov 10, 2025
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.

Remove client-side filterting and facets for HPC functions and endpoints

2 participants