Skip to content

promote main #963

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

Draft
wants to merge 185 commits into
base: main
Choose a base branch
from
Draft

promote main #963

wants to merge 185 commits into from

Conversation

hubsmoke
Copy link
Member

@hubsmoke hubsmoke commented May 30, 2025

Warning We have to backfill legacyDpids as soon as we merge this
promote main

shadrach-tayo and others added 30 commits May 12, 2025 21:49
Update api pagination metadata and documentation
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Bug: Inconsistent Error Handling in `assignSubmissionToEditor`

The assignSubmissionToEditor function uses generic Error for conditions that should use specific API error classes like ForbiddenError or NotFoundError. This is inconsistent with the error handling pattern established by other functions in the same file.

desci-server/src/services/journals/JournalSubmissionService.ts#L174-L175

if (!chiefEditor) {
throw new Error('Only Chief editor is allowed to assign submissions');

desci-server/src/services/journals/JournalSubmissionService.ts#L186-L187

if (submission.status !== SubmissionStatus.SUBMITTED) {
throw new Error('Submission is not in the submitted state');

Fix in Cursor


Was this report helpful? Give feedback by reacting with 👍 or 👎

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.

4 participants