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

Revision Request Notes Not Saving as of 1.5.1 #4088

Closed
justingonder opened this issue Apr 10, 2024 · 3 comments · Fixed by #4091
Closed

Revision Request Notes Not Saving as of 1.5.1 #4088

justingonder opened this issue Apr 10, 2024 · 3 comments · Fixed by #4091
Assignees
Labels
bug Something's not working

Comments

@justingonder
Copy link
Collaborator

Describe the bug
When editors enter text into the Editor Note field on the Request Revisions page:
2024-04-10_13-19-40

The text of the note is not present in the email sent to the author:
2024-04-10_13-19-51

Nor on the Revision Request Details page:
2024-04-10_13-23-30

Janeway version
Our users began noticing this data loss when we rolled out 1.5.1 RC6
Have confirmed the behavior is the same in 1.5.1 final as well.

@justingonder justingonder added the bug Something's not working label Apr 10, 2024
@joemull
Copy link
Member

joemull commented Apr 11, 2024

Thanks @justingonder. I'm looking into this now.

@joemull joemull self-assigned this Apr 11, 2024
@joemull
Copy link
Member

joemull commented Apr 11, 2024

This is happening because JQTE is still being loaded into the template, which modifies the HTML in a way that is unrecognizable to the TinyMCE Django form that looks for the field on save.

https://github.com/BirkbeckCTP/janeway/blob/v1.5.1/src/templates/admin/review/revision/request_revisions.html#L73

It can be patched by removing line 73.

joemull added a commit that referenced this issue Apr 11, 2024
@joemull
Copy link
Member

joemull commented Apr 11, 2024

One more update: I've reviewed all the templates that could theoretically be affected by this and narrowed it down to just one additional problem template:

src/templates/admin/review/draft_decision.html

You don't use the Draft Decisions feature at CDL, do you? If not, this shouldn't affect you.

So, what you can do for the time being in production is switch the branch 4088-jqte-hotfix, which is one commit ahead of the pinned v1.5.1. All it does is drop the offending line that breaks the Request Revisions form.

In terms of Janeway versions and pins, we have already pinned the final version of 1.5.1, and haven't yet sped up our semantic versioning to make better use of the small numbers, so we will need to figure out how to solve the pinning/versioning question next week. Once Mauro is back online we will follow up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants