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

[CDAP-8075] Adds ability to interpret Version Ranges for CDAP UI #7607

Merged
merged 1 commit into from Jan 20, 2017

Conversation

elfenheart
Copy link
Contributor

}

// All numerical part of the version are the same, compare the suffix.
// A special case is no suffix is "greater" than with suffix. This is usually true (e.g. release > snapshot)
Copy link
Contributor

Choose a reason for hiding this comment

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

This might not be true right? 4.0.0 is not greater than 4.1.0-SNAPSHOT? Or am I missing something here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

4.0.0 would have been returned as less than 4.1.0 because of the minor comparison before this line. This line will simply compare 4.0.0 with 4.0.0-SNAPSHOT.

The comparisons in order:

  1. Major
  2. Minor
  3. Fix
  4. Suffix

@ajainarayanan
Copy link
Contributor

🎉 on Unit tests 💯

@ajainarayanan
Copy link
Contributor

👍 LGTM

@elfenheart
Copy link
Contributor Author

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