Skip to content

Schema config should prevent creation of circular dependencies #2160

@maxpatiiuk

Description

@maxpatiiuk
  1. Create a PickList PrepType
  2. Make PickList type be Entire Table and set table to Prep Type
  3. Add a default formatter for the Prep Type table that uses the name field.
  4. Open Schema Editor for the Prep Type table
  5. Assign the PrepType pick list to the name field.

This causes a circular dependency, as formating the name field requires, requires fetching pick list items, which requires formatting the name field and so on.

This caused #2144 and #2145 (comment).

Checking for this case in the Schema Config would be a bit tricky, because when assigning a pick list P for the field F, it needs to check if P has a formatter, and if so if that formatter includes F in it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1 - RequestA request made by a member of the community2 - Schema ConfigIssues that are related to the Schema Config tool

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions