-
Notifications
You must be signed in to change notification settings - Fork 24
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
Be able to hide create / append anything behind a feature toggle #236
Comments
@smbea Alternative to 30d7603 would be to filter out the entire module, based on the provided option: CustomModeler.getModule = function(options) {
const modules = super.getModules(options);
if (options.connectorsExtension?.appendAnything === false) {
modules = modules.without(CreateAppendAnythingModule);
}
return modules;
}; The third option would be to push an additional module that overrides named services exported by the module to empty stubs. |
Wouldn't that first option mean having a new custom Modeler, that would need to be used instead of the Cloud Modeler? Not sure if I understood correctly |
The first option would mean:
If we want to go this route we need to extend the existing |
I redid this with 805318d. It follows what we do for Maybe it's not exactly what you were mentioning but I think it achieves the same thing - don't add the module completely. Wdyt? |
Good one. |
My confusion was because |
The inheritance chain looks like this:
So any improvement in |
What should we do?
The connectors extension uses
connectorsExtension.appendAnything=false
to not show it. We could simply re-use that flag:Why should we do it?
This allows us to roll it out across our toolstack in a safe manner.
The text was updated successfully, but these errors were encountered: