Skip to content

Commit

Permalink
Added note and link to docs ref property collision (#1541)
Browse files Browse the repository at this point in the history
Added note to ViewApply implements docstring regarding order of elements in the implements list regarding priority on how property collision is handled.
  • Loading branch information
nikokaoja authored Dec 7, 2023
1 parent 166e7fa commit 58a389c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cognite/client/data_classes/data_modeling/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ class ViewApply(ViewCore):
filter (Filter | None): A filter Domain Specific Language (DSL) used to create advanced filter queries.
implements (list[ViewId] | None): References to the views from where this view will inherit properties and edges.
properties (dict[str, ViewPropertyApply] | None): No description.
.. note::
The order of elements (i.e., `ViewId`) in :code:`implements` matters, as it indicates priority on how to handle
collisions of same properties from different views.
See docs on
`implemented property conflicts <https://docs.cognite.com/cdf/dm/dm_concepts/dm_containers_views_datamodels/#implemented-property-conflicts-and-precedence>`_
for more details.
"""

def __init__(
Expand Down

0 comments on commit 58a389c

Please sign in to comment.