From 99e028ac9fbb06c4162347f4f5444c8afd8a1b82 Mon Sep 17 00:00:00 2001 From: Eduardo Rosendo Date: Thu, 26 Sep 2024 20:12:51 -0400 Subject: [PATCH 1/2] fix(search): Set cache control header to the advanced view --- cl/search/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cl/search/views.py b/cl/search/views.py index 50d6384fc3..86142b0158 100644 --- a/cl/search/views.py +++ b/cl/search/views.py @@ -559,6 +559,7 @@ def show_results(request: HttpRequest) -> HttpResponse: return TemplateResponse(request, "search.html", render_dict) +@never_cache def advanced(request: HttpRequest) -> HttpResponse: render_dict = {"private": False} From 656d0aea1936f4cd3d311f022a12bfdc3b865dbb Mon Sep 17 00:00:00 2001 From: Eduardo Rosendo Date: Thu, 26 Sep 2024 20:22:30 -0400 Subject: [PATCH 2/2] feat(api): Fix typos in the migration guide --- cl/api/templates/migration-guide.html | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/cl/api/templates/migration-guide.html b/cl/api/templates/migration-guide.html index 96bad34f6c..8b9d421529 100644 --- a/cl/api/templates/migration-guide.html +++ b/cl/api/templates/migration-guide.html @@ -160,7 +160,7 @@

Opinions (type=o)

Oral Arguments (type=oa)

People

@@ -168,16 +168,12 @@

People

  • No breaking changes. v3 is already switched to ElasticSearch.
  • How Do I Migrate Database APIs to v4?

    -

    Total count of results

    - +

    Result Count is Removed

    +

    The total count of the results is no longer available in the response. Most users don't need this when using the API, and computing the count for each response slows down the API. + If this value is important to your service, let us know so we can discuss adding a new API with this feature.

    Invalid cursor error code: 404

    A new type of error in the v4 API is Invalid Cursor with a 404 status code.

    -

    This can happen when GET parameters are changed without getting a fresh cursor parameter. To prevent this error, do not change the GET parameters while maintaining an existing cursor paramter. +

    This can happen when GET parameters are changed without getting a fresh cursor parameter. To prevent this error, do not change the GET parameters while maintaining an existing cursor parameter.

    How Do I Migrate the Search API to v4?

    Enhancements in v4