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

Add UiSettings validation & Kibana default route redirection #59694

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b20ecc7
add schema to ui settings params
mshustov Mar 9, 2020
7e46aef
add validation for defaults and overrides
mshustov Mar 9, 2020
5b55b83
validate in ui settings client
mshustov Mar 9, 2020
19dae10
ui settings routes validation
mshustov Mar 9, 2020
012a715
clean up tests
mshustov Mar 9, 2020
cc96364
use schema for defaultRoutes
mshustov Mar 9, 2020
269e34e
move URL redirection to NP
mshustov Mar 9, 2020
f2b2dea
fix spaces test
mshustov Mar 10, 2020
39e7405
Merge branch 'master' into issue-50658-default-route-redirection
mshustov Mar 10, 2020
b736ada
update docs
mshustov Mar 10, 2020
b01a668
update kbn pm
mshustov Mar 10, 2020
5518bd0
fix karma test
mshustov Mar 10, 2020
7a5a354
fix tests
mshustov Mar 10, 2020
850d78c
address comments
mshustov Mar 10, 2020
a7d0100
get rid of getDEfaultRoute
mshustov Mar 10, 2020
8ec9103
Merge branch 'master' into issue-50658-default-route-redirection
mshustov Mar 10, 2020
b21efe2
Merge branch 'master' into issue-50658-default-route-redirection
mshustov Mar 11, 2020
cb40a2b
regen docs
mshustov Mar 11, 2020
2f8f956
fix tests
mshustov Mar 11, 2020
f17a82f
fix enter-spaces test
mshustov Mar 11, 2020
6b5f699
validate on relative url format
mshustov Mar 11, 2020
9856d0b
update i18n
mshustov Mar 11, 2020
6e389a6
Merge branch 'master' into issue-50658-default-route-redirection
mshustov Mar 11, 2020
84e3e5a
fix enter-spoace test
mshustov Mar 11, 2020
c72b5cc
Merge branch 'master' into issue-50658-default-route-redirection
mshustov Mar 12, 2020
ed8a9a9
move relative url validation to utils
mshustov Mar 12, 2020
1036d77
add CoreApp containing application logic
mshustov Mar 12, 2020
075fe07
extract public uiSettings params in a separate type
mshustov Mar 12, 2020
3b8ad0c
make schema required
mshustov Mar 12, 2020
57c9aef
Merge branch 'master' into issue-50658-default-route-redirection
mshustov Mar 12, 2020
2ad3292
Merge branch 'master' into issue-50658-default-route-redirection
mshustov Mar 16, 2020
400a167
update docs
mshustov Mar 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/kbn-pm/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43920,7 +43920,7 @@ class KbnClientUiSettings {
* Replace all uiSettings with the `doc` values, `doc` is merged
* with some defaults
*/
async replace(doc) {
async replace(doc, { retries = 5 } = {}) {
this.log.debug('replacing kibana config doc: %j', doc);
const changes = {
...this.defaults,
Expand All @@ -43935,7 +43935,7 @@ class KbnClientUiSettings {
method: 'POST',
path: '/api/kibana/settings',
body: { changes },
retries: 5,
retries,
});
}
/**
Expand Down
Loading