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

Settings sections registry #6077

Merged
merged 8 commits into from
Feb 4, 2016

Conversation

lukasolson
Copy link
Member

This PR creates a new registry, settings_sections, and switches over the existing settings sections to register themselves. This also allows plugins to register their own settings sections.

Closes #6016.

@@ -13,10 +13,10 @@ define(function (require) {
$scope.buildSha = buildSha;
});

return {
registry.register(() => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a fan of this syntax. I personally think it's a lot more readable as:

() => {
  return {
    // ...
  };
}

@spalger
Copy link
Contributor

spalger commented Feb 3, 2016

This is awesome, nice work @lukasolson.

@spalger spalger assigned lukasolson and unassigned spalger Feb 3, 2016
@w33ble
Copy link
Contributor

w33ble commented Feb 4, 2016

I don’t think About should be Infinity, we should allow users to inject after it. Setting it to 1001 is sufficient.

Otherwise, LGETM

lukasolson added a commit that referenced this pull request Feb 4, 2016
@lukasolson lukasolson merged commit f97f714 into elastic:master Feb 4, 2016
@lukasolson lukasolson deleted the plugin-settings-sections branch February 11, 2016 18:20
epixa added a commit that referenced this pull request Jun 6, 2016
@epixa epixa added the v4.6.0 label Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants