Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Line protocol #211

Merged
merged 19 commits into from
Jul 7, 2015
Merged

Line protocol #211

merged 19 commits into from
Jul 7, 2015

Conversation

aviau
Copy link
Collaborator

@aviau aviau commented Jul 3, 2015

  • Impement line protocol (new default)
  • Fix UDP writes
  • New epoch parameter for queries

Thanks to @trehn and @ynezz

\cc @ChristopherRabotin @georgijd Any feedback? Would any of you guys want to test?

trehn and others added 12 commits June 21, 2015 12:08
Working again with influxdata/influxdb@246ce61

Signed-off-by: Petr Štetiar <ynezz@true.cz>
…e-protocol

Conflicts:
	tests/influxdb/client_test.py
 * ``if value`` can lead to errors
* Added epoch parameter to ``query``
* Removed test_write_points_with_precision as queries now always
  return nanosecond precision

  See doc:
   > The format of the returned timestamps complies with RFC3339, and
   > has nanosecond precision.
@aviau aviau mentioned this pull request Jul 3, 2015
@@ -96,7 +97,8 @@ def __init__(self,

self._headers = {
'Content-type': 'application/json',
'Accept': 'text/plain'}
'Accept': 'text/plain'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any specific reason for this new line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, this was included in a Formating improvements commit.

Try to return a text aka unicode object from the given data.
"""
if isinstance(data, binary_type):
return data.decode('utf-8', 'replace')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe would it be worth noting in the documentation that the library does a replace when decoding utf-8 since that could be a surprise for some users. Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say make it optional. May be for some users it's going to be helpful if they know that the data they're feeding is not sucessfully processed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll disable it for now. We can add an option later. I'm not sure this is a feature we want.

@geodimm
Copy link
Contributor

geodimm commented Jul 3, 2015

I'm probably going to have an in-depth look at this tommorow with some manual testing :). It looks really nice and clean at first reading.

geodimm and others added 2 commits July 4, 2015 01:37
* Update delete_series query. Instead of an id, it has FROM <series>
  and WHERE <tag>=<value> clauses. Update tests.
* Remove grant_admin_privileges method. Cluster administration
  privileges are granted upon user creation. Remove tests.
* Update create_user method to accept an optional argument to determine
  whether the user should be granted cluster administration privileges.
  Update tests.
* Fix the test_write_check_read test case in the tests against
  a real server.
* Fix revoke_admin_privileges test. It was failing because of the
  grant_admin_privileges method malfunction.
@aviau
Copy link
Collaborator Author

aviau commented Jul 7, 2015

I'm waiting for tests and I'll merge

aviau added a commit that referenced this pull request Jul 7, 2015
@aviau aviau merged commit 815f7f9 into master Jul 7, 2015
@aviau aviau deleted the line-protocol branch July 7, 2015 14:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants