Skip to content

Conversation

@mkovalua
Copy link
Contributor

@mkovalua mkovalua commented Dec 15, 2025

Purpose

When attempting to create a new version of a preprint, user received the following error message:

"You cannot edit this statement while your prereg links availability is set to true or is unanswered."

Example:

https://osf.io/preprints/psyarxiv/jkfsx_v1

User has https://osf.io/preprints/psyarxiv/jkfsx_v1 linked in the prereg section of the preprint

When user goes to either edit or create new version they receive the same error message. User is unable to adjust any settings leads me back to the same error message. User tried multiple browsers and logging in/out.

Support team was unable to reproduce on test.

Changes

check prereg_links exists before raising exception (for current workflow it looks to be impossible 'why_no_prereg' be empty and 'prereg_links' exists simultaniously)

image image image

for now
we can have either why_no_prereg or has_prereg_links and prereg_links set simultaniously
and it is impossible to set all the records like it for record https://osf.io/preprints/psyarxiv/jkfsx_v1 and maybe some other records

image

QA Notes

Not succeeed to reproduce the issue for staging

have tried to hardcode preprint antributes that is for https://osf.io/preprints/psyarxiv/jkfsx_v1 on local testing

c524-6c06-4c9e-a837-ad5933bb2d8f.1.1.mp4

Any concerns/considerations/questions that development raised?

Documentation

Side Effects

Ticket

https://openscience.atlassian.net/browse/ENG-9727

@mkovalua mkovalua marked this pull request as ready for review December 15, 2025 17:17
…flow it looks to be impossible 'why_no_prereg' be empty and 'prereg_links' exists simultaniously)
Copy link
Contributor

@ihorsokhanexoft ihorsokhanexoft left a comment

Choose a reason for hiding this comment

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

looks fine

@bodintsov
Copy link
Contributor

looks good

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