You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When modifying a plugin we can not easily see under which conditions the plugin is executed.
It is difficult to determine before the plugins get loaded which plugins will be necessary for certain event. This is of note as we want to load plugins dynamically and need to know this in advance, without the plugins themselves being loaded.
To change this I am planning to turn current conditional plugin loading into a meta-data that can be evaluated non-sequentially). For example, this:
{name: 'deployment',visible: true,// To show the plugin in the tradle plugins dialogrequiresConf: false,// Configuration required for the plugin to be loadedhooks: [{condition: {isTradle: true},// we put currently distributed "conditions" into a single objectevents: ['message',// on every event of type 'message''resourcestream','deployment:*',// to support .startsWith(...) we need to support patterns'command','scheduler']}]}
This data format externally defined plugins can provide this data-structure as part of the package.json.
The text was updated successfully, but these errors were encountered:
The current plugin mechanism utilizes conditionals like
if (handleMessages)
to determine which plugins need to be loaded and which do not.Example:
mycloud/src/in-house-bot/index.ts
Lines 700 to 702 in d86ae91
This makes two things difficult.
To change this I am planning to turn current conditional plugin loading into a meta-data that can be evaluated non-sequentially). For example, this:
mycloud/src/in-house-bot/index.ts
Lines 792 to 799 in d86ae91
would be turned into configuration like below:
This data format externally defined plugins can provide this data-structure as part of the
package.json
.The text was updated successfully, but these errors were encountered: