Skip to content

Commit

Permalink
(KC-719) compliance record-access-report + other additions/improvem…
Browse files Browse the repository at this point in the history
…ents: 1) --report-type, --aging flags 2) in_trash, has_attachments, record-aging data columns 3) support for multiple users + "@ALL" pseudo-user, 4) increased row limit for non-raw report-types in `audit-report`
  • Loading branch information
aaunario-keeper authored and sk-keeper committed Jan 3, 2024
1 parent d3239bd commit 8f46c97
Show file tree
Hide file tree
Showing 5 changed files with 233 additions and 63 deletions.
7 changes: 4 additions & 3 deletions keepercommander/commands/aram.py
Original file line number Diff line number Diff line change
Expand Up @@ -1350,10 +1350,11 @@ def execute(self, params, **kwargs):
rq['aggregate'] = aggregates

user_limit = kwargs.get('limit')
api_row_limit = API_EVENT_SUMMARY_ROW_LIMIT if report_type != 'raw' else API_EVENT_RAW_ROW_LIMIT
if not user_limit and not has_aram:
user_limit = API_EVENT_RAW_ROW_LIMIT
rq_limit = 50 if user_limit is None else user_limit if user_limit > 0 else API_EVENT_RAW_ROW_LIMIT
rq['limit'] = min(rq_limit, API_EVENT_RAW_ROW_LIMIT)
user_limit = api_row_limit
rq_limit = 50 if user_limit is None else user_limit if user_limit > 0 else api_row_limit
rq['limit'] = min(rq_limit, api_row_limit)

if kwargs.get('order'):
rq['order'] = 'ascending' if kwargs['order'] == 'asc' else 'descending'
Expand Down
Loading

0 comments on commit 8f46c97

Please sign in to comment.