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

Make editor find case insensitive #1351

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Make editor find case insensitive #1351

merged 1 commit into from
Jul 15, 2024

Conversation

arfon
Copy link
Member

@arfon arfon commented Jul 15, 2024

This pull request includes a change to the review_body method in the app/models/paper.rb file. The change modifies the way the method checks for the existence of an editor. Instead of using Editor.find_by_login(editor_handle), it now uses Editor.where("lower(login) = ?", editor_handle.downcase).first, which is case-insensitive.

This change makes the method more robust by ensuring that it can correctly identify an editor regardless of the case of the editor_handle input.

/ cc openjournals/joss-reviews#6809 (comment)

@arfon arfon temporarily deployed to joss-production July 15, 2024 09:59 Inactive
@arfon arfon merged commit d37204c into main Jul 15, 2024
2 checks passed
@arfon arfon deleted the lower-case-editor-find branch July 15, 2024 10:05
@arfon arfon restored the lower-case-editor-find branch July 15, 2024 10:05
@arfon arfon deleted the lower-case-editor-find branch July 15, 2024 10:05
@arfon arfon mentioned this pull request Aug 14, 2024
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.

1 participant