Skip to content

Commit fc841e8

Browse files
Documentation of the special pagination
Co-authored-by: Navin Ayer <thenav56@users.noreply.github.com>
1 parent 2f1d55f commit fc841e8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

dref/views.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,12 @@ def list(self, request):
638638
if excluded_codes:
639639
codes = [c for c in codes if c and c.upper() not in excluded_codes]
640640

641+
codes = self._order_codes(codes, request)
642+
# NOTE: Ordering and pagination are applied to the appeal codes, not the response objects.
643+
# As a result, the number of response items may vary. This is expected behavior.
644+
# This is a temporary limitation. In the future, we plan to apply standard
645+
# ordering and pagination to the response objects table once an optimized
646+
# layer is available to support it.
641647
codes = self._order_codes(codes, request)
642648
codes = self._paginate_codes(codes, request)
643649

0 commit comments

Comments
 (0)