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

Journal's project name should be case insensitive #16028

Open
miketheman opened this issue May 30, 2024 · 0 comments
Open

Journal's project name should be case insensitive #16028

miketheman opened this issue May 30, 2024 · 0 comments
Labels
admin Features needed for the Admin UI (people running the site) data quality

Comments

@miketheman
Copy link
Member

When a project is created/removed, journals will exist with the project's name being case-sensitive.

We can have journals for project ABC, and if it's been removed, project abc can be created, and previous journal lookups will show nothing for ABC, only abc.

It's helpful to have the context in admin interfaces for projects as they change over time - uncertain of other places.

We could:

  • change journals.name to be citext instead of text
  • change lower() the input and resulting value at query time

Migration to citext could have some slowdown on this table (it's got ~23 million records). We already use citext for journals.submitted_by.

Using lower() may have some query time performance issues, and we'd need to remember to use it everywhere we'd want to have those lookups be aligned.

@miketheman miketheman added admin Features needed for the Admin UI (people running the site) data quality labels May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin Features needed for the Admin UI (people running the site) data quality
Projects
None yet
Development

No branches or pull requests

1 participant