-
Notifications
You must be signed in to change notification settings - Fork 841
Refactor MarathonScheduler.newTask #937
Comments
The TODO comment was removed in #936 (646e0fd#diff-f4e1dabbf63bd911572e1049fad204f7L292) but the optimization / cleanup remains. |
@ConnorDoyle I found https://github.com/mesosphere/marathon/blob/master/src/main/scala/mesosphere/marathon/MarathonSchedulerActor.scala#L500-L516 as well. Does that need to be removed? Doesn't seem like anything is calling it, but not sure if I am understanding. |
TODO has been removed. |
So, closing this signifies that the problem won't be fixed? |
I just noticed that the method was gone so that the issue text didn't make sense anymore. That was a mistake. Sorry. We are a bit overwhelmed with the long issue list and tried to remove the issues that are already done. Thanks for getting back to us about that. I created a PR for this. I would appreciate your review since you brought this issue up. Generally, I think it is not helpful creating issues for internal style issues which are that easily fixed without following up very soon. Otherwise our issues list will grow very long and that results in accumulated overhead in planning. But I know that one can easily disagree about this. |
Thanks Peter, reviewing now. |
Fixes #937 - TaskFactory.newTask should return an Option of a case class
There is a long-standing TODO in the in-line comments to fix the return value of this method. It currently returns an anonymous tuple wrapped in an option.
The text was updated successfully, but these errors were encountered: