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

Do not allow empty category names #292

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Do not allow empty category names #292

merged 1 commit into from
Sep 14, 2023

Commits on Sep 14, 2023

  1. feat!: [#288] do not allow empty category names

    It was allowed to use an empty string like "" or " " for a category name.
    
    From now on, it's not allowed.
    
    If there were some empty names in the database, they were not renamed. Admins must optionally do that. Names were anyway UNIQUE.
    
    A migration to rename empty names was not added because there can be more than one category, for example:
    
    - ""
    - " "
    - "  "
    - Etcetera
    
    We could have generated names like "no category 1", "no category 2", but it's not likely that admins have created empty categories.
    josecelano committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    c2b7488 View commit details
    Browse the repository at this point in the history