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

Plugins with falsey paths don't get loaded #418

Merged
merged 4 commits into from
Feb 24, 2017

Conversation

kjin
Copy link
Contributor

@kjin kjin commented Feb 24, 2017

This change seeks to introduce not loading a plugin if its path is falsey.

This would make it possible to stop built-in plugins from loading. While we have previously discussed that we don't necessarily know what use cases we are supporting with this, I can name one now: I want to be able to run per-plugin benchmarks, and it would be really neat to isolate a single plugin at a time.

I think falsey is the best approach here because we know for sure that it's not a valid path.

@GoogleCloudPlatform/node-team PTAL.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 24, 2017
@matthewloring
Copy link
Contributor

I'm fine with this as long as there is documentation and testing of this behavior.

@kjin kjin force-pushed the propose-falsey-plugin-paths branch from 0edf679 to 2d89bfd Compare February 24, 2017 21:40
@kjin
Copy link
Contributor Author

kjin commented Feb 24, 2017

@matthewloring I've added both.

Copy link
Contributor

@matthewloring matthewloring left a comment

Choose a reason for hiding this comment

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

LGTM with nit.

config.js Outdated
// merged with this one.
// To disable a plugin in this list, you may override its path with a falsey
// value. Disabling any of the default plugins may cause unwanted behavior,
// so use caution.
// This field is experimental.

This comment was marked as spam.

This comment was marked as spam.

@kjin kjin force-pushed the propose-falsey-plugin-paths branch from 2d89bfd to d16f6d3 Compare February 24, 2017 22:39
@kjin kjin added this to the Beta milestone Feb 24, 2017
@kjin kjin merged commit 9032aea into googleapis:master Feb 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants