-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable filter on data.content. #310
Conversation
@@ -23,6 +24,11 @@ def name(self) -> str: | |||
"""Object name""" | |||
return self._get_property(["data", "name"]) | |||
|
|||
@property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main change in this PR: Add content
property to the child object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@@ -243,7 +249,7 @@ The `SurfaceCollection.filter` method takes the following parameters: | |||
|
|||
* uuid | |||
* name | |||
* tagname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intentional to remove tagname
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, intentional. It is a non-standardized freetext field, which will turn into a major problem down the road. So trying to nudge people away from using it. But it is there, so perhaps it should be in the docs. And it has to be there, because there is no uniqueness without it.
So perhaps this was a bad call 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put tagname
back in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Issue
#249
Short description
data.content
is a key metadata attribute. Unlike non-standard freetext attributes such as "tagname" and others which should never be used for logical operations, thedata.content
is standardized. Therefore, we want to promote usage ofdata.content
as much as possible.This PR should enable explorer to filter on
data.content
.Pre-review checklist
print()
statements, commented-out code, or other remnants from the development. 👀Pre-merge checklist