feat: completion of parent task will mark subtasks as done #116
Conversation
Added user configuration handling to the task service and updated task completion logic to preload subtasks.
haha yea refactoring has been one of the things I've been putting off just because. idk. I like your thoroughness @jakubdomanski . Based on your couple propositions:
Feel free to comment on the ones you want to work on, I'll leave them alone :P |
|
Ad 5. Dependency injection will allow to test this better e.g. injecting logger instead of using Ad 6. Repository pattern - Only business logic will live in service and rest will be injected with appropriate interfaces. |
|
|
|
Sounds good @jakubdomanski. Thanks again! The gh action workflow needed approval on fork branch (for first time contribution). That's it. |
|
the test issue should be fixed and in main |
|
done, |
Closes: #111
Soooo, I've implemented subtask completion when parent task is completed. That's the good part.
Too much code needed change to be more readible, so i made the change and didn't refactored anything.
Maybe let's talk about this here? You can move some to issues, and i can work on some.
My proposition:
func NewService(db *gorm.DB, uc *config.UserConfig) *Service {.e.g.
vs
Dependency Injection.
Repository pattern for separation of duties, now task have share db and business logic.
Broken tests on fresh fork
make test(without any changes)That's all for now.