tpw56j
tpw56j
@watologo1 Perhaps the problem is in the template used for dhcp or something else? Could you please describe the problem in more detail?
Sorry, I was wrong - the inheritance logic for `filename` is really not quite correct. At the moment I see 2 problems: 1. The value of `filename` depends on the...
@watologo1 > Not sure I get this right... You say, the condition (at least at this code part), that a profile still has another profile as parent or does not...
@SchoolGuy In implementing caching for proper object cache invalidation, the main role is not logical inheritance, but how one type depends on another. Dependency rules are defined in the `TYPE_DEPENDENCIES`...
It seems to me that the current implementation of defining logical inheritance rules and type dependencies via `LOGICAL_INHERITANCE` and `TYPE_DEPENDENCIES` is ugly. I did this because it was easier to...
We cache the entire to_dict result: ```python def to_dict(self, resolved: bool = False) -> Dict[Any, Any]: """ This converts everything in this object to a dictionary. :param resolved: If this...
Yes, the concept of “children” does not apply in this case, but the concept of “dependency” remains. And this concept must be preserved at least in order to be able...
It seems to me that the easiest method to make objects thinner is to create a hierarchy of classes. Something like this: ``` Item / \ Repo ChildItem / \...
`descendants` and `TYPE_DEPENDENCIES` must remain in the `Item`; they also describes dependencies outside of the parent/child relationship. But it needs to be overridden in `ChildItem`/`InheritableItem`.
Item: ```python def descendants(self) -> List["ITEM_UNION"]: results = set(self) for item_type in Item.TYPE_DEPENDENCIES[self.COLLECTION_TYPE]: dep_type_items = self.api.find_items( item_type[0], {item_type[1]: self.name}, return_list=True ) if dep_type_items is None or not isinstance(dep_type_items, list): raise...