From d85d58348d6f0940fb8af86955a35b3a586bb16a Mon Sep 17 00:00:00 2001 From: Miki Date: Wed, 27 Oct 2021 09:36:54 -0700 Subject: [PATCH] Update README and fix copyright notices * Add the project logo to the README file * Fix broken README links to LICENSE and NOTICE * Update copyright notices Signed-off-by: Miki --- DEVELOPER_GUIDE.md | 4 ++-- NOTICE | 4 ++-- README.md | 6 ++++-- gantt-chart/.cypress/integration/ui.spec.js | 15 --------------- gantt-chart/.cypress/plugins/index.js | 15 --------------- gantt-chart/.cypress/support/commands.js | 15 --------------- gantt-chart/.cypress/support/constants.js | 15 --------------- gantt-chart/.cypress/support/index.js | 15 --------------- gantt-chart/.cypress/utils/constants.js | 15 --------------- gantt-chart/public/components/gantt_chart.tsx | 15 --------------- .../public/components/gantt_chart_editor.tsx | 15 --------------- gantt-chart/public/components/options_editor.tsx | 15 --------------- gantt-chart/public/gantt_request_handler.ts | 15 --------------- gantt-chart/public/gantt_vis_type.ts | 15 --------------- gantt-chart/public/index.scss | 15 --------------- gantt-chart/public/index.ts | 14 -------------- gantt-chart/public/plugin.ts | 15 --------------- gantt-chart/server/index.ts | 15 --------------- gantt-chart/server/plugin.ts | 15 --------------- gantt-chart/server/routes/index.ts | 15 --------------- gantt-chart/server/types.ts | 15 --------------- gantt-chart/test/jest.config.js | 15 --------------- 22 files changed, 8 insertions(+), 290 deletions(-) diff --git a/DEVELOPER_GUIDE.md b/DEVELOPER_GUIDE.md index 8e376b5..798caac 100644 --- a/DEVELOPER_GUIDE.md +++ b/DEVELOPER_GUIDE.md @@ -4,8 +4,8 @@ So you want to contribute code to this project? Excellent! We're glad you're her ### Setup -1. Download OpenSearch for the version that matches the [OpenSearch Dashboards version specified in package.json](./package.json#L5). -1. Download the OpenSearch Dashboards source code for the [version specified in package.json](./package.json#L5) you want to set up. +1. Download OpenSearch for the version that matches the [OpenSearch Dashboards version specified in package.json](gantt-chart/package.json#L5). +1. Download the OpenSearch Dashboards source code for the [version specified in package.json](gantt-chart/package.json#L5) you want to set up. 1. Change your node version to the version specified in `.node-version` inside the OpenSearch Dashboards root directory. 1. cd into the OpenSearch Dashboards source code directory. diff --git a/NOTICE b/NOTICE index be83767..3e7b8b7 100644 --- a/NOTICE +++ b/NOTICE @@ -1,5 +1,5 @@ -OpenSearch -Copyright 2021 OpenSearch Contributors +OpenSearch (https://opensearch.org) +Copyright OpenSearch Contributors This product includes software developed by Elasticsearch (http://www.elastic.co). diff --git a/README.md b/README.md index 9076873..c29137e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ [![Dashboards Visualizations CI](https://github.com/opensearch-project/dashboards-visualizations/actions/workflows/test-and-build-workflow.yml/badge.svg)](https://github.com/opensearch-project/dashboards-visualizations/actions/workflows/test-and-build-workflow.yml) [![codecov](https://codecov.io/gh/opensearch-project/dashboards-visualizations/branch/main/graphs/badge.svg)](https://codecov.io/gh/opensearch-project/dashboards-visualizations) +# OpenSearch + # OpenSearch Dashboards Visualizations The OpenSearch Dashboards Visualizations enables you to use additional types of visualizations inside OpenSearch Dashboards Visualize and integrate them in Dashboard. @@ -30,8 +32,8 @@ If you discover a potential security issue in this project we ask that you notif ## License -This project is licensed under the [Apache v2.0 License](LICENSE.txt). +This project is licensed under the [Apache v2.0 License](LICENSE). ## Copyright -Copyright OpenSearch Contributors. See [NOTICE](NOTICE.txt) for details. +Copyright OpenSearch Contributors. See [NOTICE](NOTICE) for details. diff --git a/gantt-chart/.cypress/integration/ui.spec.js b/gantt-chart/.cypress/integration/ui.spec.js index 7c74f51..d3ef949 100644 --- a/gantt-chart/.cypress/integration/ui.spec.js +++ b/gantt-chart/.cypress/integration/ui.spec.js @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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 { diff --git a/gantt-chart/.cypress/plugins/index.js b/gantt-chart/.cypress/plugins/index.js index b7a4643..af282f7 100644 --- a/gantt-chart/.cypress/plugins/index.js +++ b/gantt-chart/.cypress/plugins/index.js @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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. - */ - /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/gantt-chart/.cypress/support/commands.js b/gantt-chart/.cypress/support/commands.js index 52148a8..244f228 100644 --- a/gantt-chart/.cypress/support/commands.js +++ b/gantt-chart/.cypress/support/commands.js @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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. - */ - const { ADMIN_AUTH } = require('./constants'); // *********************************************** diff --git a/gantt-chart/.cypress/support/constants.js b/gantt-chart/.cypress/support/constants.js index f033ff8..dda3301 100644 --- a/gantt-chart/.cypress/support/constants.js +++ b/gantt-chart/.cypress/support/constants.js @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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. - */ - export const ADMIN_AUTH = { username: 'admin', password: 'admin', diff --git a/gantt-chart/.cypress/support/index.js b/gantt-chart/.cypress/support/index.js index 678321e..6626688 100644 --- a/gantt-chart/.cypress/support/index.js +++ b/gantt-chart/.cypress/support/index.js @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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. - */ - // *********************************************************** // This example support/index.js is processed and // loaded automatically before your test files. diff --git a/gantt-chart/.cypress/utils/constants.js b/gantt-chart/.cypress/utils/constants.js index 938facf..870c506 100644 --- a/gantt-chart/.cypress/utils/constants.js +++ b/gantt-chart/.cypress/utils/constants.js @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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. - */ - export const testDataSet = [ { url: 'https://raw.githubusercontent.com/opensearch-project/dashboards-visualizations/main/gantt-chart/.cypress/utils/jaeger-sample.json', diff --git a/gantt-chart/public/components/gantt_chart.tsx b/gantt-chart/public/components/gantt_chart.tsx index f6eeac6..debf686 100644 --- a/gantt-chart/public/components/gantt_chart.tsx +++ b/gantt-chart/public/components/gantt_chart.tsx @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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 { EuiEmptyPrompt, EuiText } from '@elastic/eui'; import _ from 'lodash'; import moment from 'moment'; diff --git a/gantt-chart/public/components/gantt_chart_editor.tsx b/gantt-chart/public/components/gantt_chart_editor.tsx index d8c2936..ed8c3d5 100644 --- a/gantt-chart/public/components/gantt_chart_editor.tsx +++ b/gantt-chart/public/components/gantt_chart_editor.tsx @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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 { EuiFieldNumber, EuiFormRow, diff --git a/gantt-chart/public/components/options_editor.tsx b/gantt-chart/public/components/options_editor.tsx index 00821b0..5e1f051 100644 --- a/gantt-chart/public/components/options_editor.tsx +++ b/gantt-chart/public/components/options_editor.tsx @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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 { EuiColorPicker, EuiFieldText, diff --git a/gantt-chart/public/gantt_request_handler.ts b/gantt-chart/public/gantt_request_handler.ts index 6c83385..8eadde7 100644 --- a/gantt-chart/public/gantt_request_handler.ts +++ b/gantt-chart/public/gantt_request_handler.ts @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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 { IUiSettingsClient } from 'opensearch-dashboards/public'; import { IndexPattern } from 'src/plugins/data/public'; import { VisParams } from 'src/plugins/visualizations/public'; diff --git a/gantt-chart/public/gantt_vis_type.ts b/gantt-chart/public/gantt_vis_type.ts index 6e97ba9..1629da5 100644 --- a/gantt-chart/public/gantt_vis_type.ts +++ b/gantt-chart/public/gantt_vis_type.ts @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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 { Vis, PersistedState } from 'src/plugins/visualizations/public'; import { IAggConfigs } from 'src/plugins/data/public'; import { GanttChart } from './components/gantt_chart'; diff --git a/gantt-chart/public/index.scss b/gantt-chart/public/index.scss index 204471c..ef2fbc5 100644 --- a/gantt-chart/public/index.scss +++ b/gantt-chart/public/index.scss @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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. - */ - .embPanel__content[data-loading][data-type=plotlyGanttChart] { pointer-events: auto; filter: none; diff --git a/gantt-chart/public/index.ts b/gantt-chart/public/index.ts index dcc91be..3e46762 100644 --- a/gantt-chart/public/index.ts +++ b/gantt-chart/public/index.ts @@ -9,20 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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 './index.scss'; import { PluginInitializer } from 'opensearch-dashboards/public'; diff --git a/gantt-chart/public/plugin.ts b/gantt-chart/public/plugin.ts index e907173..034d973 100644 --- a/gantt-chart/public/plugin.ts +++ b/gantt-chart/public/plugin.ts @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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, CoreStart, IUiSettingsClient, HttpSetup } from 'opensearch-dashboards/public'; import { VisualizationsSetup } from '../../../src/plugins/visualizations/public'; import { getGanttVisDefinition } from './gantt_vis_type'; diff --git a/gantt-chart/server/index.ts b/gantt-chart/server/index.ts index 8de79d6..94da4ae 100644 --- a/gantt-chart/server/index.ts +++ b/gantt-chart/server/index.ts @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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 { GanttVisPlugin } from './plugin'; diff --git a/gantt-chart/server/plugin.ts b/gantt-chart/server/plugin.ts index d7609be..9d59c5d 100644 --- a/gantt-chart/server/plugin.ts +++ b/gantt-chart/server/plugin.ts @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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, CoreSetup, diff --git a/gantt-chart/server/routes/index.ts b/gantt-chart/server/routes/index.ts index b29d727..f6d75da 100644 --- a/gantt-chart/server/routes/index.ts +++ b/gantt-chart/server/routes/index.ts @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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 { schema } from '@osd/config-schema'; import { RequestParams } from '@elastic/elasticsearch'; import { IRouter } from '../../../../src/core/server'; diff --git a/gantt-chart/server/types.ts b/gantt-chart/server/types.ts index 7059c52..a193106 100644 --- a/gantt-chart/server/types.ts +++ b/gantt-chart/server/types.ts @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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. - */ - // eslint-disable-next-line @typescript-eslint/no-empty-interface export interface GanttVisPluginSetup {} // eslint-disable-next-line @typescript-eslint/no-empty-interface diff --git a/gantt-chart/test/jest.config.js b/gantt-chart/test/jest.config.js index 637b899..d5afb1e 100644 --- a/gantt-chart/test/jest.config.js +++ b/gantt-chart/test/jest.config.js @@ -9,21 +9,6 @@ * GitHub history for details. */ -/* - * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file 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. - */ - module.exports = { rootDir: '../', setupFiles: ['/test/setupTests.ts'],