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

[server] use config for default route, include basepath #6953

Merged
merged 1 commit into from
Apr 17, 2016

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Apr 16, 2016

This pr fixes the way the server stores and uses the server.defaultRoute config.

  • Redirect to custom server.defaultRoute configurations include basePath
  • defaultRoute redirects are now validated, they must start with a slash
  • the default server.defaultRoute config is now defined in the config schema

@spalger spalger force-pushed the fix/defaultRouteRedirect branch 2 times, most recently from e0ea88a to d21baca Compare April 16, 2016 22:11
@spalger spalger force-pushed the fix/defaultRouteRedirect branch from d21baca to 5f283d7 Compare April 16, 2016 22:18
@panda01
Copy link
Contributor

panda01 commented Apr 17, 2016

This is Ok, my only thing is can you add something to the kibana.yml with the default and the rules, otherwise I feel this would be a pain to find. Once you do that, this I would say is good to merge, it does work. Conditional LGTM!

@spalger
Copy link
Contributor Author

spalger commented Apr 17, 2016

We explicitly don't document every setting in the kibana.yml in order to keep it slim. They're documented online though

@spalger spalger merged commit 85ebbe5 into master Apr 17, 2016
@spalger spalger deleted the fix/defaultRouteRedirect branch April 18, 2016 09:49
@epixa
Copy link
Contributor

epixa commented May 2, 2016

This is a backwards compatibility break, correct? Anyone that was previously relying on defaultRoute not including the basepath or not requiring a leading slash will need to update their config.

@spalger
Copy link
Contributor Author

spalger commented May 2, 2016

@epixa yeah, I suppose it is

@spalger
Copy link
Contributor Author

spalger commented May 2, 2016

Maybe we should extend the config validation to ensure that the defaultRoute doesn't start with the basePath and fail faster?

@epixa
Copy link
Contributor

epixa commented May 3, 2016

Your call. I just wanted to make sure I labeled it so we could point it out for the stable release.

mistic pushed a commit that referenced this pull request Aug 3, 2023
`85.0.0` ➡️ `85.1.0`

⚠️ The biggest change in this PR by far is the **removal** of several
`EuiFilterSelectItem` CSS classes and styles associated with those
classes. EUI has previously exported component-specific CSS classes for
usage such as `.euiFilterSelect__items`,
`.euiFilterGroup__popoverPanel`, or `.euiAccordionForm`.

❌ **As of our move to CSS-in-JS, we are actively moving away from this
architecture**. The goal is to either provide either a component or prop
directly to you instead of a CSS class. As a reminder, our classNames
are not guaranteed APIs and are subject to change without warning -
should you need to tweak or customize EUI's styling, we strongly
recommend passing in your own `className`.

💬 Moving forward, EUI will attempted to convert any usages of removed
CSS classes and their direct usages in Kibana for you. In most cases,
we'll hopefully be able to take the correct path of using a component or
prop instead. In cases where we cannot or significant/complex changes
are required, we may temporarily convert the CSS to a static CSS-in-JS
usage instead and add a TODO asking the relevant team to address this in
their own time (for example, the deprecation of `EuiFilterSelectItem`
and its conversion to `EuiSelectable`).

## [`85.1.0`](https://github.com/elastic/eui/tree/v85.1.0)

- Updated `EuiComboBox`'s `options` to accept `option.append` and
`option.prepend` props
([#6953](elastic/eui#6953))
- Updated deprecated `.substr()` usages to `.substring()`
([#6954](elastic/eui#6954))
- Updated `EuiInlineEdit`'s read mode button to include a title tooltip,
increasing readability of truncated text
([#6966](elastic/eui#6966))

**Bug fixes**

- Fixed `EuiFilterGroup`'s responsive styles
([#6983](elastic/eui#6983))

**Deprecations**

- Deprecated `EuiFilterSelectItem`; Use `EuiSelectable` instead
([#6982](elastic/eui#6982))

**CSS-in-JS conversions**

- Converted `EuiFilterSelectItem` to Emotion
([#6982](elastic/eui#6982))
- Removed `.euiFilterSelect__items` CSS; Use `EuiSelectable` instead
([#6982](elastic/eui#6982))
- Removed `.euiFilterSelect__note` and `.euiFilterSelect__noteContent`
CSS; Use `EuiSelectableMessage` instead
([#6982](elastic/eui#6982))
- Added `focus.transparency` and `focus.backgroundColor` theme tokens
([#6984](elastic/eui#6984))

---------

Co-authored-by: Cee Chen <constance.chen@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
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.

3 participants