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

Reload all repo plugins when updating a repo #1521

Merged
merged 2 commits into from
Jul 12, 2021
Merged

Conversation

bboe
Copy link
Contributor

@bboe bboe commented Jul 10, 2021

get_plugin_by_path would only return the first plugin encountered in a
repository. This change adds the method get_plugins_by_path which yields
plugins as they are found.

For backwards compatibility, I have not deleted the original
get_plugin_by_path method, lest anyone use that method directly outside of
this package.

@sijis
Copy link
Contributor

sijis commented Jul 11, 2021

Is this reloading all the plugins found in a specific repo or is it reloading all the plugins loaded in errbot?

@bboe
Copy link
Contributor Author

bboe commented Jul 11, 2021

Just the ones in a specific repository

@sijis
Copy link
Contributor

sijis commented Jul 11, 2021

So in this scenario, a repo has multiple plugins in it, correct?

@bboe
Copy link
Contributor Author

bboe commented Jul 11, 2021

So in this scenario, a repo has multiple plugins in it, correct?

Yes, that's correct. In my case, multiple .plug files in the root of the repository.

bboe and others added 2 commits July 11, 2021 22:36
`get_plugin_by_path` would only return the first plugin encountered in a
repository. This change adds the method `get_plugins_by_path` which yields
plugins as they are found.

For backwards compatibility, I have not deleted the original
`get_plugin_by_path` method, lest anyone use that method directly outside of
this package.
@sijis sijis merged commit 574f66d into errbotio:master Jul 12, 2021
@sijis
Copy link
Contributor

sijis commented Jul 12, 2021

Thank you for these fixes.

@bboe bboe deleted the patch-2 branch July 12, 2021 05:03
sijis added a commit that referenced this pull request Jun 11, 2022
* Reload all plugins in a repo

`get_plugin_by_path` would only return the first plugin encountered in a
repository. This change adds the method `get_plugins_by_path` which yields
plugins as they are found.

For backwards compatibility, I have not deleted the original
`get_plugin_by_path` method, lest anyone use that method directly outside of
this package.

* docs: Add fixes to CHANGES

Co-authored-by: Sijis Aviles <[email protected]>
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.

2 participants