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

Fix DST issues in 0.9.x #810

Closed
obfuscurity opened this issue Aug 3, 2014 · 9 comments
Closed

Fix DST issues in 0.9.x #810

obfuscurity opened this issue Aug 3, 2014 · 9 comments
Milestone

Comments

@obfuscurity
Copy link
Member

There are a number of DST issues that need to be addressed in 0.9.x before the next release. As mentioned by @brutassed here, he's already fixed a bunch of these in brutasse/graphite-api. These should be easily ported to master and 0.9.x.

Let's use this issue as a catch-all for any discussions around DST fixes.

brutasse/graphite-api@c8854f5
brutasse/graphite-api@a0ae470

Refs #753 #806 #807

@obfuscurity
Copy link
Member Author

Also refs #639

@esc
Copy link
Contributor

esc commented Oct 13, 2014

In case anyone is wondering, the two graphite-api commits need to be backported to fix the three issues.

@deniszh
Copy link
Member

deniszh commented Oct 13, 2014

Hi @esc,
Could you please point to these commits please? :)

@obfuscurity
Copy link
Member Author

@deniszh The two I linked in the original description.

@obfuscurity
Copy link
Member Author

Related, courtesy of @mleinart (with approval to post):

screen shot 2014-10-14 at 2 08 46 pm

@deniszh
Copy link
Member

deniszh commented Oct 16, 2014

Nah, my fix is not working, @mleinart was right :)

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/opt/graphite/webapp/graphite/render/views.py", line 53, in renderView
    (graphOptions, requestOptions) = parseOptions(request)
  File "/opt/graphite/webapp/graphite/render/views.py", line 305, in parseOptions
    startTime = min(fromTime, untilTime)
TypeError: can't compare offset-naive and offset-aware datetimes

It seems time handling in Flask is much better, or @brutasse also fix this in different way...

@brutasse
Copy link
Member

@deniszh there were 2 commits in graphite-api. The first one was incomplete, make sure you take both into account.

@deniszh
Copy link
Member

deniszh commented Oct 17, 2014

Hm. It's working now, but not sure if I patched fetchData() right. @brutasse, could you please check ?

@deniszh
Copy link
Member

deniszh commented Oct 17, 2014

More fixes after @brutasse advices. Will port to master w/proper testing today or on weekend.

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

No branches or pull requests

4 participants