Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-unlock if save_locked_judgment_xml fails and unlock was requested #303

Merged
merged 1 commit into from
May 16, 2024

Conversation

dragon-dxw
Copy link
Collaborator

The enrichment process has hit a significant error when trying to upload (it's probably not schema-valid) so if it asked to unlock, we should unlock.

@dragon-dxw dragon-dxw force-pushed the feature/unlock-on-fail branch from f715927 to 2b69ebb Compare April 10, 2024 11:49
Copy link

@CristinaRO CristinaRO left a comment

Choose a reason for hiding this comment

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

Minor, non-blocking comment.

# More generally testing errors are passed through from the client
mocked_client.return_value.save_locked_judgment_xml.side_effect = Mock(
side_effect=MarklogicResourceLockedError(),
)

Choose a reason for hiding this comment

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

Might be worth adding a newline, to have the arrange - act - assert separation clearer.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@dragon-dxw dragon-dxw force-pushed the feature/unlock-on-fail branch from 8a740cd to 15e81ab Compare May 16, 2024 17:00
@dragon-dxw dragon-dxw merged commit 9c05054 into main May 16, 2024
6 checks passed
@dragon-dxw dragon-dxw deleted the feature/unlock-on-fail branch May 16, 2024 17:05
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