Skip to content

Commit

Permalink
Decrease logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaselhan committed Dec 19, 2024
1 parent 39457c8 commit 78d4523
Showing 1 changed file with 47 additions and 19 deletions.
66 changes: 47 additions & 19 deletions backend/lcfs/web/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ def validate_pagination(pagination: PaginationRequestSchema):
Args:
pagination (PaginationRequestSchema): The pagination object to validate.
"""
logger.info("Validating pagination")
logger.debug("Pagination details", pagination=pagination)

if not pagination.page or pagination.page < 1:
pagination.page = 1
if not pagination.size or pagination.size < 1:
Expand Down Expand Up @@ -373,24 +370,55 @@ async def lcfs_cache_key_builder(
# Return the cache key
return cache_key


class NotificationTypeEnum(Enum):
BCEID__COMPLIANCE_REPORT__DIRECTOR_ASSESSMENT = "BCEID__COMPLIANCE_REPORT__DIRECTOR_ASSESSMENT"
BCEID__INITIATIVE_AGREEMENT__DIRECTOR_APPROVAL = "BCEID__INITIATIVE_AGREEMENT__DIRECTOR_APPROVAL"
BCEID__COMPLIANCE_REPORT__DIRECTOR_ASSESSMENT = (
"BCEID__COMPLIANCE_REPORT__DIRECTOR_ASSESSMENT"
)
BCEID__INITIATIVE_AGREEMENT__DIRECTOR_APPROVAL = (
"BCEID__INITIATIVE_AGREEMENT__DIRECTOR_APPROVAL"
)
BCEID__TRANSFER__DIRECTOR_DECISION = "BCEID__TRANSFER__DIRECTOR_DECISION"
BCEID__TRANSFER__PARTNER_ACTIONS = "BCEID__TRANSFER__PARTNER_ACTIONS"
IDIR_ANALYST__COMPLIANCE_REPORT__DIRECTOR_DECISION = "IDIR_ANALYST__COMPLIANCE_REPORT__DIRECTOR_DECISION"
IDIR_ANALYST__COMPLIANCE_REPORT__MANAGER_RECOMMENDATION = "IDIR_ANALYST__COMPLIANCE_REPORT__MANAGER_RECOMMENDATION"
IDIR_ANALYST__COMPLIANCE_REPORT__SUBMITTED_FOR_REVIEW = "IDIR_ANALYST__COMPLIANCE_REPORT__SUBMITTED_FOR_REVIEW"
IDIR_ANALYST__INITIATIVE_AGREEMENT__RETURNED_TO_ANALYST = "IDIR_ANALYST__INITIATIVE_AGREEMENT__RETURNED_TO_ANALYST"
IDIR_ANALYST__TRANSFER__DIRECTOR_RECORDED = "IDIR_ANALYST__TRANSFER__DIRECTOR_RECORDED"
IDIR_ANALYST__TRANSFER__RESCINDED_ACTION = "IDIR_ANALYST__TRANSFER__RESCINDED_ACTION"
IDIR_ANALYST__TRANSFER__SUBMITTED_FOR_REVIEW = "IDIR_ANALYST__TRANSFER__SUBMITTED_FOR_REVIEW"
IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__ANALYST_RECOMMENDATION = "IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__ANALYST_RECOMMENDATION"
IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__DIRECTOR_ASSESSMENT = "IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__DIRECTOR_ASSESSMENT"
IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__SUBMITTED_FOR_REVIEW = "IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__SUBMITTED_FOR_REVIEW"
IDIR_DIRECTOR__COMPLIANCE_REPORT__MANAGER_RECOMMENDATION = "IDIR_DIRECTOR__COMPLIANCE_REPORT__MANAGER_RECOMMENDATION"
IDIR_DIRECTOR__INITIATIVE_AGREEMENT__ANALYST_RECOMMENDATION = "IDIR_DIRECTOR__INITIATIVE_AGREEMENT__ANALYST_RECOMMENDATION"
IDIR_DIRECTOR__TRANSFER__ANALYST_RECOMMENDATION = "IDIR_DIRECTOR__TRANSFER__ANALYST_RECOMMENDATION"
IDIR_ANALYST__COMPLIANCE_REPORT__DIRECTOR_DECISION = (
"IDIR_ANALYST__COMPLIANCE_REPORT__DIRECTOR_DECISION"
)
IDIR_ANALYST__COMPLIANCE_REPORT__MANAGER_RECOMMENDATION = (
"IDIR_ANALYST__COMPLIANCE_REPORT__MANAGER_RECOMMENDATION"
)
IDIR_ANALYST__COMPLIANCE_REPORT__SUBMITTED_FOR_REVIEW = (
"IDIR_ANALYST__COMPLIANCE_REPORT__SUBMITTED_FOR_REVIEW"
)
IDIR_ANALYST__INITIATIVE_AGREEMENT__RETURNED_TO_ANALYST = (
"IDIR_ANALYST__INITIATIVE_AGREEMENT__RETURNED_TO_ANALYST"
)
IDIR_ANALYST__TRANSFER__DIRECTOR_RECORDED = (
"IDIR_ANALYST__TRANSFER__DIRECTOR_RECORDED"
)
IDIR_ANALYST__TRANSFER__RESCINDED_ACTION = (
"IDIR_ANALYST__TRANSFER__RESCINDED_ACTION"
)
IDIR_ANALYST__TRANSFER__SUBMITTED_FOR_REVIEW = (
"IDIR_ANALYST__TRANSFER__SUBMITTED_FOR_REVIEW"
)
IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__ANALYST_RECOMMENDATION = (
"IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__ANALYST_RECOMMENDATION"
)
IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__DIRECTOR_ASSESSMENT = (
"IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__DIRECTOR_ASSESSMENT"
)
IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__SUBMITTED_FOR_REVIEW = (
"IDIR_COMPLIANCE_MANAGER__COMPLIANCE_REPORT__SUBMITTED_FOR_REVIEW"
)
IDIR_DIRECTOR__COMPLIANCE_REPORT__MANAGER_RECOMMENDATION = (
"IDIR_DIRECTOR__COMPLIANCE_REPORT__MANAGER_RECOMMENDATION"
)
IDIR_DIRECTOR__INITIATIVE_AGREEMENT__ANALYST_RECOMMENDATION = (
"IDIR_DIRECTOR__INITIATIVE_AGREEMENT__ANALYST_RECOMMENDATION"
)
IDIR_DIRECTOR__TRANSFER__ANALYST_RECOMMENDATION = (
"IDIR_DIRECTOR__TRANSFER__ANALYST_RECOMMENDATION"
)

def __str__(self):
return self.value
return self.value

0 comments on commit 78d4523

Please sign in to comment.