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

Allow Version in ordering filters #1198

Merged
merged 11 commits into from
Nov 18, 2019
Merged

Conversation

dmitrykuzmin
Copy link
Contributor

@dmitrykuzmin dmitrykuzmin commented Nov 15, 2019

This PR adds io.spine.core.Version to the types that can be used in the ordering filters ("greater than", "less than or equals", etc.).

It is reasonable because in most storages, including our own ones, the Version instances are mapped to values which can be reasonably ordered.

Spine version advances to 1.2.4.

Renamed `Signal.typeUrl()` -> `Signal.enclosedTypeUrl()` to avoid
clash with the `KnownMessage.typeUrl()`.
@dmitrykuzmin dmitrykuzmin self-assigned this Nov 15, 2019
@dmitrykuzmin dmitrykuzmin changed the title Allows Version in ordering filters Allow Version in ordering filters Nov 15, 2019
@codecov
Copy link

codecov bot commented Nov 15, 2019

Codecov Report

Merging #1198 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #1198      +/-   ##
============================================
+ Coverage     91.38%   91.41%   +0.03%     
- Complexity     4232     4235       +3     
============================================
  Files           547      547              
  Lines         13189    13190       +1     
  Branches        749      750       +1     
============================================
+ Hits          12053    12058       +5     
+ Misses          898      896       -2     
+ Partials        238      236       -2

@dmitrykuzmin dmitrykuzmin requested a review from armiol November 15, 2019 16:28
@dmitrykuzmin
Copy link
Contributor Author

@armiol PTAL.

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@dmitrykuzmin LGTM, but please be careful with the versioning. Make sure it's going to be an increment.

…into version-in-ordering-filters

� Conflicts:
�	license-report.md
�	pom.xml
�	server/src/main/java/io/spine/system/server/TraceEventObserver.java
�	version.gradle
@dmitrykuzmin dmitrykuzmin merged commit dca1fa9 into master Nov 18, 2019
@dmitrykuzmin dmitrykuzmin deleted the version-in-ordering-filters branch November 18, 2019 19:07
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