Skip to content

Conversation

@MrSerth
Copy link
Member

@MrSerth MrSerth commented Feb 7, 2024

Currently, we are in the process of introducing task contributions with #1103. While there is great progress already and a working core, I saw minor possibilities for suggestions. Instead of just making a few incoherent comments, I opted to make these suggestions with dedicated commits and this PR.

While doing so, I also fixed the failing specs, mainly to identify real errors introduced by my changes. Hence, I haven't validated the specs overall, that's still an open topic to double-check.

@florian-str Feel free to have a look and reuse my suggestions. They are just a starting point and might also serve as a foundation for further enhancements. They are designed to help you around, not in any way to minimise your great effort in implementing this important feature.

@MrSerth MrSerth requested a review from florian-str February 7, 2024 22:53
@MrSerth MrSerth self-assigned this Feb 7, 2024
@codecov
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (7e5743d) 85.97% compared to head (12828dd) 86.59%.

Files Patch % Lines
app/controllers/task_contributions_controller.rb 82.35% 6 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##           fs_task_contrib    #1230      +/-   ##
===================================================
+ Coverage            85.97%   86.59%   +0.61%     
===================================================
  Files                  105      105              
  Lines                 2475     2484       +9     
===================================================
+ Hits                  2128     2151      +23     
+ Misses                 347      333      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@florian-str florian-str merged commit b31f150 into fs_task_contrib Feb 8, 2024
@florian-str florian-str deleted the refactor_task_contrib branch February 8, 2024 19:12
florian-str pushed a commit that referenced this pull request Feb 21, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
florian-str pushed a commit that referenced this pull request Mar 10, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
florian-str pushed a commit that referenced this pull request Apr 10, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
florian-str pushed a commit that referenced this pull request Apr 17, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
florian-str pushed a commit that referenced this pull request May 12, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
florian-str pushed a commit that referenced this pull request May 29, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
florian-str pushed a commit that referenced this pull request Jun 12, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
florian-str pushed a commit that referenced this pull request Jun 26, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
florian-str pushed a commit that referenced this pull request Jul 9, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
florian-str pushed a commit that referenced this pull request Jul 10, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
florian-str pushed a commit that referenced this pull request Jul 18, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
MrSerth added a commit that referenced this pull request Sep 2, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
florian-str pushed a commit that referenced this pull request Sep 11, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
MrSerth added a commit that referenced this pull request Oct 2, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
MrSerth added a commit that referenced this pull request Oct 2, 2024
* Remove obsolete translations

* Remove outdated ability specs for TaskContributions

* Add missing path prefix to tasks#show

* Reword task check for redirect_task_contribution

* Use parent object rather than parent_id for tasks

* Drop remaining view for TaskContributions#new

* Refactor TaskContributions and TaskContributionsController

The refactoring aims to move more logic into the model and simultaneously enhance the understandability of the controller.

* Add missing edit? policy for TaskContribution

* Fix updating existing TaskContributions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants