-
Notifications
You must be signed in to change notification settings - Fork 444
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
Sync the values of editorial decision constants across all applications #7725
Comments
@NateWr we have and will still have some Also as I have checked, all the
|
Sorry for the delay in replying to your previous questions, @touhidurabir. I've reviewed the code now.
Yes, and Alec might not like me recommending this. But I think it's much easier to have all of the constants defined here in one place. It will prevent us from accidentally getting them out of sync again.
I like how you've done it. I'm sure that was a mind-numbing bit of work. 👍
This is the old constant for |
Not enough to bother mentioning it; there are benefits to both approaches. We might actually move to enums later, and those would require us to specify them all in pkp-lib; it'll be impossible to extend them in the apps. So no objections here. |
@NateWr updated PR pkp-lib --> #8218 |
pkp/pkp-lib#7725 Decision constants sync up
pkp/pkp-lib#7725 Decision constants sync up
pkp/pkp-lib#7725 Decision constants sync up
All merged to |
@touhidurabir, could you have a look at the Travis builds? This appears to have broken the tests for all 3 apps. |
@asmecher I looked into the Travis build. it passed for |
Sure, these are the 3 builds where i7725_main were merged:
The previous builds all appear to pass. They all appear to fail on the application's API.spec.js. (Actually, I wonder if it's #7366 that caused the failures?) |
@asmecher the build failing is not related to this issue but related to #7366 . it's failing for the
but at the same time passing for similar one lies at weirdly I can not generate the screenshots for the
@asmecher can you generate the screenshots ? also may be better to move this discussion to #7366 and reopen it . |
Yeah I merged this yesterday and can confirm all three app's tests were passing on the PR before merge. |
OK, thanks to you both! Closing this again in favour of #8223. |
Describe the problem you would like to solve
Editorial decision types are tracked by constants like
Decision::ACCEPT
. However, many of the same constants have different values in OJS and OMP. Examples:1
2
2
4
As a result, these constants must be defined separately in each application, resulting in duplicate code. It also makes it harder to interpret database records from one app or another.
Describe the solution you'd like
Additional information
This work depends on #7265.
The text was updated successfully, but these errors were encountered: