-
Notifications
You must be signed in to change notification settings - Fork 27
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
Some updates to docs #1534
Some updates to docs #1534
Conversation
f18e269
to
ff2ebcc
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1534 +/- ##
=======================================
Coverage 91.83% 91.83%
=======================================
Files 120 120
Lines 15591 15591
=======================================
Hits 14318 14318
Misses 1273 1273
|
813325d
to
2dc0edb
Compare
Feature data modeling instead of assets, as this is the functionality we want new users to relate to.
Time Series and geospatial have 4 sub resources, sequences has 2, so it makes more sense to group them like this
0367692
to
d440014
Compare
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.
I really like that you have made a separate top-level page in the docs for filtering. Should allow us to link to it easily from other parts of the documentation without bloating it with (similar-in-nature) examples everywhere 🥇
_filter_name = "or" | ||
|
||
|
||
@final | ||
class Not(CompoundFilter): | ||
"""A filter that negates another filter. |
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.
"""A filter that negates another filter. | |
"""A filter that negates another filter recursively. |
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.
Not sure about that. It makes it sound like it negates each of the underlying filters recursively, which would be difficult to reason about if it was the case.
gt (FilterValue | None): Greater than. | ||
gte (FilterValue | None): Greater than or equal to. | ||
lt (FilterValue | None): Less than. | ||
lte (FilterValue | None): Less than or equal to. |
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.
Just noticed that these type hints using FilterValue
are wrong/misleading as only a subset is supported (other misleading uses: Overlaps
and Prefix
):
(RangeValue (RangeValue (string) or RangeValue (number) or RangeValue (integer))) or ReferencedPropertyValueV3 (object) (FilterValueRange)
@dataclass
class PropertyReferenceValue:
property: PropertyReference
@dataclass
class ParameterValue:
parameter: str
FilterValue: TypeAlias = Union[RawValue, PropertyReferenceValue, ParameterValue]
RawValue: TypeAlias = Union[str, float, bool, Sequence, Mapping[str, Any], Label]
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.
Yeah, not ideal. Will leave some validation for runtime. But not gonna address that in this PR.
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 👌
(TY ChatGPT) 🙏