Skip to content

[COMP-807] error closing case file#739

Closed
tom0827 wants to merge 1 commit intobcgov:developfrom
tom0827:COMP-807
Closed

[COMP-807] error closing case file#739
tom0827 wants to merge 1 commit intobcgov:developfrom
tom0827:COMP-807

Conversation

@tom0827
Copy link
Collaborator

@tom0827 tom0827 commented Feb 17, 2026

No description provided.

InspectionModel.case_file_id == case_file_id,
InspectionModel.is_active.is_(True),
InspectionModel.is_deleted.is_(False),
InspectionModel.inspection_status == InspectionStatusEnum.OPEN,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do want closed inspection to be returned here as well because a closed inspection can still have an open enforcement like an AP. and that open AP should still stop the case file from closing. See comp-784

@tom0827 tom0827 closed this Feb 17, 2026
@tom0827 tom0827 deleted the COMP-807 branch February 17, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants