Skip to content

[6.x] Migrate base path APIs and UiSettings client to new platform (#22694)#22848

Merged
spalger merged 1 commit intoelastic:6.xfrom
spalger:backport/6.x/pr-22694
Sep 8, 2018
Merged

[6.x] Migrate base path APIs and UiSettings client to new platform (#22694)#22848
spalger merged 1 commit intoelastic:6.xfrom
spalger:backport/6.x/pr-22694

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented Sep 8, 2018

Backports the following commits to 6.x:

…#22694)

Fixes elastic#20697

This PR migrates the base path related methods from `ui/chrome` to `core.basePath` and the uiSettings to `core.uiSettings`. The two are not split into separate PRs because I'm kinda cramped for time right now so rather I split the changes up into two commits so that you can review them separately if you like. If you'd like I can submit them as separate PRs but the basePath PR will block the uiSettings PR either way.

There shouldn't be any API changes except one thing, since the existing implementation is so close to what we'd want from the new platform API I made the one change that is inconsistent with what we've been doing so far and moved `uiSettings.subscribe()` to `uiSettings.getUpdate$().subscribe()`. This method isn't super commonly used, but it is a breaking change that will likely impact plugins so I'll notify some folks if we decide to move forward this way. I can also make a super-light wrapper for angular that just updates this method if you prefer.
@spalger spalger added the backport This PR is a backport of another PR label Sep 8, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@spalger spalger merged commit 0161da8 into elastic:6.x Sep 8, 2018
@spalger spalger deleted the backport/6.x/pr-22694 branch September 8, 2018 10:42
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