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

#85 Override executed script #119

Merged
merged 5 commits into from
Feb 23, 2021
Merged

#85 Override executed script #119

merged 5 commits into from
Feb 23, 2021

Conversation

driccio
Copy link
Member

@driccio driccio commented Feb 9, 2021

Override executed script

Resolves/Fixes/Closes #85

- ExecutionMode.FORCE_MARK_AS_EXECUTED is now deprecated. Use Action.MARK_AS_EXECUTED.
- ExecutionStatus.FORCE_MARKED_AS_EXECUTED is deprecated. The action is saved on the executed script
- ExecutionStatus.SHOULD_BE_EXECUTED was removed because useless now we have action
Copy link
Member

@Lysoun Lysoun left a comment

Choose a reason for hiding this comment

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

Since this can't be in a review comment, I'm telling here: the action of DatamaintainConfig should be added in the log function of the class.

I don't see anything regarding the new option for the configuration to enable Datamaintain to choose to override executed scripts, is that normal?

val set = "\$set";

executeMongoQuery("""
db.$EXECUTED_SCRIPTS_COLLECTION.update({
Copy link
Member

Choose a reason for hiding this comment

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

You could use an updateOne

@driccio driccio merged commit 3372530 into dev Feb 23, 2021
@driccio driccio deleted the #85-override-executed-script branch February 23, 2021 09:01
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.

3 participants