Skip to content

[RFC] Delegated types in Avo #2671

Open
@adrianthedev

Description

@adrianthedev

Feature

I keep bragging that we support all Rails' associations, but it seems that we don't have such a great support for delegated types.

I haven't used them in an app but I know there are a couple of folks that are using DT but I'd like to know how are you using it.

Let's take the Entry and Comment/Message examples that Rails offers in the docs.

Some questions that pop to mind:

  1. Do you have an Entry resource?
  2. Do you always create Comments and Messages through an Entry?
  3. Do you only use the Comment and Message resources?
  4. If you're using the Entry resource, how do you handle the form? Do you manually add the fields to the Entry so they are forwarded to the Comment?
  5. Do you use the entryable_type and entryable_id on the Entry resource like the polymorphic belongs_to?
  6. If yes, have you built that manually using fields?

Besides the question, please describe your use case as loose or as detailed (I prefer detailed) as possible.

I'd like to know what the pain points are and how we could solve them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNot necessarily a feature, but something has improvedQuestionFurther information is requestedRFC

    Type

    No type

    Projects

    Status

    Triage

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions