Skip to content
This repository has been archived by the owner on Feb 1, 2018. It is now read-only.

Bug891815 crashes per buildid uses current page #427

Conversation

rhelmer
Copy link
Contributor

@rhelmer rhelmer commented Jul 16, 2013

No description provided.

version=versions)
for build in builds:
os_name = build['platform']
build_date = datetime.datetime.strptime(str(build['buildid']),
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the point of this?
Can you just do: buildid = str(build['buildid'])[:8] and get the exact same result?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I considered that, but if the buildid was somehow mangled or not what we expected it'd be wrong and there'd be no indication of that. Throwing an exception isn't exactly friendly though - I think maybe catching exceptions and falling back to showing the full untruncated build ID would be best. Do you think this is worth it?

@peterbe
Copy link
Contributor

peterbe commented Jul 16, 2013

r+ with nits with disclaimer of lack-of-understanding-the-full-context-and-problem.

rhelmer added a commit that referenced this pull request Jul 16, 2013
…es-current-page

Bug891815 crashes per buildid uses current page
@rhelmer rhelmer merged commit 0a15e63 into mozilla:master Jul 16, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants