bug: wrong display_label when using an enum attribute #4382
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
type/bug
Something isn't working as expected
Milestone
Component
API Server / GraphQL
Infrahub version
0.16.0
Current Behavior
When you defined
display_labels
that references an enum attribute, it renders the display_label as<attr_name>Enum.<variant>
, where attr_name is the name of the attribute and variant is the value.Expected Behavior
The display label should use the string version of the enum variant for the attribute that we defined in the schema.
Steps to Reproduce
one
as the value for the test attributedisplay_label
will be rendered asTestEnum.ONE
Additional Information
No response
The text was updated successfully, but these errors were encountered: