-
Notifications
You must be signed in to change notification settings - Fork 23
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
RDBC-698 Python client - timeseries round 2 #195
Conversation
….py from warnings
…xistingRangeInCache_Typed
…UpdateExistingRangeInCache_Typed
ab30629
to
1c2b27f
Compare
…WithExistingRangesInCache_Typed
1c2b27f
to
ecb5809
Compare
…esIncludesTest::includeTimeSeriesAndMergeWithExistingRangesInCache
…oadAsyncWithInclude_AllTimeSeries_LastRange_ByTime, canLoadAsyncWithInclude_AllTimeSeries_LastRange_ByCount
@classmethod | ||
def from_json(cls, json_dict: Dict[str, Any]) -> TimeSeriesPolicy: | ||
return cls( | ||
json_dict["Name"], | ||
json_dict["Name"], # todo: Invalid deserialization |
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.
?
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.
fixed in the upcoming commits in this pr https://issues.hibernatingrhinos.com/issue/RDBC-766/Python-client-time-series-3
@@ -55,7 +56,7 @@ def get_time_series_name(self, raw_name: str) -> str: | |||
|
|||
def to_json(self) -> Dict[str, Any]: | |||
return { | |||
"Name": self.name, | |||
"Name": self.name, # todo: Invalid serialization |
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.
?
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.
fixed in the upcoming commits in this pr https://issues.hibernatingrhinos.com/issue/RDBC-766/Python-client-time-series-3
@@ -168,7 +171,7 @@ def execute_all_pending_lazy_operations(self) -> ResponseTimeInformation: | |||
requests = [] | |||
for i in range(len(self._pending_lazy_operations)): | |||
# todo: pending lazy operation create request - WIP | |||
req = self._pending_lazy_operations[i].create_request() | |||
req = self._pending_lazy_operations[i].create_arequest() |
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.
typo?
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.
typo, fixed in the upcoming commits in this pr https://issues.hibernatingrhinos.com/issue/RDBC-766/Python-client-time-series-3
# return a dictionary {index of time series value - (name of 'float' field, label)} | ||
# e.g. return {0 : ('heart', 'Heartrate'), 1: ('bp', 'Blood Pressure')} | ||
# for some class that has 'heart' and 'bp' float fields | ||
raise NotImplementedError() |
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.
?
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.
self.assertIsNone(session.time_series_for(document_id, "HeartRate").get()) | ||
|
||
def test_get_on_empty_range_should_return_empty_array(self): | ||
document_id = "users/gracjan" |
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.
it was "users/ayende" in original source code :)
https://issues.hibernatingrhinos.com/issue/RDBC-698/Python-client-timeseries-round-2