bug: parent, children, ancestors and descendants should be added to the restricted attributes and relationship names #6125
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
type/bug
Something isn't working as expected
Component
No response
Infrahub version
1.2.0
Current Behavior
You can define a schemanode with one of the following names or attributes: parent, children, ancestors and descendants. These relationship names are used internally for hierarchical nodes and should be restricted.
Expected Behavior
A user should not be allowed to create relationships or attributes with the name parent/children/ancestors/descendants.
Steps to Reproduce
Additional Information
Did an attempt to parent/children/ancestors and descendants to
RESERVED_ATTR_REL_NAMES
but after it the server would not startinfrahub/backend/infrahub/core/constants/__init__.py
Line 28 in d47d0a4
The text was updated successfully, but these errors were encountered: