Skip to content

Consistent behaviour for empty polymorphic #199

Closed

Description

@mkamensky

This is just a small issue, but I would expect

    self.polymorphic = []

to behave the same as no assignment at all. Instead, the behaviour changes, since the Polymorphism module is included (in Graphiti::Resource::Configuration)

Activity

  1. richmolj commented on Jan 21, 2020

    @richmolj
    Contributor

    Would happily merge a PR for this!

  2. mkamensky commented on Jan 22, 2020

    @mkamensky
    ContributorAuthor

    I'm not sure what the correct thing here should be, the obvious thing would be to avoid loading Polymorphism in the assignment when the array is empty, but I imagine it could become empty later (or conversely, become non-empty by some other means), so it seems that the behaviour should be modified elsewhere

  3. added
    bug
    good first issue
    on Jul 29, 2026
  4. added a commit that references this issue on Aug 9, 2026
    a27eeea
  5. added a commit that references this issue on Aug 9, 2026
    5c17899
  6. added a commit that references this issue on Aug 9, 2026
  7. github-actions commented on Aug 9, 2026

    @github-actions
    Contributor

    🎉 This issue has been resolved in version 1.13.3 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  8. added a commit that references this issue on Aug 9, 2026
  9. added a commit that references this issue on Sep 1, 2026
  10. github-actions commented on Sep 1, 2026

    @github-actions
    Contributor

    🎉 This issue has been resolved in version 2.0.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  11. github-actions commented on Sep 4, 2026

    @github-actions
    Contributor

    🎉 This issue has been resolved in version 1.13.3 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    buggood first issuereleasedreleased on @1.xreleased on @beta

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions