Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the mechanism that loads the plugins into memory to consider the type of the plugin in addition to its name #5737

Merged
merged 5 commits into from Jan 30, 2020

Conversation

carlosrfranco
Copy link
Contributor

@carlosrfranco carlosrfranco commented Jan 28, 2020

This changes is a bugfix for https://github.com/rundeckpro/rundeckpro/issues/849

Is this a bugfix, or an enhancement? Please describe.
This changes fixes a wrong behaviour that did not allow plugins of different types to have the same provider name

Describe the solution you've implemented
Was changed the way that the plugins is registered into registryMap and loaded in memory. So now it is using the type in addition to name provider on the registryMap

@carlosrfranco carlosrfranco self-assigned this Jan 28, 2020
@mergify mergify bot added the 3.2.x label Jan 28, 2020
@carlosrfranco carlosrfranco added this to the 3.2.2 milestone Jan 28, 2020
@gschueler gschueler added the backport-to-3.1 (bot: creates backport pr for 3.1) label Jan 28, 2020
Copy link
Member

@gschueler gschueler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also change the resources.groovy where several plugin beans are defined in the registry map directly, see:
https://github.com/rundeck/rundeck/blob/master/rundeckapp/grails-app/conf/spring/resources.groovy#L392-L400

e.g. change pluginRegistry['db']='dbStoragePluginFactory' to pluginRegistry['Storage:db']='dbStoragePluginFactory'

@ltamaster ltamaster modified the milestones: 3.2.2, 3.2.3 Jan 28, 2020
@jtobard jtobard modified the milestones: 3.2.3, 3.2.2 Jan 30, 2020
@carlosrfranco carlosrfranco merged commit 5d80bbc into rundeck:master Jan 30, 2020
@carlosrfranco carlosrfranco deleted the load-plugin-issue-pro-849 branch January 30, 2020 19:19
@ProTip ProTip removed the 3.2.x label Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-3.1 (bot: creates backport pr for 3.1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants