Skip to content

Bug: Conveyor-admin not parsing the correct type for dropdown list of related records #7

@jacob-paulson

Description

@jacob-paulson

When trying to create a new record within conveyor, if selecting a related record through the built-in dropdown feature, a 400 error occurs if the name of the field doesn't exactly correspond to the list that needs to be queried.

For example, if there's a relation between a record "example" and "platform_area_type," but the field is named "area_type" in "example," (the model works fine with this implementation) the dropdown will parse the list of "area_type" as "area_type_list" rather than "platform_area_type_list," the actual list that needs to be queried.

The query works as expected in GraphiQL once "area_type" is changed to "platform_area_type."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions