Skip to content

Cleaned up ProjectController, introduced Project.Query#934

Merged
begedin merged 1 commit intodevelopfrom
cleanup-project-controller-add-project-query
Sep 14, 2017
Merged

Cleaned up ProjectController, introduced Project.Query#934
begedin merged 1 commit intodevelopfrom
cleanup-project-controller-add-project-query

Conversation

@begedin
Copy link
Copy Markdown
Contributor

@begedin begedin commented Sep 14, 2017

I approved and merged #933 because the changed seemed perfectly fine (and they were), while the tests were passing.

However, post-merge, I got a couple of compiler warnings and realized the merge introduced a bug due to different ordering of ProjectController actions. The test that was supposed to fail was passing due to missing a key assertion.

In order to resolve it in a clean way, I rewrote the test, then proceeded to collapse the multiple function clauses in the controller into one and extracted data loading for the actions into a Project.Query module, which follows a similar approach to the one I'm implementing with tasks in #805

@begedin begedin force-pushed the cleanup-project-controller-add-project-query branch from a628d9c to 935a415 Compare September 14, 2017 14:31
@begedin begedin merged commit 8cd7bf9 into develop Sep 14, 2017
@begedin begedin deleted the cleanup-project-controller-add-project-query branch September 14, 2017 14:42
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.

1 participant