Limit audit events controller to 31 days date range
What does this MR do and why?
On audit events page user can change the date range params and query for more than 31 days which is the restriction on frontend. This MR enforces maximum date range of 31 days on backend.
Screenshots or screen recordings
page | Screenshot |
---|---|
admin/audit_logs | |
project_path/-/audit_events | |
group_path/-/audit_events |
How to set up and validate locally
- Run GDK.
- Visit admin/audit_logs page.
- Change params manually making date range greater than 31 days.
- You should see alert stating "Date range limited to 31 days"
- repeat steps 3 and 4 for projects > audit_events page and group > audit_events page.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #345371 (closed)
Edited by Harsimar Sandhu