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

Milestone Picker: previous and new milestone should not be the same #1487 #1488

Merged
merged 3 commits into from
Apr 9, 2016

Conversation

m133225
Copy link
Contributor

@m133225 m133225 commented Apr 6, 2016

Fixes #1487

@m133225 m133225 force-pushed the 1487-different-suggested-milestone branch 4 times, most recently from 0433851 to 2c8a0fc Compare April 7, 2016 05:08
@m133225
Copy link
Contributor Author

m133225 commented Apr 7, 2016

Ready for review.

@@ -273,6 +275,12 @@ private void addMatchingMilestones(List<PickerMilestone> milestonesToBePopulated
.findFirst();
}

private List<PickerMilestone> getSelectableMilestones(List<PickerMilestone> milestones) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Will need a header comment here. What is Selectable and how is it defined? I didn't understand right away why is it selectable by reading the method body.

If it is difficult to write a header comment that is not tied to implementation, maybe renaming the method works better.

@m133225
Copy link
Contributor Author

m133225 commented Apr 8, 2016

@HansNewbie Made the changes.

}

/**
* Fills the input field of milestone picker dialog with default milestone's title
* Fills the input field of milestone picker dialog with best suggested milestone's name
Copy link
Contributor

Choose a reason for hiding this comment

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

Either use sugested or best matching. best suggested sounds weird.

@m133225 m133225 force-pushed the 1487-different-suggested-milestone branch 2 times, most recently from 32aaeda to 3814c8c Compare April 9, 2016 06:39
… assigned milestone. MilestonePickerDialog will simply fill its textfield with the best suggested milestone name.
@m133225 m133225 force-pushed the 1487-different-suggested-milestone branch from 3814c8c to de7055a Compare April 9, 2016 13:00
@m133225
Copy link
Contributor Author

m133225 commented Apr 9, 2016

@HansNewbie Made the changes and added a test.

@HansNewbie
Copy link
Contributor

Looks good.

Travis failed was not related to this PR, restarted it.

@HansNewbie
Copy link
Contributor

@m133225 Can merge.

@m133225 m133225 merged commit de7055a into HubTurbo:master Apr 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants