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#10874 Omit WORKFLOW_STAGE_ID_SUBMISSION stage for OPS #10883

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Vitaliy-1
Copy link
Collaborator

No description provided.

@Vitaliy-1 Vitaliy-1 force-pushed the i10874_groups_stages branch from 7c14c71 to 7b53dd0 Compare February 5, 2025 22:29
@Vitaliy-1 Vitaliy-1 requested a review from asmecher February 6, 2025 13:07
Copy link
Member

@asmecher asmecher left a comment

Choose a reason for hiding this comment

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

Thanks, @Vitaliy-1! Just one very minor change.

->withStageIds([WORKFLOW_STAGE_ID_SUBMISSION])
->withStageIds([
// WORKFLOW_STAGE_ID_SUBMISSION for OJS/OMP and WORKFLOW_STAGE_ID_PRODUCTION for OPS, see pkp/pkp-lib#10874
min(Application::getApplicationStages())
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be better not to use mathematical operators on arbitrarily defined constants. If you like, you could use the ordering of the items returned by getApplicationStages -- e.g. call array_shift on its results to determine the first stage.

->withStageIds([WORKFLOW_STAGE_ID_SUBMISSION])
->withStageIds([
// WORKFLOW_STAGE_ID_SUBMISSION for OJS/OMP and WORKFLOW_STAGE_ID_PRODUCTION for OPS, see pkp/pkp-lib#10874
min(Application::getApplicationStages())
Copy link
Member

Choose a reason for hiding this comment

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

(as above)

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