Remove dependencies on node and views modules

Created on 19 May 2017, almost 8 years ago
Updated 20 January 2025, 3 months ago

Problem/Motivation

There are some unnecessary dependencies on the node and views modules that have snuck into this module.

Proposed resolution

The dependency on node comes from the access content permission specified in the routing file. Since rating already has its own permissions the voting controller can be refactored to check that permission instead.

The views dependency is trickier, and comes from the vote tab that displays on /node/{node}/results. This can be removed by moving the tab configuration to the view itself, and moving the view to config/optional so it gets installed when views and node are enabled.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

3.1

Component

Code

Created by

🇺🇸United States jhedstrom Portland, OR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024