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

[dev/server] ignore irrelevant changes in plugins #11884

Merged
merged 3 commits into from
May 19, 2017

Conversation

spalger
Copy link
Contributor

@spalger spalger commented May 17, 2017

The dev server is currently watching all directories within plugins and scanDirs that don't match

/[\\\/](\..*|node_modules|bower_components|public|__tests__|coverage)[\\\/]/

This pr adds to that list and excludes the test, build, target, scripts and docs directories when they are at the root of a plugin.

@spalger spalger added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc dev v5.5.0 v6.0.0 labels May 17, 2017
@spalger spalger requested review from epixa and jbudz May 17, 2017 23:20
...settings.plugins.paths,
...settings.plugins.scanDirs,
],
[
Copy link
Member

Choose a reason for hiding this comment

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

do we want to remove the outer array here? i don't think the ignore param expects a nested array

Copy link
Member

@jbudz jbudz May 18, 2017

Choose a reason for hiding this comment

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

is it worth ignoring __test__ too?

Copy link
Contributor

Choose a reason for hiding this comment

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

@jbudz I think __tests__ is covered already in the regex below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, it does, oddly enough, but that wasn't intended

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is it worth ignoring test too?

Yeah, __tests__ directories are ignored at any level

@spalger spalger merged commit c2ccab8 into elastic:master May 19, 2017
spalger added a commit that referenced this pull request May 19, 2017
* [dev/server] ignore changes in test,build,scripts,docs dirs at root of plugins

* [dev/clusterManager] unwrap extra ignore paths

(cherry picked from commit c2ccab8)
@spalger
Copy link
Contributor Author

spalger commented May 19, 2017

5.x/5.5: 2d4e8fa

@spalger spalger deleted the fix/ignore-irrelevant-plugin-changes branch May 19, 2017 02:32
snide pushed a commit to snide/kibana that referenced this pull request May 30, 2017
* [dev/server] ignore changes in test,build,scripts,docs dirs at root of plugins

* [dev/clusterManager] unwrap extra ignore paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v5.5.0 v6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants