-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Remove browser basePath service, move functionality into browser http service #36611
Conversation
Pinging @elastic/kibana-platform |
bf2f7a9
to
ffe8c34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some structural comments before digging into some of the details
ffe8c34
to
a312ea2
Compare
@joshdover made changes from your review in a312ea2. |
src/core/public/application/capabilities/capabilities_service.tsx
Outdated
Show resolved
Hide resolved
src/core/public/application/capabilities/capabilities_service.tsx
Outdated
Show resolved
Hide resolved
src/core/public/application/capabilities/capabilities_service.test.ts
Outdated
Show resolved
Hide resolved
Haven't re-reviewed yet, but it looks like @restrry has spotted some things I noticed too
a312ea2
to
913b744
Compare
Current commits needing review have been updated in the description. |
d45afbd
to
8f036b5
Compare
💚 Build Succeeded |
cb11b0d
to
7244e40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, have some thoughts on naming, but I'll leave that to you to decide.
b4e736b
to
26f97bf
Compare
💔 Build Failed |
💔 Build Failed |
… to removeBasePath
💚 Build Succeeded |
26f97bf
to
c4dab47
Compare
💔 Build Failed |
💚 Build Succeeded |
… service (elastic#36611) * Remove browser basePath service, move functionality into browser http service * Update generated documentation for removal of browser basePath * Fix type interface for removal of basePath * Split IHttpService into separate setup and start interfaces * Rename appendToBasePath to prependBasePath, rename removeFromBasePath to removeBasePath
…r http service (#36611) (#37387) * Remove browser basePath service, move functionality into browser http service (#36611) * Remove browser basePath service, move functionality into browser http service * Update generated documentation for removal of browser basePath * Fix type interface for removal of basePath * Split IHttpService into separate setup and start interfaces * Rename appendToBasePath to prependBasePath, rename removeFromBasePath to removeBasePath * Fix import of http test setup
Summary
The browser
basePath
service is a pretty small service which only has functionality for the manipulation of Kibana'sbasePath
in order to affect HTTP requests. This patch removes the browserbasePath
service in favor of handling by the browser HTTP service.Commits needing review
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.This was checked for cross-browser compatibility, including a check against IE11Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n supportDocumentation was added for features that require explanation or tutorialsThis was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklistFor maintainers
Dev Docs
The browser
basePath
service is removed in favor of handling by the browserhttp
service. As thebasePath
was used for controlling the route used to make fetch requests, it makes sense to colocate this functionality into the HTTP service.