8000 Support explicit ordering for Tags by jroweboy · Pull Request #2048 · springfox/springfox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support explicit ordering for Tags #2048

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

Merged
merged 1 commit into from
Sep 27, 2017
Merged

Conversation

jroweboy
Copy link

Adds support for explicitly ordering Tags when manually adding tags to a Docket

This code addresses issue #1900 and is based heavily off rainoko's code that was linked in the issue. A unit test was added to show that ordering tags should be ordered first based on priority and second by name. In order to support a second sorting order, the comparator is kept around, even though tags implement Ordered now.

(In other news, I don't know if this has been reported, but running the gradle tests on windows doesn't work if you have configured git to pull with windows line endings and push with unix line endings. This is because the test cases often compare multiline strings and they will fail because of the added \r thanks to windows line endings.)

@codecov
Copy link
codecov bot commented Sep 22, 2017

Codecov Report

Merging #2048 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #2048      +/-   ##
============================================
+ Coverage     95.77%   95.77%   +<.01%     
- Complexity     2730     2732       +2     
============================================
  Files           317      317              
  Lines          5988     5993       +5     
  Branches        494      495       +1     
============================================
+ Hits           5735     5740       +5     
  Misses          146      146              
  Partials        107      107

@dilipkrish dilipkrish added this to the 2.8.0 milestone Sep 27, 2017
@dilipkrish
Copy link
Member

@jroweboy Thanks this is awesome!

@dilipkrish dilipkrish merged commit 2f2c0c6 into springfox:master Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0