Skip to content

Rename audit retention days setting #8517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion readthedocs/profiles/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get_object(self, queryset=None): # noqa
class UserSecurityLogView(PrivateViewMixin, ListView):
model = AuditLog
template_name = 'profiles/private/security_log.html'
days_limit = settings.RTD_DEFAULT_LOGS_RETENTION_DAYS
days_limit = settings.RTD_AUDITLOGS_DEFAULT_RETENTION_DAYS

def get(self, request, *args, **kwargs):
download_data = request.GET.get('download', False)
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def SESSION_COOKIE_SAMESITE(self):
RTD_CLEAN_AFTER_BUILD = False
RTD_MAX_CONCURRENT_BUILDS = 4
RTD_BUILD_STATUS_API_NAME = 'docs/readthedocs'
RTD_DEFAULT_LOGS_RETENTION_DAYS = 30 * 3
RTD_AUDITLOGS_DEFAULT_RETENTION_DAYS = 30 * 3

# Database and API hitting settings
DONT_HIT_API = False
Expand Down