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

✨ Feat: automatically configure plugins beforehand and provide them a settings object #6416

Open
Millefeuille42 opened this issue Mar 25, 2024 · 0 comments
Labels
backend issue related to backend developpement /apps feature This issue describes a new feature

Comments

@Millefeuille42
Copy link
Member

Feature description

Currently, plugins have access to the configurator, and thus the CFG object.
While this permits proper -- per tracim's standards -- configuration, this is not enforced.

We should provide a mechanism that will automatically acquire settings of the plugins through the CFG object and provide them a settings object.

How it works

We could acquire specific attributes in the plugin's class instance
like __name__, config_map or such fields to automatically define it's configuration namespace

We also could enforce that plugins inherits a class that enforces specific attributes and methods that we will use for each loaded plugin.

Related PR

No response

@Millefeuille42 Millefeuille42 added backend issue related to backend developpement /apps feature This issue describes a new feature labels Mar 25, 2024
@Millefeuille42 Millefeuille42 added this to Issue to review in Tracim v4.9.0 Mar 25, 2024
@floreal15 floreal15 removed this from Issue to review in Tracim v4.9.0 Apr 25, 2024
@floreal15 floreal15 added this to Issue to review in Tracim v4.10.0 Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend issue related to backend developpement /apps feature This issue describes a new feature
Projects
Status: Issue to review
Tracim v4.10.0
Issue to review
Development

No branches or pull requests

1 participant