Skip to content

[7.x] Enforce camelCase format for a plugin id (#53759)#55270

Merged
mshustov merged 1 commit intoelastic:7.xfrom
mshustov:backport/7.x/pr-53759
Jan 18, 2020
Merged

[7.x] Enforce camelCase format for a plugin id (#53759)#55270
mshustov merged 1 commit intoelastic:7.xfrom
mshustov:backport/7.x/pr-53759

Conversation

@mshustov
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

* add isCamelCase  function

* add a warning if id is not in camelCase

* document pluginId expected in camelCase

* regen docs

* add a test for logging

* update tests. warn can be called several times for different reasons

* pluginPath falls back to plugin id in snake_case

* update tests

* update docs

* add example with id & configPath different formats

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@mshustov mshustov added the backport This PR is a backport of another PR label Jan 18, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@mshustov mshustov merged commit 666eda0 into elastic:7.x Jan 18, 2020
@mshustov mshustov deleted the backport/7.x/pr-53759 branch January 18, 2020 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants