freelawproject / courtlistener

A fully-searchable and accessible archive of court data including growing repositories of opinions, oral arguments, judges, judicial financial records, and federal filings.
https://www.courtlistener.com
Other
550 stars 151 forks source link

4714 Refactored the use of flags in the V3 Search API to support an effective brown-out strategy #4718

Closed albertisfu closed 1 day ago

albertisfu commented 1 day ago

As described in #4714, this PR fixes the use of waffle flags in the V3 Search API.

Flags are now checked once per request, ensuring that when we start using percentages to brown-out Solr, any request selected to use Elasticsearch will have both the search query and the serializer aligned to use Elasticsearch.