Skip to content

Commit

Permalink
Rename audit classes to have shorter names
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed Jun 21, 2024
1 parent 4b2468c commit 87fabaf
Show file tree
Hide file tree
Showing 6 changed files with 186 additions and 190 deletions.
8 changes: 4 additions & 4 deletions primed/cdsa/audit/accessor_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ class Error(AccessorAuditResult):
pass


class SignedAgreementAccessorAuditTable(tables.Table):
"""A table to show results from a SignedAgreementAccessorAudit subclass."""
class AccessorAuditTable(tables.Table):
"""A table to show results from a AccessorAudit subclass."""

signed_agreement = tables.Column(linkify=True)
user = tables.Column(linkify=True)
Expand All @@ -108,7 +108,7 @@ class Meta:
attrs = {"class": "table align-middle"}


class SignedAgreementAccessorAudit(PRIMEDAudit):
class AccessorAudit(PRIMEDAudit):
"""Audit collaborators for a SignedAgreement."""

# Access verified.
Expand All @@ -127,7 +127,7 @@ class SignedAgreementAccessorAudit(PRIMEDAudit):
UNEXPECTED_GROUP_ACCESS = "Group should not have access."
ACCOUNT_NOT_LINKED_TO_USER = "Account is not linked to a user."

results_table_class = SignedAgreementAccessorAuditTable
results_table_class = AccessorAuditTable

def __init__(self, queryset=None):
super().__init__()
Expand Down
6 changes: 3 additions & 3 deletions primed/cdsa/audit/uploader_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Error(UploaderAuditResult):
pass


class DataAffiliateUploaderAuditTable(tables.Table):
class UploaderAuditTable(tables.Table):
"""A table to show results from a DataAffiliateAgreementUploaderAudit subclass."""

data_affiliate_agreement = tables.Column(linkify=True)
Expand All @@ -114,7 +114,7 @@ class Meta:
attrs = {"class": "table align-middle"}


class DataAffiliateUploaderAudit(PRIMEDAudit):
class UploaderAudit(PRIMEDAudit):
"""Audit collaborators for a DataAffiliateAgreement."""

# Access verified.
Expand All @@ -133,7 +133,7 @@ class DataAffiliateUploaderAudit(PRIMEDAudit):
UNEXPECTED_GROUP_ACCESS = "Group should not have access."
ACCOUNT_NOT_LINKED_TO_USER = "Account is not linked to a user."

results_table_class = DataAffiliateUploaderAuditTable
results_table_class = UploaderAuditTable

def __init__(self, queryset=None):
super().__init__()
Expand Down
Loading

0 comments on commit 87fabaf

Please sign in to comment.