Skip to content

Refactor HistoricalTasks Collections into One#937

Merged
ssalinas merged 1 commit intosearch-tasks-reactfrom
merge-task-history-collections
Mar 14, 2016
Merged

Refactor HistoricalTasks Collections into One#937
ssalinas merged 1 commit intosearch-tasks-reactfrom
merge-task-history-collections

Conversation

@Calvinp
Copy link
Copy Markdown
Contributor

@Calvinp Calvinp commented Mar 7, 2016

The RequestHistoricalTasks, DeployHistoricalTasks and TaskSearch collections were all almost exactly the same (except they hit slightly different endpoints). This refactors them to actually be the same collection.

task.id = task.taskId.id
data

getTasksForDeploy: (deployId) ->
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

didn't see it anywhere, but assuming this method is unused since you didn't reimplement it, is that correct?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Correct. I think anything that would use that were using the DeployHistoricalTasks collection.

And the endpoint to get historical tasks based on a deploy is seemingly unnecessary now that you can get those by using the Task Search endpoint and specifying a deploy id.

ssalinas added a commit that referenced this pull request Mar 14, 2016
Refactor HistoricalTasks Collections into One
@ssalinas ssalinas merged commit 7d30a46 into search-tasks-react Mar 14, 2016
@ssalinas ssalinas deleted the merge-task-history-collections branch March 14, 2016 17:19
@ssalinas ssalinas modified the milestone: 0.4.12 Apr 1, 2016
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