-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
type/bugSomething isn't working as expectedSomething isn't working as expected
Description
Component
API Server / GraphQL
Infrahub version
1.5.2
Current Behavior
Display label for some of the node is never updated:
Even tho my schema is correct:
Expected Behavior
Display label should be adjusted to match with what's in my schema
Steps to Reproduce
- Load this schema
# yaml-language-server: $schema=https://schema.infrahub.app/infrahub/schema/latest.json
---
version: "1.0"
nodes:
- name: Stuff
namespace: Random
description: Random stuff
attributes:
- name: name
kind: Text
computed_attribute:
kind: Jinja2
jinja2_template: "RANDOM_{{ index__value }}"
read_only: true
optional: false
unique: true
- name: index
kind: Number
- Create a couple of records directly in infrahub
- Then load this schema (that introduces the display label)
# yaml-language-server: $schema=https://schema.infrahub.app/infrahub/schema/latest.json
---
version: "1.0"
nodes:
- name: Stuff
namespace: Random
description: Random stuff
display_label: "{{ name__value}}"
attributes:
- name: name
kind: Text
computed_attribute:
kind: Jinja2
jinja2_template: "RANDOM_{{ index__value }}"
read_only: true
optional: false
unique: true
- name: index
kind: Number
- Now getting back to the UI
=> Existing records won't ever have a proper display label, even when editing it and so on
=> When creating a new record display label is correct
Additional Information
I understand it as "display label isn't setup for existing records". Please make sure that this is not impacting HFID.
Metadata
Metadata
Assignees
Labels
type/bugSomething isn't working as expectedSomething isn't working as expected