You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add endpoint to filter stat vars by places (#1585)
Refactors the `SearchStatvar` function to separate logic for filtering
stat vars by places into its own function/endpoint. This change is
required to enable Vertex AI source filtering, which will be calling the
new endpoint to use the filtering logic after performing the stat var
search independently.
I tested the endpoint locally to ensure that the new endpoint works
independently, and that the old `SearchStatVar` function still works as
intended. From a UX standpoint, the changes are not noticeable.
Screencasts demoing the change:
[Old StatVar
search](http://screencast/cast/NTk3NjE3MDY0NTQyMjA4MHxhNDZhNjgwMy1iMw)
(no observed change to current behavior on
[prod](https://datacommons.org/tools/statvar))
[New Vertex AI
search](http://screencast/cast/NTMwOTU4MjM5Mjk1MDc4NHwyMDBiNmVkYy03YQ) -
The difference here is that source selection now works specifically for
Vertex AI stat var searches.
These changes to the website will be implemented in a separate, follow
up PR. But the screencasts above demo how this new endpoint is intended
to be used in the website repo.
0 commit comments