Create factory method for TesTask creation #396
Labels
Code Quality Improvements
Make code make code more readable, maintainable, prevent bugs, improve security
good first issue
Good for newcomers
TES Priority: P3
Groomed to a Priority 3 issue
tobegroomed
Add this label while creating new issues to get issues prioritized on the backlog
up for grabs
Available for community contributions. Please ask in the issue if you'd like to implement it
Milestone
Currently, a
TesTask
is manually constructed in theCreateTaskAsync
method in the controller, however it should be created from a factory method that sets the ID and the State. TBD what state should be default - probably "UNKNOWN", but test if this breaks any code paths first.ga4gh-tes/src/TesApi.Web/Controllers/TaskServiceApi.cs
Line 164 in 5d6ce72
The text was updated successfully, but these errors were encountered: