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
Populate domains drop down with what's been ingested in datahub (#407)
* Add missing domain information from charts
* Update search tests that hit datahub dev
- remove entity which is not currently present
- enable the no_duplicates test (we have fixed this)
* Load the list of domains from Datahub
Previously we hardcoded the list of domains shown in the search filter,
and had different lists per environment.
This was useful in alpha when we had some junk domains we wanted to
filter out, but now we're at a point where every domain in Datahub
should be one we want to use.
This commit means we now fetch every domain that has something linked to
it, and display that in alphabetical order.
* Move domain model to models and remove unused model
* Refacotr: decouple SearchFacetFetcher from DomainModel
* Cache facets fetched from datahub
Ideally we would just fetch the facets once per request,
but in practice we do this from a few different places.
1. In the view we instantiate a SearchService, which uses the domain
model in constructing filters for Datahub.
2. The SearchForm also needs them to know what choices are valid, so we
need to pass a callback to the form's ChoiceField. That callback does
not share any data with the view.
Caching the value is a quick way to avoid making extra requests for the
same data.
* Hide subdomains if there aren't any defined
This is the case at the moment, because the domain model we've pulled in
from CaDeT doesn't have subdomains. This might change later though so I
don't want to remove the subdomain code completely.
* Include missing domains
Previously it was only returning domains with tables in. We should
include any that show as non-empty in Find MOJ Data.
0 commit comments