diff --git a/backend/lcfs/web/api/base.py b/backend/lcfs/web/api/base.py index ecb1d3693..288f38923 100644 --- a/backend/lcfs/web/api/base.py +++ b/backend/lcfs/web/api/base.py @@ -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: @@ -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 \ No newline at end of file + return self.value