Skip to content

Commit

Permalink
[Rename] timelion to timeline (#37) (#186)
Browse files Browse the repository at this point in the history
Signed-off-by: Bishoy Boktor <boktorbb@amazon.com>
  • Loading branch information
boktorbb authored and mihirsoni committed Mar 20, 2021
1 parent 5593577 commit 00bf477
Show file tree
Hide file tree
Showing 303 changed files with 1,240 additions and 1,240 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ target
/src/core/lib/osd_internal_native_observable
/src/legacy/plugin_discovery/plugin_pack/__tests__/fixtures/plugins/broken
/src/plugins/data/common/opensearch_query/kuery/ast/_generated_/**
/src/plugins/vis_type_timelion/public/_generated_/**
/src/plugins/vis_type_timeline/public/_generated_/**

# package overrides
/packages/elastic-eslint-config-kibana
Expand Down
2 changes: 1 addition & 1 deletion .i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"src/plugins/telemetry_management_section"
],
"tileMap": "src/plugins/tile_map",
"timelion": ["src/plugins/timelion", "src/plugins/vis_type_timelion"],
"timeline": ["src/plugins/timeline", "src/plugins/vis_type_timeline"],
"uiActions": "src/plugins/ui_actions",
"visDefaultEditor": "src/plugins/vis_default_editor",
"visTypeMarkdown": "src/plugins/vis_type_markdown",
Expand Down
2 changes: 1 addition & 1 deletion .sass-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ files:
include:
- 'src/legacy/core_plugins/metrics/**/*.s+(a|c)ss'
- 'src/plugins/index_pattern_management/**/*.s+(a|c)ss'
- 'src/plugins/timelion/**/*.s+(a|c)ss'
- 'src/plugins/timeline/**/*.s+(a|c)ss'
- 'src/plugins/vis_type_vislib/**/*.s+(a|c)ss'
- 'src/plugins/vis_type_vega/**/*.s+(a|c)ss'
- 'src/plugins/vis_type_xy/**/*.s+(a|c)ss'
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-release-notes/src/release_notes_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const AREAS: Area[] = [
{
title: 'Visualizations',
labels: [
'Feature:Timelion',
'Feature:Timeline',
'Feature:TSVB',
'Feature:Coordinate Map',
'Feature:Region Map',
Expand Down
4 changes: 2 additions & 2 deletions packages/osd-optimizer/limits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pageLoadAssetSize:
telemetry: 91832
telemetryManagementSection: 52443
tileMap: 65337
timelion: 29920
timeline: 29920
transform: 41151
triggersActionsUi: 170145
uiActions: 95074
Expand All @@ -90,7 +90,7 @@ pageLoadAssetSize:
visTypeMetric: 42790
visTypeTable: 95078
visTypeTagcloud: 37575
visTypeTimelion: 51933
visTypeTimeline: 51933
visTypeTimeseries: 155347
visTypeVega: 153861
visTypeVislib: 242982
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@

/**
* 1. Override Bootstrap.
* 2. Override either Bootstrap or Timelion styles.
* 2. Override either Bootstrap or Timeline styles.
*/
.kuiButton--hollow {
color: $kuiLinkColor !important; /* 2 */
Expand Down
2 changes: 1 addition & 1 deletion src/core/public/doc_links/doc_links_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class DocLinksService {
},
visualize: {
guide: `${OPENSEARCH_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/dashboard.html`,
timelionDeprecation: `${OPENSEARCH_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/dashboard.html#timelion-deprecation`,
timelineDeprecation: `${OPENSEARCH_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/dashboard.html#timeline-deprecation`,
},
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ kibana_vars=(
tilemap.options.minZoom
tilemap.options.subdomains
tilemap.url
timelion.enabled
timeline.enabled
vega.enableExternalUrls
xpack.actions.proxyUrl
xpack.apm.enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const names: Record<string, string> = {
general: i18n.translate('advancedSettings.categoryNames.generalLabel', {
defaultMessage: 'General',
}),
timelion: i18n.translate('advancedSettings.categoryNames.timelionLabel', {
defaultMessage: 'Timelion',
timeline: i18n.translate('advancedSettings.categoryNames.timelineLabel', {
defaultMessage: 'Timeline',
}),
notifications: i18n.translate('advancedSettings.categoryNames.notificationsLabel', {
defaultMessage: 'Notifications',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const applicationUsageSchema = {
opensearch_dashboards: commonSchema, // It's a forward app so we'll likely never report it
management: commonSchema,
short_url_redirect: commonSchema, // It's a forward app so we'll likely never report it
timelion: commonSchema,
timeline: commonSchema,
visualize: commonSchema,

// X-Pack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ export const stackManagementSchema: MakeSchemaFrom<UsageStats> = {
'securitySolution:ipReputationLinks': { type: 'text' },
'csv:separator': { type: 'keyword' },
'visualization:tileMap:WMSdefaults': { type: 'text' },
'timelion:target_buckets': { type: 'long' },
'timelion:max_buckets': { type: 'long' },
'timelion:opensearch.timefield': { type: 'keyword' },
'timelion:min_interval': { type: 'keyword' },
'timelion:default_rows': { type: 'long' },
'timelion:default_columns': { type: 'long' },
'timelion:quandl.key': { type: 'keyword' },
'timelion:opensearch.default_index': { type: 'keyword' },
'timelion:showTutorial': { type: 'boolean' },
'timeline:target_buckets': { type: 'long' },
'timeline:max_buckets': { type: 'long' },
'timeline:opensearch.timefield': { type: 'keyword' },
'timeline:min_interval': { type: 'keyword' },
'timeline:default_rows': { type: 'long' },
'timeline:default_columns': { type: 'long' },
'timeline:quandl.key': { type: 'keyword' },
'timeline:opensearch.default_index': { type: 'keyword' },
'timeline:showTutorial': { type: 'boolean' },
'securitySolution:timeDefaults': { type: 'keyword' },
'securitySolution:defaultAnomalyScore': { type: 'long' },
'securitySolution:defaultIndex': { type: 'keyword' }, // it's an array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('getSavedObjectsCounts', () => {
search: { total: 0 },
index_pattern: { total: 0 },
graph_workspace: { total: 0 },
timelion_sheet: { total: 0 },
timeline_sheet: { total: 0 },
});
});

Expand All @@ -40,7 +40,7 @@ describe('getSavedObjectsCounts', () => {
types: {
buckets: [
{ key: 'dashboard', doc_count: 1 },
{ key: 'timelion-sheet', doc_count: 2 },
{ key: 'timeline-sheet', doc_count: 2 },
{ key: 'index-pattern', value: 2 }, // Malformed on purpose
{ key: 'graph_workspace', doc_count: 3 }, // already snake_cased
],
Expand All @@ -55,7 +55,7 @@ describe('getSavedObjectsCounts', () => {
search: { total: 0 },
index_pattern: { total: 0 },
graph_workspace: { total: 3 },
timelion_sheet: { total: 2 },
timeline_sheet: { total: 2 },
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const TYPES = [
'search',
'index-pattern',
'graph-workspace',
'timelion-sheet',
'timeline-sheet',
];

export interface OpenSearchDashboardsSavedObjectCounts {
Expand All @@ -44,7 +44,7 @@ export interface OpenSearchDashboardsSavedObjectCounts {
search: { total: number };
index_pattern: { total: number };
graph_workspace: { total: number };
timelion_sheet: { total: number };
timeline_sheet: { total: number };
}

export async function getSavedObjectsCounts(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('telemetry_opensearch_dashboards', () => {
search: { total: 0 },
index_pattern: { total: 0 },
graph_workspace: { total: 0 },
timelion_sheet: { total: 0 },
timeline_sheet: { total: 0 },
});
});

Expand All @@ -65,7 +65,7 @@ describe('telemetry_opensearch_dashboards', () => {
search: { total: 0 },
index_pattern: { total: 0 },
graph_workspace: { total: 0 },
timelion_sheet: { total: 0 },
timeline_sheet: { total: 0 },
};

expect(collector.formatForBulkUpload!(resultFromFetch)).toStrictEqual({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function getOpenSearchDashboardsUsageCollector(
search: { total: { type: 'long' } },
index_pattern: { total: { type: 'long' } },
graph_workspace: { total: { type: 'long' } },
timelion_sheet: { total: { type: 'long' } },
timeline_sheet: { total: { type: 'long' } },
},
async fetch(callCluster) {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const uiMetricFromDataPluginSchema: MakeSchemaFrom<UIMetricUsage> = {
opensearch_dashboards: commonSchema, // It's a forward app so we'll likely never report it
management: commonSchema,
short_url_redirect: commonSchema, // It's a forward app so we'll likely never report it
timelion: commonSchema,
timeline: commonSchema,
visualize: commonSchema,

// X-Pack
Expand Down
24 changes: 12 additions & 12 deletions src/plugins/telemetry/schema/oss_plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
}
}
},
"timelion": {
"timeline": {
"properties": {
"clicks_total": {
"type": "long"
Expand Down Expand Up @@ -1343,7 +1343,7 @@
}
}
},
"timelion_sheet": {
"timeline_sheet": {
"properties": {
"total": {
"type": "long"
Expand Down Expand Up @@ -1381,31 +1381,31 @@
"visualization:tileMap:WMSdefaults": {
"type": "text"
},
"timelion:target_buckets": {
"timeline:target_buckets": {
"type": "long"
},
"timelion:max_buckets": {
"timeline:max_buckets": {
"type": "long"
},
"timelion:opensearch.timefield": {
"timeline:opensearch.timefield": {
"type": "keyword"
},
"timelion:min_interval": {
"timeline:min_interval": {
"type": "keyword"
},
"timelion:default_rows": {
"timeline:default_rows": {
"type": "long"
},
"timelion:default_columns": {
"timeline:default_columns": {
"type": "long"
},
"timelion:quandl.key": {
"timeline:quandl.key": {
"type": "keyword"
},
"timelion:opensearch.default_index": {
"timeline:opensearch.default_index": {
"type": "keyword"
},
"timelion:showTutorial": {
"timeline:showTutorial": {
"type": "boolean"
},
"securitySolution:timeDefaults": {
Expand Down Expand Up @@ -1937,7 +1937,7 @@
}
}
},
"timelion": {
"timeline": {
"type": "array",
"items": {
"properties": {
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/timeline/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Contains the deprecated timeline application. For the timeline visualization,
which also contains the timeline APIs and backend, look at the vis_type_timeline plugin.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"id": "timelion",
"id": "timeline",
"version": "opensearchDashboards",
"ui": true,
"server": true,
"requiredBundles": [
"opensearchDashboardsLegacy",
"opensearchDashboardsUtils",
"savedObjects",
"visTypeTimelion"
"visTypeTimeline"
],
"requiredPlugins": [
"visualizations",
"data",
"navigation",
"visTypeTimelion",
"visTypeTimeline",
"opensearchDashboardsLegacy"
]
}
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 00bf477

Please sign in to comment.