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

TIMOB-9823 Apidocs: make sure that a derived "since" version value is not earlier... #2711

Merged
merged 1 commit into from Aug 9, 2012
Merged

Conversation

billdawson
Copy link
Contributor

... than a parent's since value.

Example: it wouldn't make sense for a method to be since 0.9 if the type itself is only since 2.1.0.

See JIRA

…ier than a parent's since value.

Example: it wouldn't make sense for a method to be since 0.9 if the type itself is only since 2.1.0.
@arthurevans
Copy link
Contributor

Will CR/FR.

for parent_entry in parent.platforms:
if parent_entry["name"] == platform_name:
parent_version_parts = parent_entry["since"].split(".")
if parent_version_parts > version_parts:
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't know you could do this in python. That is just insanely handy.

@arthurevans
Copy link
Contributor

CR/FR passed, Accepted.

arthurevans pushed a commit that referenced this pull request Aug 9, 2012
TIMOB-9823 Apidocs: make sure that a derived "since" version value is not earlier...
@arthurevans arthurevans merged commit 264a7a2 into tidev:master Aug 9, 2012
@billdawson
Copy link
Contributor Author

It's funny, every time I use that comparison-of-lists-with-string-numbers-in-them, I don't believe it myself either. :) I end up dropping in to the python shell and trying edge cases to see if it really does work.

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.

None yet

2 participants