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

Allow base path to be influenced by the current request #23367

Closed
wants to merge 4 commits into from

Conversation

legrego
Copy link
Member

@legrego legrego commented Sep 20, 2018

This PR is the extraction of the base path work required to enable Spaces.

This exposes two new functions on the HAPI request object:

getBasePath - Returns the concatanation of server.basePath + the request specific basePath, if set. Otherwise, the server.basePath is returned unmodified.

setBasePath - Sets the request specific basePath. The value provided is concatenated with the server basepath to obtain the full base path for Kibana.

@legrego legrego added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! labels Sep 20, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elastic elastic deleted a comment from elasticmachine Sep 20, 2018
@legrego
Copy link
Member Author

legrego commented Sep 20, 2018

@spalger as requested, here's the request.getBasePath() work extracted out of spaces-phase-1 for easier review

@legrego legrego requested a review from spalger September 20, 2018 19:28
@epixa epixa self-requested a review September 21, 2018 20:30
@epixa
Copy link
Contributor

epixa commented Sep 21, 2018

I assigned myself to this in case @spalger doesn't get to it

@kobelb
Copy link
Contributor

kobelb commented Oct 1, 2018

We should be able to close this out, as the spaces-phase-1 branch brought these changes along.

@legrego legrego closed this Oct 1, 2018
@legrego legrego deleted the request-base-path branch April 29, 2019 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants