Skip to content

Commit

Permalink
Merge pull request #1281 from GSA/1280-change-page_size-to-20-rather-…
Browse files Browse the repository at this point in the history
…than-set-at-50

update page_size to 20 from 50
  • Loading branch information
ccostino authored Aug 20, 2024
2 parents d144cae + 78f76df commit e1ba1ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Config(object):
SQLALCHEMY_POOL_TIMEOUT = 30
SQLALCHEMY_POOL_RECYCLE = 300
SQLALCHEMY_STATEMENT_TIMEOUT = 1200
PAGE_SIZE = 50
PAGE_SIZE = 20
API_PAGE_SIZE = 250
REDIS_URL = cloud_config.redis_url
REDIS_ENABLED = getenv("REDIS_ENABLED", "1") == "1"
Expand Down
2 changes: 1 addition & 1 deletion tests/app/inbound_sms/test_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def test_get_inbound_sms_by_id_with_invalid_service_id_returns_404(

@pytest.mark.parametrize(
"page_given, expected_rows, has_next_link",
[(True, 10, False), (False, 50, True)],
[(True, 20, True), (False, 20, True)],
)
def test_get_most_recent_inbound_sms_for_service(
admin_request,
Expand Down
4 changes: 2 additions & 2 deletions tests/app/service/test_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2036,10 +2036,10 @@ def test_get_notifications_for_service_pagination_links(
resp = admin_request.get(
"service.get_all_notifications_for_service",
service_id=sample_template.service_id,
page=3,
page=6,
)

assert "?page=2" in resp["links"]["prev"]
assert "?page=5" in resp["links"]["prev"]
assert "next" not in resp["links"]


Expand Down

0 comments on commit e1ba1ac

Please sign in to comment.