# HG changeset patch # User Marcin Kuzminski # Date 2017-06-20 14:35:14 # Node ID e27e479659eddc98080c23088534095b489ff7d4 # Parent 4bb2ace4fa3dda022276eed956f4b9602be8025a audit-logs: updated action data attrbiutes. diff --git a/rhodecode/lib/audit_logger.py b/rhodecode/lib/audit_logger.py --- a/rhodecode/lib/audit_logger.py +++ b/rhodecode/lib/audit_logger.py @@ -40,12 +40,12 @@ ACTIONS_V1 = { 'user.delete': {'old_data': {}}, 'user.edit': {'old_data': {}}, 'user.edit.permissions': {}, - 'user.edit.ip.add': {}, - 'user.edit.ip.delete': {}, - 'user.edit.token.add': {}, - 'user.edit.token.delete': {}, - 'user.edit.email.add': {}, - 'user.edit.email.delete': {}, + 'user.edit.ip.add': {'ip': {}, 'user': {}}, + 'user.edit.ip.delete': {'ip': {}, 'user': {}}, + 'user.edit.token.add': {'token': {}, 'user': {}}, + 'user.edit.token.delete': {'token': {}, 'user': {}}, + 'user.edit.email.add': {'email': ''}, + 'user.edit.email.delete': {'email': ''}, 'user.edit.password_reset.enabled': {}, 'user.edit.password_reset.disabled': {}, @@ -61,9 +61,9 @@ ACTIONS_V1 = { 'repo.edit': {'old_data': {}}, 'repo.edit.permissions': {}, 'repo.delete': {'old_data': {}}, - 'repo.commit.strip': {}, - 'repo.archive.download': {}, - + 'repo.commit.strip': {'commit_id': ''}, + 'repo.archive.download': {'user_agent': '', 'archive_name': '', + 'archive_spec': '', 'archive_cached': ''}, 'repo.pull_request.create': '', 'repo.pull_request.edit': '', 'repo.pull_request.delete': '',