Skip to content

Commit

Permalink
External transfer no longer unarchives
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisfreitag committed Sep 11, 2024
1 parent b46c72e commit e230efc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion itou/job_applications/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,6 @@ def unset_processed_at(self, *args, **kwargs):
JobApplicationWorkflow.TRANSITION_RENDER_OBSOLETE,
JobApplicationWorkflow.TRANSITION_TRANSFER,
JobApplicationWorkflow.TRANSITION_RESET,
JobApplicationWorkflow.TRANSITION_EXTERNAL_TRANSFER,
)
def unarchive(self, *args, **kwargs):
self.archived_at = None
Expand Down
2 changes: 2 additions & 0 deletions tests/job_applications/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,8 @@ def test_job_application_transitions(transition, from_state):
JobApplicationState.PRIOR_TO_HIRE,
}
& {from_state.name, transition.target.name}
# Employer transfers to another structure, they likely won’t interact with this job application again.
or JobApplicationWorkflow.TRANSITION_EXTERNAL_TRANSFER == transition.name
)
],
)
Expand Down

0 comments on commit e230efc

Please sign in to comment.