Skip to content
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

Migrate from dicts to classes #46

Closed
wants to merge 2 commits into from

Conversation

rubenvp8510
Copy link
Contributor

Fixes #8, I'm not sure if this is will be done or not, but I did it, my main concern here is backward compatibility.


def push(self, metric_type, metric_id, value, timestamp=None):
"""
Pushes a single metric_id, datapoint combination to the server.

http://forums.thefashionspot.com/f96/tall-models-30100-26.htmladriana lima muy alta
Copy link
Contributor

Choose a reason for hiding this comment

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

;)

@burmanm
Copy link
Contributor

burmanm commented May 31, 2017

I'm not sure why all the old methods should be deleted, they could remain there still (for backwards compatibility) and only map to the newer methods. At the same time we could fix the newer APIs to allow for example easier use of tagNames with dot in them.

@rubenvp8510
Copy link
Contributor Author

Ok, that could work

@rubenvp8510
Copy link
Contributor Author

I added a flag for switch between objects and dictionaries because most of the changes were in return values (return objects instead of dictionaries), Also added tests for it...

WDYT?

@rubenvp8510
Copy link
Contributor Author

Also, I'm not sure if this solves #42 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants