Skip to content

feat: geo filter cascade (STIT-742) - #321

Draft
mbarlow12 wants to merge 4 commits into
mainfrom
feat/geo-filter-cascade
Draft

mbarlow12 wants to merge 4 commits into
mainfrom
feat/geo-filter-cascade

Conversation

@mbarlow12

Copy link
Copy Markdown
Contributor

Summary

Related issues

Closes:

Testing

Checklist

  • PR is focused on a single concern
  • Tests pass locally and in CI
  • Docs updated for user-visible changes
  • AI-assisted portions declared (see CONTRIBUTING.md)

- filter-options now accepts the list query's filter params and returns,
  per field, the values still reachable under every filter except that
  field's own, so multi-select keeps offering the un-ticked values
- the six per-field branches share the list query's pivoted base and union
  into one statement, so the endpoint stays a single round trip
- repointed resources no longer contribute dead option values; the shared
  base excludes them, which the previous standalone query did not
- sorting moves to Python because SQLite and Postgres collate differently
- getResourceFilterOptions takes filters and q, serialized by the same
  helper getResources uses so both requests agree on the wire format
- the react-query key carries the selections, so each combination caches
  separately; with no filters set the URL is unchanged
- the mock path applies the same leave-one-out rule as the backend
- FilterBar takes the options-query params as a prop; ResourcesView passes
  the debounced list params, so one settled change costs one options
  request rather than one per click
- the ticked checkboxes still read the live filters prop, so they keep
  responding immediately
@mbarlow12
mbarlow12 deployed to development October 7, 2026 21:28 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 21:28 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 21:30 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 21:30 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 21:30 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 21:31 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 21:31 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 21:31 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 21:33 — with GitHub Actions Active
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

CD summary 0e727f4

Frontend: https://witty-mushroom-017a3dc1e-321.westus2.1.azurestaticapps.net

Deployments (4)
service url fqdn
api open pr-0321-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr-0321-el.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-321.westus2.1.azurestaticapps.net
stitch-llm open pr-0321-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_0321 stitch-dev.postgres.database.azure.com 5432 pr_0321
Jobs (2)
job image postgres_db api_url auth_mode
db-migrations ghcr.io/rmi/stitch-api:pr-0321@sha256:50df57accc023ac594c65fd8d812e7e24481ec8f5ea660d48c4bd5377d4eac79 pr_0321
seed ghcr.io/rmi/stitch-seed:pr-0321@sha256:2c80c80f6f01d14cba6abd8c7d4f927c90a896315a1f4367925863290cfac790 https://pr-0321-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io/api/v1 stitch-client-bearer-token
Images (4)
build_time commit_time git_sha image image_digest
2026-10-07T21:29:00Z 2026-10-07T21:28:36Z da40851 ghcr.io/rmi/stitch-api:pr-0321 ghcr.io/rmi/stitch-api:pr-0321@sha256:50df57accc023ac594c65fd8d812e7e24481ec8f5ea660d48c4bd5377d4eac79
2026-10-07T21:28:58Z 2026-10-07T21:28:36Z da40851 ghcr.io/rmi/stitch-entity-linkage:pr-0321 ghcr.io/rmi/stitch-entity-linkage:pr-0321@sha256:6c38631b65f01a1b17063dd982848610b177fda4aece22130a8eef4a5cdab012
2026-10-07T21:29:00Z 2026-10-07T21:28:36Z da40851 ghcr.io/rmi/stitch-seed:pr-0321 ghcr.io/rmi/stitch-seed:pr-0321@sha256:2c80c80f6f01d14cba6abd8c7d4f927c90a896315a1f4367925863290cfac790
2026-10-07T21:29:00Z 2026-10-07T21:28:36Z da40851 ghcr.io/rmi/stitch-stitch-llm:pr-0321 ghcr.io/rmi/stitch-stitch-llm:pr-0321@sha256:073515180bfef925b80f0558c2fce3af00a997972b89f78375f494e6e63e281e

…t base

- filter_option_rows goes back to the standalone base it had before, pivoting
  the ranked rows locally, so base_resource_query is byte-identical to its
  original form and the shared helper is gone
- the colname narrowing is now dynamic: the faceted fields, plus only the
  attributes the current filters and search term actually read
- no behaviour change; the unfiltered query returns the same rows and the
  regression against the previous implementation is gone
@mbarlow12
mbarlow12 deployed to development October 7, 2026 23:01 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 23:01 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 23:02 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 23:02 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 23:02 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 23:03 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 23:03 — with GitHub Actions Active
@mbarlow12
mbarlow12 deployed to development October 7, 2026 23:04 — with GitHub Actions Active
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

CD summary 6c23979

Frontend: https://witty-mushroom-017a3dc1e-321.westus2.1.azurestaticapps.net

Deployments (4)
service url fqdn
api open pr-0321-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr-0321-el.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-321.westus2.1.azurestaticapps.net
stitch-llm open pr-0321-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_0321 stitch-dev.postgres.database.azure.com 5432 pr_0321
Jobs (1)
job image postgres_db
db-migrations ghcr.io/rmi/stitch-api:pr-0321@sha256:f6fdf2838fc5db677883bda26f4379d1d4836c18a641f271c9275713b2f98c3a pr_0321
Images (4)
build_time commit_time git_sha image image_digest
2026-10-07T23:01:56Z 2026-10-07T23:01:40Z 55adcb3 ghcr.io/rmi/stitch-api:pr-0321 ghcr.io/rmi/stitch-api:pr-0321@sha256:f6fdf2838fc5db677883bda26f4379d1d4836c18a641f271c9275713b2f98c3a
2026-10-07T23:01:57Z 2026-10-07T23:01:40Z 55adcb3 ghcr.io/rmi/stitch-entity-linkage:pr-0321 ghcr.io/rmi/stitch-entity-linkage:pr-0321@sha256:153f237a26b75360f6eeacb9b7b0876284927ec8402683fda152ff919942b72a
2026-10-07T23:01:56Z 2026-10-07T23:01:40Z 55adcb3 ghcr.io/rmi/stitch-seed:pr-0321 ghcr.io/rmi/stitch-seed:pr-0321@sha256:ec5a25e8503801f8736156e530e2826f20c7d0dc9a3f27f355e73aca674ca1c6
2026-10-07T23:02:00Z 2026-10-07T23:01:40Z 55adcb3 ghcr.io/rmi/stitch-stitch-llm:pr-0321 ghcr.io/rmi/stitch-stitch-llm:pr-0321@sha256:f92d22a30288bdca4a3edd633e1d8c6f43478ed8815367170ed13a07d825564e

This branch was successfully deployed

1 active deployment
development — 6c23979f Deployed Oct 7, 2026 by mbarlow12 via Deploy frontend / Build and Deploy Job #1163
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