-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
[feature] Added organization filter to timeseries charts #532 #538
Conversation
fdbb779
to
9b66c51
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 see room for improvement here:
Instead of saying "organization filter", I think we should say something which indicates what we're currently viewing, I see these possible options:
- "All organizations" or "All available organizations" or "Organization: any"
- org.name or "Organization: org.name`
Or any other similar solution, what do you think?
2862039
to
9b7f01f
Compare
9b7f01f
to
213605d
Compare
bf4b1d5
to
ebe1d38
Compare
ebe1d38
to
418590d
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.
Looks good, two observations below.
@@ -671,6 +671,8 @@ def get_query( | |||
params = self._get_query_params(time, start_date, end_date) | |||
params.update(additional_params) | |||
params.update({'start_date': start_date, 'end_date': end_date}) | |||
if not params.get('organization_id') and self.config_dict.get('filter__all__'): |
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.
maybe we can use just __all__
for simplicity and clarity to anyone familiar with python (I think we use similar constructs elsewhere)?
@@ -260,14 +260,14 @@ def get_list_query(self, query, precision='s'): | |||
if not len(result.keys()) or result.keys()[0][1] is None: | |||
return list(result.get_points()) | |||
# Handles query which contains "GROUP BY TAG" clause | |||
result_points = {} | |||
result_points = OrderedDict() |
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.
AFAIK in recent versions of python dicts are ordered by default, isn't it?
08c5f7d
to
386c307
Compare
- Added option to define "summary_query" for metrics - Added functionality to handle "GROUP by tags" clause to InfluxDB client Related to #532
f0535a7
to
c00fe96
Compare
Related to #532