Skip to content

Derive fields from create_action and update_action by default #7

@enoonan

Description

@enoonan

I have repeatedly run into a bug where the field configurations I declare on an AshBackpex.LiveResource are incompatible with the specified create_action or update_action.

Most often this takes the form of adding a field which refers to a relationship, calculation or even attribute that is a valid field but that the configured action doesn't accept as an input.

While it should be possible to override this, the default behavior should be as follows:

  1. All accepted inputs for the create_action appear in the :new form
  2. All accepted inputs for the update_action appear in the :update form
  3. Any other fields appear only in the :show and :index views by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions