forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
* upstream/master: (26 commits) Take page offset into account too (elastic#54567) [APM] Support error.{log,exception}.stacktrace.classname (elastic#54577) Np migration tsvb route validation (elastic#51850) [ML] MML calculator enhancements for multi-metric job wizard (elastic#54573) [SIEM] Fix Inspect query 'request timestamp' value changes when curso… (elastic#54223) Fix chromeless NP apps not using full page width (elastic#54550) Remove extraneous public import to prevent failing Kibana startup (elastic#54676) [Uptime] Temporarily skip flakey tests (elastic#54675) Skip failing uptime tests Create UI for alerting and actions plugin (elastic#48959) [dev/build/sass] build stylesheets for disabled plugins too (elastic#54654) [SIEM] Use bulk actions API when updating or deleting rules (elastic#54521) Support "Deprecated" label in advanced settings (elastic#54539) [Maps] add text halo color and width style properties (elastic#53827) Service Map Data API at Runtime (elastic#54027) [SIEM] Detection Engine Create Rule Design Review #1 (elastic#54442) Skip flaky test [Canvas] Enable Embeddable maps (elastic#53971) [SIEM][Detection Engine] Increases the number or rules you can view on a single page (elastic#54628) uiSettings - use validation field for image field maxSize (elastic#54522) ...
- Loading branch information
Showing
445 changed files
with
21,327 additions
and
3,099 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
docs/development/core/server/kibana-plugin-server.uisettingsparams.deprecation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [UiSettingsParams](./kibana-plugin-server.uisettingsparams.md) > [deprecation](./kibana-plugin-server.uisettingsparams.deprecation.md) | ||
|
||
## UiSettingsParams.deprecation property | ||
|
||
optional deprecation information. Used to generate a deprecation warning. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
deprecation?: DeprecationSettings; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
docs/development/core/server/kibana-plugin-server.uisettingsparams.validation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [UiSettingsParams](./kibana-plugin-server.uisettingsparams.md) > [validation](./kibana-plugin-server.uisettingsparams.validation.md) | ||
|
||
## UiSettingsParams.validation property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
validation?: ImageValidation | StringValidation; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import { BehaviorSubject } from 'rxjs'; | ||
import { act } from 'react-dom/test-utils'; | ||
import { mount } from 'enzyme'; | ||
import React from 'react'; | ||
|
||
import { AppWrapper, AppContainer } from './app_containers'; | ||
|
||
describe('AppWrapper', () => { | ||
it('toggles the `hidden-chrome` class depending on the chrome visibility state', () => { | ||
const chromeVisible$ = new BehaviorSubject<boolean>(true); | ||
|
||
const component = mount(<AppWrapper chromeVisible$={chromeVisible$}>app-content</AppWrapper>); | ||
expect(component.getDOMNode()).toMatchInlineSnapshot(` | ||
<div | ||
class="app-wrapper" | ||
> | ||
app-content | ||
</div> | ||
`); | ||
|
||
act(() => chromeVisible$.next(false)); | ||
component.update(); | ||
expect(component.getDOMNode()).toMatchInlineSnapshot(` | ||
<div | ||
class="app-wrapper hidden-chrome" | ||
> | ||
app-content | ||
</div> | ||
`); | ||
|
||
act(() => chromeVisible$.next(true)); | ||
component.update(); | ||
expect(component.getDOMNode()).toMatchInlineSnapshot(` | ||
<div | ||
class="app-wrapper" | ||
> | ||
app-content | ||
</div> | ||
`); | ||
}); | ||
}); | ||
|
||
describe('AppContainer', () => { | ||
it('adds classes supplied by chrome', () => { | ||
const appClasses$ = new BehaviorSubject<string[]>([]); | ||
|
||
const component = mount(<AppContainer classes$={appClasses$}>app-content</AppContainer>); | ||
expect(component.getDOMNode()).toMatchInlineSnapshot(` | ||
<div | ||
class="application" | ||
> | ||
app-content | ||
</div> | ||
`); | ||
|
||
act(() => appClasses$.next(['classA', 'classB'])); | ||
component.update(); | ||
expect(component.getDOMNode()).toMatchInlineSnapshot(` | ||
<div | ||
class="application classA classB" | ||
> | ||
app-content | ||
</div> | ||
`); | ||
|
||
act(() => appClasses$.next(['classC'])); | ||
component.update(); | ||
expect(component.getDOMNode()).toMatchInlineSnapshot(` | ||
<div | ||
class="application classC" | ||
> | ||
app-content | ||
</div> | ||
`); | ||
|
||
act(() => appClasses$.next([])); | ||
component.update(); | ||
expect(component.getDOMNode()).toMatchInlineSnapshot(` | ||
<div | ||
class="application" | ||
> | ||
app-content | ||
</div> | ||
`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { Observable } from 'rxjs'; | ||
import useObservable from 'react-use/lib/useObservable'; | ||
import classNames from 'classnames'; | ||
|
||
export const AppWrapper: React.FunctionComponent<{ | ||
chromeVisible$: Observable<boolean>; | ||
}> = ({ chromeVisible$, children }) => { | ||
const visible = useObservable(chromeVisible$); | ||
return <div className={classNames('app-wrapper', { 'hidden-chrome': !visible })}>{children}</div>; | ||
}; | ||
|
||
export const AppContainer: React.FunctionComponent<{ | ||
classes$: Observable<string[]>; | ||
}> = ({ classes$, children }) => { | ||
const classes = useObservable(classes$); | ||
return <div className={classNames('application', classes)}>{children}</div>; | ||
}; |
Oops, something went wrong.