Skip to content

Excessive parameter use in get_or_create_non_empty_tags_list  #660

Description

@mdashlw

get_or_create_non_empty_tags_list function tries to INSERT every tag with 12 parameters each, most of which are unnecessary.

|> Multi.insert_all(

✅ :slug              - needed
✅ :name              - needed
✅ :category          - needed
❌ :images_count      - defaults to 0
❌ :description       - defaults to empty
❌ :short_description - defaults to empty
✅ :namespace         - needed
✅ :name_in_namespace - needed
❌ :image             - defaults to NULL
❌ :image_format      - defaults to NULL
❌ :image_mime_type   - defaults to NULL
❌ :mod_notes         - defaults to NULL

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions