Problem/Motivation

The current paths to discover xray plugins are:

  • Plugin/tasks
  • Plugin/groups

This means that if module wants to add a new Report it should be placed at:

  • modulename/src/Plugin/groups
  • modulename/src/Plugin/tasks

But the right place would be:

  • modulename/src/Plugin/xray_audit/groups
  • modulename/src/Plugin/xray_audit/tasks

Proposed resolution

Change the routes.

Remaining tasks

Do it.

User interface changes

None.

API changes

Modules implementing xray audit reports should change its route. However, because this module is ver new it is unlikely there are already modules suing this.

Issue fork xray_audit-3355456

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tunic created an issue. See original summary.

lpeidro made their first commit to this issue’s fork.

lpeidro’s picture

Assigned: tunic » lpeidro

Thanks @tunic, I start working in this issue.

lpeidro’s picture

Assigned: lpeidro » Unassigned
Status: Active » Needs review

The routes of the plugins files have been changed properly.
After update the code it is needed to clear the caches to regenerate the cache with the new roots.
Ready for testing.

Manoj Raj.R’s picture

Status: Needs review » Reviewed & tested by the community

Reviewed and looks good to me.

Can be moved to RTBC.

tunic’s picture

Works ok, I've created a dummy report in other module and it is located and displayed o the Xray interface.

  • tunic committed f117fc73 on 1.1.x
    Issue #3355456: Missing module name in plugins
    
tunic’s picture

Status: Reviewed & tested by the community » Fixed
tunic’s picture

lpeidro’s picture

Status: Fixed » Closed (fixed)