-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Do not register SO in the legacy platform #66203
Changes from 4 commits
a9ea1a9
ea615e1
ab9c904
332deb2
8c519e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"id": "timelion", | ||
"version": "0.0.1", | ||
"kibanaVersion": "kibana", | ||
"configPath": "timelion", | ||
"ui": false, | ||
"server": true | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* 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 { PluginInitializerContext } from 'src/core/server'; | ||
import { TimelionPlugin } from './plugin'; | ||
|
||
export const plugin = (context: PluginInitializerContext) => new TimelionPlugin(context); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* 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 { CoreSetup, Plugin, PluginInitializerContext } from 'src/core/server'; | ||
|
||
export class TimelionPlugin implements Plugin { | ||
constructor(context: PluginInitializerContext) {} | ||
|
||
setup(core: CoreSetup) { | ||
core.savedObjects.registerType({ | ||
name: 'timelion-sheet', | ||
hidden: false, | ||
namespaceType: 'single', | ||
mappings: { | ||
properties: { | ||
description: { type: 'text' }, | ||
hits: { type: 'integer' }, | ||
kibanaSavedObjectMeta: { | ||
properties: { | ||
searchSourceJSON: { type: 'text' }, | ||
}, | ||
}, | ||
timelion_chart_height: { type: 'integer' }, | ||
timelion_columns: { type: 'integer' }, | ||
timelion_interval: { type: 'keyword' }, | ||
timelion_other_interval: { type: 'keyword' }, | ||
timelion_rows: { type: 'integer' }, | ||
timelion_sheet: { type: 'text' }, | ||
title: { type: 'text' }, | ||
version: { type: 'integer' }, | ||
}, | ||
}, | ||
}); | ||
} | ||
start() {} | ||
stop() {} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
export { mapsTelemetrySavedObjects } from './maps_telemetry'; | ||
export { mapSavedObjects } from './map'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import { SavedObjectsType } from 'src/core/server'; | ||
import { APP_ICON, createMapPath } from '../../common/constants'; | ||
// @ts-ignore | ||
import { migrations } from './migrations'; | ||
|
||
export const mapSavedObjects: SavedObjectsType = { | ||
name: 'map', | ||
hidden: false, | ||
namespaceType: 'single', | ||
mappings: { | ||
properties: { | ||
description: { type: 'text' }, | ||
title: { type: 'text' }, | ||
version: { type: 'integer' }, | ||
bounds: { type: 'geo_shape' }, | ||
mapStateJSON: { type: 'text' }, | ||
layerListJSON: { type: 'text' }, | ||
uiStateJSON: { type: 'text' }, | ||
}, | ||
}, | ||
management: { | ||
icon: APP_ICON, | ||
defaultSearchField: 'title', | ||
importableAndExportable: true, | ||
getTitle(obj) { | ||
return obj.attributes.title; | ||
}, | ||
getInAppUrl(obj) { | ||
return { | ||
path: createMapPath(obj.id), | ||
uiCapabilitiesPath: 'maps.show', | ||
}; | ||
}, | ||
}, | ||
migrations: migrations.map, | ||
}; | ||
Comment on lines
+11
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've actually also done this in a draft PR in-progress. Is this work necessary for you to move forward? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @aaronjcaldwell Any ideas when this can be merged? We can wait for a week. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, scratch that. I see you mentioned this is blocking #65461. Let's go with what you have done which is more fleshed out anyway. I'll work out the merge on the Maps end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to find any usages. Don't know whether we can delete it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not aware of this being used anywhere either. Probably could remove.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be done as a separate PR