Skip to content

Attributes: Default values without inheritance #798

@iLLiCiTiT

Description

@iLLiCiTiT

Story

If I disable inheritance on an attribute and then create new entity the attribute value is set to null instead of the default value.

To reproduce

Steps to reproduce the behavior:
I'll use frameStart as an example because it is already by default in AYON.

  1. Make sure frameStart has defined default value.
  2. Change frameStart to not inherit values in Attributes tab.
  3. Create new task.
  4. The new task will return frameStart as null instead of the default value when received using graphql.

Expected behavior

If attribute inheritance is disabled and value is null, then the default value should be returned instead of null on request.

Additional context

I don't think the value should be filled in the entity itself, because it would be necessary to handle change of the attribute inheritance which can cause huuuuge issues if done accidentaly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions