Skip to content

Commit

Permalink
[Rename] all elastic github references except for issues and PRs (#37) (
Browse files Browse the repository at this point in the history
#200)

* [Rename] all elastic github references except for issues and PRs (#37)

Signed-off-by: Bishoy Boktor <boktorbb@amazon.com>

* Address PR comments

Signed-off-by: Bishoy Boktor <boktorbb@amazon.com>
  • Loading branch information
boktorbb authored and mihirsoni committed Mar 20, 2021
1 parent a2e2b35 commit 365fa98
Show file tree
Hide file tree
Showing 41 changed files with 70 additions and 65 deletions.
4 changes: 2 additions & 2 deletions STYLEGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ less likely to introduce bugs in the future due to insufficient types.
If you’re not having `any` in your plugin or are starting a new plugin, you should enable the
[`@typescript-eslint/no-explicit-any`](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-explicit-any.md)
linting rule for your plugin via the [`.eslintrc.js`](https://github.com/elastic/kibana/blob/master/.eslintrc.js) config.
linting rule for your plugin via the [`.eslintrc.js`](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/.eslintrc.js) config.
### Avoid non-null assertions
Expand All @@ -231,7 +231,7 @@ assertion would now wrongly disable proper type checking for us.
If you’re not using non-null assertions in your plugin or are starting a new plugin, consider enabling the
[`@typescript-eslint/no-non-null-assertion`](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-assertion.md)
linting rule for you plugin in the [`.eslintrc.js`](https://github.com/elastic/kibana/blob/master/.eslintrc.js) config.
linting rule for you plugin in the [`.eslintrc.js`](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/.eslintrc.js) config.
### Return/throw early from functions
Expand Down
2 changes: 1 addition & 1 deletion examples/developer_examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services. Add your a link to your example using the developerExamples `register`
links: [
{
label: 'README',
href: 'https://github.com/elastic/kibana/tree/master/src/plugins/foo/README.md',
href: 'https://github.com/opensearch-project/OpenSearch-Dashboards/tree/master/src/plugins/foo/README.md',
iconType: 'logoGithub',
target: '_blank',
size: 's',
Expand Down
3 changes: 2 additions & 1 deletion examples/embeddable_explorer/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export class EmbeddableExplorerPlugin implements Plugin<void, void, {}, StartDep
links: [
{
label: 'README',
href: 'https://github.com/elastic/kibana/tree/master/src/plugins/embeddable/README.md',
href:
'https://github.com/opensearch-project/OpenSearch-Dashboards/tree/master/src/plugins/embeddable/README.md',
iconType: 'logoGithub',
target: '_blank',
size: 's',
Expand Down
7 changes: 4 additions & 3 deletions examples/routing_example/public/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,23 @@ function RoutingExplorer({
{
label: 'IRouter API docs',
href:
'https://github.com/elastic/kibana/blob/master/docs/development/core/server/opensearch-dashboards-plugin-core-server.irouter.md',
'https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/docs/development/core/server/opensearch-dashboards-plugin-core-server.irouter.md',
iconType: 'logoGithub',
target: '_blank',
size: 's',
},
{
label: 'HttpHandler (core.http.fetch) API docs',
href:
'https://github.com/elastic/kibana/blob/master/docs/development/core/public/opensearch-dashboards-plugin-core-public.httphandler.md',
'https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/docs/development/core/public/opensearch-dashboards-plugin-core-public.httphandler.md',
iconType: 'logoGithub',
target: '_blank',
size: 's',
},
{
label: 'Conventions',
href: 'https://github.com/elastic/kibana/tree/master/STYLEGUIDE.md#api-endpoints',
href:
'https://github.com/opensearch-project/OpenSearch-Dashboards/tree/master/STYLEGUIDE.md#api-endpoints',
iconType: 'logoGithub',
target: '_blank',
size: 's',
Expand Down
4 changes: 2 additions & 2 deletions examples/routing_example/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ export class RoutingExamplePlugin implements Plugin<{}, {}, SetupDeps, {}> {
{
label: 'IRouter',
href:
'https://github.com/elastic/kibana/blob/master/docs/development/core/server/opensearch-dashboards-plugin-core-server.irouter.md',
'https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/docs/development/core/server/opensearch-dashboards-plugin-core-server.irouter.md',
iconType: 'logoGithub',
target: '_blank',
size: 's',
},
{
label: 'HttpHandler (core.http.fetch)',
href:
'https://github.com/elastic/kibana/blob/master/docs/development/core/public/opensearch-dashboards-plugin-core-public.httphandler.md',
'https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/docs/development/core/public/opensearch-dashboards-plugin-core-public.httphandler.md',
iconType: 'logoGithub',
target: '_blank',
size: 's',
Expand Down
2 changes: 1 addition & 1 deletion examples/search_examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

## Development

See the [opensearchDashboards contributing guide](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md) for instructions setting up your development environment.
See the [opensearchDashboards contributing guide](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/CONTRIBUTING.md) for instructions setting up your development environment.
6 changes: 3 additions & 3 deletions examples/state_containers_examples/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class StateContainersExamplesPlugin implements Plugin {
{
label: 'README',
href:
'https://github.com/elastic/kibana/tree/master/src/plugins/opensearch_dashboards_utils/docs/state_containers/README.md',
'https://github.com/opensearch-project/OpenSearch-Dashboards/tree/master/src/plugins/opensearch_dashboards_utils/docs/state_containers/README.md',
iconType: 'logoGithub',
size: 's',
target: '_blank',
Expand All @@ -99,7 +99,7 @@ export class StateContainersExamplesPlugin implements Plugin {
{
label: 'README',
href:
'https://github.com/elastic/kibana/tree/master/src/plugins/opensearch_dashboards_utils/docs/state_containers/README.md',
'https://github.com/opensearch-project/OpenSearch-Dashboards/tree/master/src/plugins/opensearch_dashboards_utils/docs/state_containers/README.md',
iconType: 'logoGithub',
size: 's',
target: '_blank',
Expand All @@ -117,7 +117,7 @@ export class StateContainersExamplesPlugin implements Plugin {
{
label: 'README',
href:
'https://github.com/elastic/kibana/blob/master/src/plugins/data/public/query/state_sync/README.md',
'https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/src/plugins/data/public/query/state_sync/README.md',
iconType: 'logoGithub',
size: 's',
target: '_blank',
Expand Down
3 changes: 2 additions & 1 deletion examples/ui_actions_explorer/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ export class UiActionsExplorerPlugin implements Plugin<void, void, {}, StartDeps
links: [
{
label: 'README',
href: 'https://github.com/elastic/kibana/blob/master/src/plugins/ui_actions/README.md',
href:
'https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/src/plugins/ui_actions/README.md',
iconType: 'logoGithub',
size: 's',
target: '_blank',
Expand Down
2 changes: 1 addition & 1 deletion examples/url_generators_explorer/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class AccessLinksExplorerPlugin implements Plugin<void, void, SetupDeps,
{
label: 'README',
href:
'https://github.com/elastic/kibana/blob/master/src/plugins/share/public/url_generators/README.md',
'https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/src/plugins/share/public/url_generators/README.md',
iconType: 'logoGithub',
size: 's',
target: '_blank',
Expand Down
6 changes: 3 additions & 3 deletions packages/elastic-eslint-config-kibana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": ".eslintrc.js",
"repository": {
"type": "git",
"url": "git+https://github.com/elastic/kibana.git"
"url": "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git"
},
"kibana": {
"devOnly": true
Expand All @@ -14,9 +14,9 @@
"author": "Spencer Alger <email@spalger.com>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/elastic/kibana/tree/master/packages/elastic-eslint-config-kibana"
"url": "https://github.com/opensearch-project/OpenSearch-Dashboards/tree/master/packages/elastic-eslint-config-kibana"
},
"homepage": "https://github.com/elastic/kibana/tree/master/packages/elastic-eslint-config-kibana",
"homepage": "https://github.com/opensearch-project/OpenSearch-Dashboards/tree/master/packages/elastic-eslint-config-kibana",
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "^3.10.0",
"@typescript-eslint/parser": "^3.10.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/elastic-safer-lodash-set/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/elastic/kibana.git"
"url": "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git"
},
"keywords": [
"lodash",
Expand All @@ -35,9 +35,9 @@
"author": "Thomas Watson <w@tson.dk> (https://twitter.com/wa7son)",
"license": "MIT",
"bugs": {
"url": "https://github.com/elastic/kibana/issues"
"url": "https://github.com/opensearch-project/OpenSearch-Dashboards/issues"
},
"homepage": "https://github.com/elastic/kibana/tree/master/packages/safer-lodash-set#readme",
"homepage": "https://github.com/opensearch-project/OpenSearch-Dashboards/tree/master/packages/safer-lodash-set#readme",
"standard": {
"ignore": [
"/lodash/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports.getWebpackConfig = function (opensearchDashboardsPath) {
mainFields: ['browser', 'main'],
modules: ['node_modules', resolve(opensearchDashboardsPath, 'node_modules')],
alias: {
// Dev defaults for test bundle https://github.com/elastic/kibana/blob/6998f074542e8c7b32955db159d15661aca253d7/src/core_plugins/tests_bundle/index.js#L73-L78
// Dev defaults for test bundle https://github.com/opensearch-project/OpenSearch-Dashboards/blob/6998f074542e8c7b32955db159d15661aca253d7/src/core_plugins/tests_bundle/index.js#L73-L78
fixtures: resolve(opensearchDashboardsPath, 'src/fixtures'),
test_utils: resolve(opensearchDashboardsPath, 'src/test_utils/public'),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/elastic/kibana/tree/master/packages/kbn-eslint-import-resolver-kibana"
"url": "https://github.com/opensearch-project/OpenSearch-Dashboards/tree/master/packages/osd-eslint-import-resolver-opensearch-dashboards"
},
"dependencies": {
"debug": "^2.6.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/osd-plugin-generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ node scripts/generate_plugin --help

Since the Plugin Generator is now a part of the OpenSearch Dashboards repo, when you update your local checkout of the OpenSearch Dashboards repository and `bootstrap` everything should be up to date!

> ***NOTE:*** These commands should be run from the OpenSearch Dashboards repo, and `upstream` is our convention for the git remote that references https://github.com/elastic/kibana.git, unless you added this remote you might need to use `origin`.
> ***NOTE:*** These commands should be run from the OpenSearch Dashboards repo, and `upstream` is our convention for the git remote that references https://github.com/opensearch-project/OpenSearch-Dashboards.git, unless you added this remote you might need to use `origin`.
```sh
git pull upstream master
Expand Down
3 changes: 2 additions & 1 deletion packages/osd-plugin-generator/template/README.md.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

## Development

See the [kibana contributing guide](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md) for instructions
See the [kibana contributing
guide](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/CONTRIBUTING.md) for instructions
setting up your development environment.

<% if (thirdPartyPlugin) { %>
Expand Down
4 changes: 2 additions & 2 deletions packages/osd-spec-to-console/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\ mini utility to convert [OpenSearch's REST spec](https://github.com/elastic/elasticsearch/blob/master/rest-api-spec) to Console's (OpenSearch Dashboards) autocomplete format.
\ mini utility to convert [OpenSearch's REST spec](https://github.com/opensearch-project/OpenSearch/blob/master/rest-api-spec) to Console's (OpenSearch Dashboards) autocomplete format.


It is used to semi-manually update Console's autocompletion rules.
Expand All @@ -10,7 +10,7 @@ If you don't have a copy of the OpenSearch repo on your machine, follow these st
```
mkdir opensearch-spec && cd opensearch-spec
git init
git remote add origin https://github.com/elastic/elasticsearch
git remote add origin https://github.com/opensearch-project/OpenSearch
git config core.sparsecheckout true
echo "rest-api-spec/src/main/resources/rest-api-spec/api/*\nx-pack/plugin/src/test/resources/rest-api-spec/api/*" > .git/info/sparse-checkout
git pull --depth=1 origin master
Expand Down
3 changes: 2 additions & 1 deletion packages/osd-storybook/lib/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ addons.setConfig({
theme: create({
base: 'light',
brandTitle: 'OpenSearch Dashboards Storybook',
brandUrl: 'https://github.com/elastic/kibana/tree/master/packages/osd-storybook',
brandUrl:
'https://github.com/opensearch-project/OpenSearch-Dashboards/tree/master/packages/osd-storybook',
}),
showPanel: false,
isFullscreen: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/osd-test/src/failed_tests_reporter/github_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Axios, { AxiosRequestConfig, AxiosInstance } from 'axios';
import parseLinkHeader from 'parse-link-header';
import { ToolingLog, isAxiosResponseError, isAxiosRequestError } from '@osd/dev-utils';

const BASE_URL = 'https://api.github.com/repos/elastic/kibana/';
const BASE_URL = 'https://api.github.com/repos/opensearch-project/OpenSearch-Dashboards/';

export interface GithubIssue {
html_url: string;
Expand Down
2 changes: 1 addition & 1 deletion src/core/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ The tests cover:
- authenticated / non-authenticated user access (when applicable)

```typescript
// TODO after https://github.com/elastic/opensearch-dashboards/pull/53208/
// TODO after https://github.com/elastic/kibana/pull/53208/
```

- request validation
Expand Down
16 changes: 7 additions & 9 deletions src/core/public/chrome/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
* under the License.
*/

//export const OPENSEARCH_DASHBOARDS_FEEDBACK_LINK =
// export const OPENSEARCH_DASHBOARDS_FEEDBACK_LINK =
// 'https://www.opensearch.co/products/kibana/feedback?blade=kibanafeedback';
//export const OPENSEARCH_DASHBOARDS_ASK_OPENSEARCH_LINK =
// export const OPENSEARCH_DASHBOARDS_ASK_OPENSEARCH_LINK =
// 'https://www.opensearch.co/products/kibana/ask-elastic?blade=kibanaaskelastic';
//export const GITHUB_CREATE_ISSUE_LINK = 'https://github.com/elastic/kibana/issues/new/choose';
// export const GITHUB_CREATE_ISSUE_LINK = 'https://github.com/opensearch-project/OpenSearch-Dashboards/issues/new/choose';


export const OPENSEARCH_DASHBOARDS_FEEDBACK_LINK =
'https://github.com/opensearch-project';
export const OPENSEARCH_DASHBOARDS_ASK_OPENSEARCH_LINK =
'https://github.com/opensearch-project';
export const GITHUB_CREATE_ISSUE_LINK = 'https://github.com/opensearch-project/OpenSearch-Dashboards/issues/new/choose';
export const OPENSEARCH_DASHBOARDS_FEEDBACK_LINK = 'https://github.com/opensearch-project';
export const OPENSEARCH_DASHBOARDS_ASK_OPENSEARCH_LINK = 'https://github.com/opensearch-project';
export const GITHUB_CREATE_ISSUE_LINK =
'https://github.com/opensearch-project/OpenSearch-Dashboards/issues/new/choose';
2 changes: 1 addition & 1 deletion src/core/public/chrome/ui/header/header_help_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class HeaderHelpMenuUI extends Component<Props, State> {
}

createGithubUrl = (labels: string[], title?: string) => {
const url = new URL('https://github.com/elastic/kibana/issues/new?');
const url = new URL('https://github.com/opensearch-project/OpenSearch-Dashboards/issues/new?');

if (labels.length) {
url.searchParams.set('labels', labels.join(','));
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/http/http_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const match = (regex: RegExp, errorMsg: string) => (str: string) =>
regex.test(str) ? undefined : errorMsg;

// before update to make sure it's in sync with validation rules in Legacy
// https://github.com/elastic/kibana/blob/master/src/legacy/server/config/schema.js
// https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/src/legacy/server/config/schema.js
export const config = {
path: 'server',
schema: schema.object(
Expand Down
4 changes: 2 additions & 2 deletions src/core/server/legacy/config/get_unused_config_keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export async function getUnusedConfigKeys({
const appliedKeys = getFlattenedKeys(legacyConfig.get());

if (inputKeys.includes('env')) {
// env is a special case key, see https://github.com/elastic/kibana/blob/848bf17b/src/legacy/server/config/config.js#L74
// env is a special case key, see https://github.com/opensearch-project/OpenSearch-Dashboards/blob/848bf17b/src/legacy/server/config/config.js#L74
// where it is deleted from the settings before being injected into the schema via context and
// then renamed to `env.name` https://github.com/elastic/kibana/blob/848bf17/src/legacy/server/config/schema.js#L17
// then renamed to `env.name` https://github.com/opensearch-project/OpenSearch-Dashboards/blob/848bf17/src/legacy/server/config/schema.js#L17
inputKeys[inputKeys.indexOf('env')] = 'env.name';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ LABEL org.label-schema.build-date="{{dockerBuildDate}}" \
org.label-schema.url="https://www.opensearch.co/products/kibana" \
org.label-schema.usage="https://www.opensearch.co/guide/en/kibana/reference/index.html" \
org.label-schema.vcs-ref="{{revision}}" \
org.label-schema.vcs-url="https://github.com/elastic/kibana" \
org.label-schema.vcs-url="https://github.com/opensearch-project/OpenSearch-Dashboards" \
org.label-schema.vendor="Elastic" \
org.label-schema.version="{{version}}" \
org.opencontainers.image.created="{{dockerBuildDate}}" \
org.opencontainers.image.documentation="https://www.opensearch.co/guide/en/kibana/reference/index.html" \
org.opencontainers.image.licenses="{{license}}" \
org.opencontainers.image.revision="{{revision}}" \
org.opencontainers.image.source="https://github.com/elastic/kibana" \
org.opencontainers.image.source="https://github.com/opensearch-project/OpenSearch-Dashboards" \
org.opencontainers.image.title="Kibana" \
org.opencontainers.image.url="https://www.opensearch.co/products/kibana" \
org.opencontainers.image.vendor="Elastic" \
Expand Down
2 changes: 1 addition & 1 deletion src/legacy/server/config/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default () =>
name: Joi.string().default(os.hostname()),
// keep them for BWC, remove when not used in Legacy.
// validation should be in sync with one in New platform.
// https://github.com/elastic/kibana/blob/master/src/core/server/http/http_config.ts
// https://github.com/opensearch-project/OpenSearch-Dashboards/blob/master/src/core/server/http/http_config.ts
basePath: Joi.string()
.default('')
.allow('')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const discoverResponseHandler = (response, dimensions) => {
});
if (!converted) {
// mimic a row of tables that doesn't have any tables
// https://github.com/elastic/kibana/blob/7bfb68cd24ed42b1b257682f93c50cd8d73e2520/src/kibana/components/vislib/components/zero_injection/inject_zeros.js#L32
// https://github.com/opensearch-project/OpenSearch-Dashboards/blob/7bfb68cd24ed42b1b257682f93c50cd8d73e2520/src/kibana/components/vislib/components/zero_injection/inject_zeros.js#L32
converted = { rows: [] };
}

Expand Down
Loading

0 comments on commit 365fa98

Please sign in to comment.