Added support for filtering by unused parameter for HeapMemoryTaskStorage#6510
Conversation
Guadrado
commented
Oct 24, 2018
- added support for unused DateTime start parameter in getRecentlyFinishedTaskInfoSince method:
- to fix it DateTime modifiedDate field added to TaskStuff class
- withStatus method call creates new TaskStuff with new status and current modifiedDate
- TaskStuff list stream return elements, which status is complete and modified Datetime is after start DateTime
- added filtering by status complete to TaskStuff list stream in getNRecentlyFinishedTaskInfo method.
|
Hi @Guadrado thank you for the contribution! Even though the javadoc of In |
|
Hi @jihoonson! Thank you for comment! I completely agree with you, that all implementations of Now i see two ways:
|
|
@Guadrado thanks for the detailed comment! I think |
|
@jihoonson OK. Thank you for response! Could you tell me how I can add appropriate changes of |
|
@Guadrado I think it's fine to update this PR. Thanks! |
20b1477 to
ced0f7d
Compare
784041b to
80a2684
Compare
80a2684 to
f844573
Compare
|
@Guadrado sorry for delayed review. The latest change looks good to me. Would you please fix the conflict? |
@jihoonson, yes, of course. |
42eb3b8 to
4ab89b8
Compare
|
…nishedTaskInfoSince method: HeapMemoryTaskStorage.getRecentlyFinishedTaskInfoSince return the finished tasks by comparing TaskStuff.createdDate with the start time 2. added filtering by status complete to TaskStuff list stream in HeapMemoryTaskStorage.getNRecentlyFinishedTaskInfo method. 3. changed names of methods and parameters to present that public API method OverlordResource.getTasks return the list of completed tasks, which createdDate, not date of completion, belongs to the interval parameter.
…nishedTaskInfoSince method: HeapMemoryTaskStorage.getRecentlyFinishedTaskInfoSince return the finished tasks by comparing TaskStuff.createdDate with the start time 2. added filtering by status complete to TaskStuff list stream in HeapMemoryTaskStorage.getNRecentlyFinishedTaskInfo method. 3. changed names of methods and parameters to present that public API method OverlordResource.getTasks return the list of completed tasks, which createdDate, not date of completion, belongs to the interval parameter.
4ab89b8 to
b97e703
Compare
|
@Guadrado thank you! I'm merging this PR shortly. |
|
I also changed the title to be more clear. |
@jihoonson thank you for your help! |