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

Handle indexes with no default #7588

Merged
merged 1 commit into from
Jun 29, 2016

Conversation

tylersmalley
Copy link
Contributor

It's possible to add indexes to Kibana without specifying one as the default.

Previously we were re-using the edit index route, allowing for the id to be optional. If it was not specified, we used the defaultIndex. To handle redirecting to the create index route, we would need to throw an exception to prevent the route from rendering.

Instead, this creates a new route for the landing page, which redirects to the defaultIndex or the edit index page respectively.

Closes #7563

It's possible to add indexes to Kibana without specifying one as the default.

Previously we were re-using the edit index route, allowing for the id to be optional. If it was not specified, we used the defaultIndex. To handle redirecting to the create index route, we would need to throw an exception to prevent the route from rendering.

Instead, this creates a new route for the landing page, which redirects to the defaultIndex or the edit index page respectively.

Signed-off-by: Tyler Smalley <[email protected]>
@Bargs
Copy link
Contributor

Bargs commented Jun 29, 2016

LGTM

@ycombinator
Copy link
Contributor

LGTM 2

@tylersmalley tylersmalley merged commit a97184d into elastic:master Jun 29, 2016
@epixa epixa added v5.0.0 and removed v5.0.0 labels Aug 1, 2016
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
Handle indexes with no default

Former-commit-id: a97184d
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