Skip to content

Commit 994e5b3

Browse files
committed
Merged in [17083] from kivinen@iki.fi:
Moved hard coded defaults for max items to show and days to show to the settings.py. - Legacy-Id: 17099 Note: SVN reference [17083] has been migrated to Git commit 90428d6
2 parents 3594283 + 90428d6 commit 994e5b3

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

ietf/group/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,8 +1404,8 @@ def reviewer_overview(request, acronym, group_type=None):
14041404

14051405
today = datetime.date.today()
14061406

1407-
max_closed_reqs = 10
1408-
days_back = 365
1407+
max_closed_reqs = settings.GROUP_REVIEW_MAX_ITEMS_TO_SHOW_IN_REVIEWER_LIST
1408+
days_back = settings.GROUP_REVIEW_DAYS_TO_SHOW_IN_REVIEWER_LIST
14091409
if can_manage:
14101410
secretary_settings = (ReviewSecretarySettings.objects.filter(person=
14111411
request.user.person,

ietf/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,10 @@ def skip_unreadable_post(record):
591591
GROUP_STATES_WITH_EXTRA_PROCESSING = ["sub-pub", "rfc-edit", ]
592592
GROUP_TYPES_LISTED_ACTIVE = ['wg', 'rg', 'ag', 'team', 'dir', 'review', 'area', 'program', ]
593593

594+
# Review team releated settings
595+
GROUP_REVIEW_MAX_ITEMS_TO_SHOW_IN_REVIEWER_LIST = 10
596+
GROUP_REVIEW_DAYS_TO_SHOW_IN_REVIEWER_LIST = 365
597+
594598
DATE_FORMAT = "Y-m-d"
595599
DATETIME_FORMAT = "Y-m-d H:i T"
596600

0 commit comments

Comments
 (0)