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

pkp/pkp-lib#9533 Adds decisions constants migration for OPS 3.4.0 #597

Closed

Conversation

JhonathanLepidus
Copy link
Contributor

@JhonathanLepidus JhonathanLepidus commented Nov 23, 2023

This PR is related to #9533

Signed-off-by: Jhon <jhon@lepidus.com.br>
Signed-off-by: Iudi <iudi@lepidus.com.br>
// \PKP\decision\Decision::REVERT_INITIAL_DECLINE
[
'stage_id' => [WORKFLOW_STAGE_ID_PRODUCTION],
'current_value' => 17,
Copy link
Member

Choose a reason for hiding this comment

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

for the \PKP\decision\Decision::REVERT_INITIAL_DECLINE, the current_value should be 18 . the changes can be compared at https://github.com/pkp/pkp-lib/pull/8218/files#diff-62bb1ef0ef526750d90461c6e3f7538f6da0f85260a6575f8b02fe44f3d763aeL38-R45 .

Copy link
Contributor Author

@JhonathanLepidus JhonathanLepidus Nov 29, 2023

Choose a reason for hiding this comment

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

In OPS 3.3.0, when declining a submission, it generates a decision with INITIAL_DECLINE value. However, when reversing this declining, it creates a decision with REVERT_DECLINE value, instead of REVERT_INITIAL_DECLINE.

Declinings and reversals in 3.3.0:

declining_and_reverting

In OPS 3.4.0, the declining is also the INITIAL_DECLINE, but the reversing is a REVERT_INITIAL_DECLINE (what is more semantically correct).

Declinings and reversals in 3.4.0:

declining_and_reversing_340

This is the reason why we migrate the value from REVERT_DECLINE (17) in 3.3.0 to REVERT_INITIAL_DECLINE (16) in 3.4.0.

@jonasraoni
Copy link
Contributor

Closing in favor of #600

@jonasraoni jonasraoni closed this Jan 31, 2024
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