Skip to content

Commit

Permalink
Updated all URLs from opensearch.co -> opensearch.org (#266)
Browse files Browse the repository at this point in the history
* Updated opensearch.co -> opensearch.org

Signed-off-by: Mihir Soni <[email protected]>

* Updated unit test cases

Signed-off-by: Mihir Soni <[email protected]>
  • Loading branch information
mihirsoni authored Apr 9, 2021
1 parent a54a09d commit 9973595
Show file tree
Hide file tree
Showing 218 changed files with 374 additions and 374 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"number": 8467,
"sha": "6cb7fec4e154faa0a4a3fee4b33dfef91b9870d9"
},
"homepage": "https://www.opensearch.co/products/kibana",
"homepage": "https://www.opensearch.org/products/kibana",
"bugs": {
"url": "http://github.com/opensearch-project/OpenSearch-Dashboards/issues"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ const { TextHighlightRules } = ace.acequire('ace/mode/text_highlight_rules');
const oop = ace.acequire('ace/lib/oop');

export const OpenSearchSqlHighlightRules = function (this: any) {
// See https://www.opensearch.co/guide/en/elasticsearch/reference/current/sql-commands.html
// See https://www.opensearch.org/guide/en/elasticsearch/reference/current/sql-commands.html
const keywords =
'describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order' +
'asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is';

const builtinConstants = 'true|false';

// See https://www.opensearch.co/guide/en/elasticsearch/reference/current/sql-syntax-show-functions.html
// See https://www.opensearch.org/guide/en/elasticsearch/reference/current/sql-syntax-show-functions.html
const builtinFunctions =
'avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness' +
'|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl' +
Expand All @@ -56,7 +56,7 @@ export const OpenSearchSqlHighlightRules = function (this: any) {
'|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt' +
'|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score';

// See https://www.opensearch.co/guide/en/elasticsearch/reference/current/sql-data-types.html
// See https://www.opensearch.org/guide/en/elasticsearch/reference/current/sql-data-types.html
const dataTypes =
'null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time' +
'|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_month' +
Expand Down
2 changes: 1 addition & 1 deletion packages/osd-babel-preset/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @osd/babel-preset

This package contains the shared bits of babel config that we use for transpiling our source code to code compatible with Node.JS and the various [browsers we support](https://www.opensearch.co/support/matrix#matrix_browsers).
This package contains the shared bits of babel config that we use for transpiling our source code to code compatible with Node.JS and the various [browsers we support](https://www.opensearch.org/support/matrix#matrix_browsers).

## usage

Expand Down
10 changes: 5 additions & 5 deletions packages/osd-config-schema/src/types/uri_type.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ test('returns value for valid URI as per RFC3986', () => {
expect(uriSchema.validate('ftp://ftp.ietf.org/rfc/rfc3986.txt')).toBe(
'ftp://ftp.ietf.org/rfc/rfc3986.txt'
);
expect(uriSchema.validate('mailto:Platform.OpenSearchDashboards@opensearch.co')).toBe(
'mailto:Platform.OpenSearchDashboards@opensearch.co'
expect(uriSchema.validate('mailto:Platform.OpenSearchDashboards@opensearch.org')).toBe(
'mailto:Platform.OpenSearchDashboards@opensearch.org'
);
expect(uriSchema.validate('tel:+500-111-222-333')).toBe('tel:+500-111-222-333');
expect(uriSchema.validate('file:///opensearch_dashboards.log')).toBe(
Expand Down Expand Up @@ -98,14 +98,14 @@ describe('#scheme', () => {
test('returns value when URI has required scheme', () => {
const uriSchema = schema.uri({ scheme: ['http', 'https'] });

expect(uriSchema.validate('http://opensearch.co')).toBe('http://opensearch.co');
expect(uriSchema.validate('https://opensearch.co')).toBe('https://opensearch.co');
expect(uriSchema.validate('http://opensearch.org')).toBe('http://opensearch.org');
expect(uriSchema.validate('https://opensearch.org')).toBe('https://opensearch.org');
});

test('returns error when shorter string', () => {
const uriSchema = schema.uri({ scheme: ['http', 'https'] });

expect(() => uriSchema.validate('ftp://opensearch.co')).toThrowErrorMatchingInlineSnapshot(
expect(() => uriSchema.validate('ftp://opensearch.org')).toThrowErrorMatchingInlineSnapshot(
`"expected URI with scheme [http|https]."`
);
expect(() =>
Expand Down
2 changes: 1 addition & 1 deletion packages/osd-dev-utils/certs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The password used for both of these is "storepass". Other copies are also provid

## Certificate generation

[OpenSearch cert-util](https://www.opensearch.co/guide/en/elasticsearch/reference/current/certutil.html) and [OpenSSL](https://www.openssl.org/) were used to generate these certificates. The following commands were used from the root directory of OpenSearch:
[OpenSearch cert-util](https://www.opensearch.org/guide/en/elasticsearch/reference/current/certutil.html) and [OpenSSL](https://www.openssl.org/) were used to generate these certificates. The following commands were used from the root directory of OpenSearch:

```
# Generate the PKCS #12 keystore for a CA, valid for 50 years
Expand Down
2 changes: 1 addition & 1 deletion packages/osd-logging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ is still in `core` for now.
- [Log level](#log-level)
- [Layouts](#layouts)

The way logging works in OpenSearch Dashboards is inspired by `log4j 2` logging framework used by [Elasticsearch](https://www.opensearch.co/guide/en/elasticsearch/reference/current/settings.html#logging).
The way logging works in OpenSearch Dashboards is inspired by `log4j 2` logging framework used by [Elasticsearch](https://www.opensearch.org/guide/en/elasticsearch/reference/current/settings.html#logging).
The main idea is to have consistent logging behaviour (configuration, log format etc.) across the entire Elastic Stack
where possible.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
"_cluster/health",
"_cluster/health/{indices}"
],
"documentation": "https://www.opensearch.co/guide/en/elasticsearch/reference/master/cluster-health.html"
"documentation": "https://www.opensearch.org/guide/en/elasticsearch/reference/master/cluster-health.html"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"cluster.health":{
"documentation":{
"url":"https://www.opensearch.co/guide/en/elasticsearch/reference/master/cluster-health.html",
"url":"https://www.opensearch.org/guide/en/elasticsearch/reference/master/cluster-health.html",
"description":"Returns basic information about the health of the cluster."
},
"stability":"stable",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<![CDATA[]]>
</system-out>
<failure>
<![CDATA[Error: Unable to read artifact info from https://artifacts-api.opensearch.co/v1/versions/8.0.0-SNAPSHOT/builds/latest/projects/elasticsearch: Service Temporarily Unavailable
<![CDATA[Error: Unable to read artifact info from https://artifacts-api.opensearch.org/v1/versions/8.0.0-SNAPSHOT/builds/latest/projects/elasticsearch: Service Temporarily Unavailable
<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body bgcolor="white">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ it('rewrites mocha reports with minimal changes', async () => {
+
‹/system-out›
- ‹failure›
- ‹![CDATA[Error: Unable to read artifact info from https://artifacts-api.opensearch.co/v1/versions/8.0.0-SNAPSHOT/builds/latest/projects/elasticsearch: Service Temporarily Unavailable
- ‹![CDATA[Error: Unable to read artifact info from https://artifacts-api.opensearch.org/v1/versions/8.0.0-SNAPSHOT/builds/latest/projects/elasticsearch: Service Temporarily Unavailable
+ ‹failure›‹![CDATA[
+ Error: Unable to read artifact info from https://artifacts-api.opensearch.co/v1/versions/8.0.0-SNAPSHOT/builds/latest/projects/elasticsearch: Service Temporarily Unavailable
+ Error: Unable to read artifact info from https://artifacts-api.opensearch.org/v1/versions/8.0.0-SNAPSHOT/builds/latest/projects/elasticsearch: Service Temporarily Unavailable
‹html›
‹head›‹title›503 Service Temporarily Unavailable‹/title›‹/head›
‹body bgcolor="white"›
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ it('discovers failures in mocha report', async () => {
Object {
"classname": "X-Pack Mocha Tests.x-pack/legacy/plugins/code/server/__tests__/multi_node·ts",
"failure": "
Error: Unable to read artifact info from https://artifacts-api.opensearch.co/v1/versions/8.0.0-SNAPSHOT/builds/latest/projects/elasticsearch: Service Temporarily Unavailable
Error: Unable to read artifact info from https://artifacts-api.opensearch.org/v1/versions/8.0.0-SNAPSHOT/builds/latest/projects/elasticsearch: Service Temporarily Unavailable
<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body bgcolor=\\"white\\">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class GuideNav extends Component {
<span className="guideNav__version">{this.props.version}</span>
</Link>
<a
href="http://opensearch.co"
href="http://opensearch.org"
className="guideNav__elasticLogo"
aria-label="Go to the Elastic website"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/cli/serve/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default function (program) {
// links in other documentation sources, like "View this tutorial [here](http://localhost:5601/app/tutorial/xyz)".
// We can tell users they only have to run with `yarn start --run-examples` to get those
// local links to work. Similar to what we do for "View in Console" links in our
// opensearch.co links.
// opensearch.org links.
basePath: opts.runExamples ? false : !!opts.basePath,
optimize: !!opts.optimize,
disableOptimizer: !opts.optimizer,
Expand Down
2 changes: 1 addition & 1 deletion src/cli_plugin/install/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { fromRoot } from '../../core/server/utils';
function generateUrls({ version, plugin }) {
return [
plugin,
`https://artifacts.opensearch.co/downloads/kibana-plugins/${plugin}/${plugin}-${version}.zip`,
`https://artifacts.opensearch.org/downloads/kibana-plugins/${plugin}/${plugin}-${version}.zip`,
];
}

Expand Down
4 changes: 2 additions & 2 deletions src/cli_plugin/install/settings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('parse function', function () {
"timeout": 0,
"urls": Array [
"plugin name",
"https://artifacts.opensearch.co/downloads/kibana-plugins/plugin name/plugin name-1234.zip",
"https://artifacts.opensearch.org/downloads/kibana-plugins/plugin name/plugin name-1234.zip",
],
"version": 1234,
"workingPath": <absolute path>/plugins/.plugin.installing,
Expand All @@ -101,7 +101,7 @@ describe('parse function', function () {
"timeout": 0,
"urls": Array [
"plugin name",
"https://artifacts.opensearch.co/downloads/kibana-plugins/plugin name/plugin name-1234.zip",
"https://artifacts.opensearch.org/downloads/kibana-plugins/plugin name/plugin name-1234.zip",
],
"version": 1234,
"workingPath": <absolute path>/plugins/.plugin.installing,
Expand Down
2 changes: 1 addition & 1 deletion src/core/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ import { savedObjectsClientMock } from '../../../../../core/server/mocks';
describe('shortUrlLookup', () => {
const ID = 'bf00ad16941fc51420f91a93428b27a0';
const TYPE = 'url';
const URL = 'http://opensearch.co';
const URL = 'http://opensearch.org';

const mockSavedObjectsClient = savedObjectsClientMock.create();

Expand Down
2 changes: 1 addition & 1 deletion src/core/public/chrome/chrome_service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class ChromeService {
defaultMessage="Support for Internet Explorer will be dropped in future versions of this software, please check {link}."
values={{
link: (
<EuiLink target="_blank" href="https://www.opensearch.co/support/matrix" external>
<EuiLink target="_blank" href="https://www.opensearch.org/support/matrix" external>
<FormattedMessage
id="core.chrome.browserDeprecationLink"
defaultMessage="the support matrix on our website"
Expand Down
4 changes: 2 additions & 2 deletions src/core/public/chrome/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
*/

// export const OPENSEARCH_DASHBOARDS_FEEDBACK_LINK =
// 'https://www.opensearch.co/products/kibana/feedback?blade=kibanafeedback';
// 'https://www.opensearch.org/products/kibana/feedback?blade=kibanafeedback';
// export const OPENSEARCH_DASHBOARDS_ASK_OPENSEARCH_LINK =
// 'https://www.opensearch.co/products/kibana/ask-elastic?blade=kibanaaskelastic';
// 'https://www.opensearch.org/products/kibana/ask-elastic?blade=kibanaaskelastic';
// 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';
Expand Down
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 @@ -78,7 +78,7 @@ export type ChromeHelpExtensionMenuDiscussLink = EuiButtonEmptyProps & {
linkType: 'discuss';
/**
* URL to discuss page.
* i.e. `https://discuss.opensearch.co/c/${appName}`
* i.e. `https://discuss.opensearch.org/c/${appName}`
*/
href: string;
};
Expand Down
2 changes: 1 addition & 1 deletion src/core/public/doc_links/doc_links_service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('DocLinksService#start()', () => {
const api = service.start({ injectedMetadata });
expect(api.DOC_LINK_VERSION).toEqual('test-branch');
expect(api.links.opensearchDashboards).toEqual(
'https://www.opensearch.co/guide/en/kibana/test-branch/index.html'
'https://www.opensearch.org/guide/en/kibana/test-branch/index.html'
);
});
});
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 @@ -42,7 +42,7 @@ export class DocLinksService {
public setup() {}
public start({ injectedMetadata }: StartDeps): DocLinksStart {
const DOC_LINK_VERSION = injectedMetadata.getOpenSearchDashboardsBranch();
const OPENSEARCH_WEBSITE_URL = 'https://www.opensearch.co/';
const OPENSEARCH_WEBSITE_URL = 'https://www.opensearch.org/';
const OPENSEARCH_DOCS = `${OPENSEARCH_WEBSITE_URL}guide/en/elasticsearch/reference/${DOC_LINK_VERSION}/`;

return deepFreeze({
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/logging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- [Logging config migration](#logging-config-migration)
- [Log record format changes](#log-record-format-changes)

The way logging works in OpenSearch Dashboards is inspired by `log4j 2` logging framework used by [OpenSearch](https://www.opensearch.co/guide/en/elasticsearch/reference/current/settings.html#logging).
The way logging works in OpenSearch Dashboards is inspired by `log4j 2` logging framework used by [OpenSearch](https://www.opensearch.org/guide/en/elasticsearch/reference/current/settings.html#logging).
The main idea is to have consistent logging behaviour (configuration, log format etc.) across the entire OpenSearch Stack
where possible.

Expand Down
2 changes: 1 addition & 1 deletion src/core/server/saved_objects/mappings/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export interface SavedObjectsMappingProperties {
/**
* Describe a {@link SavedObjectsTypeMappingDefinition | saved object type mapping} field.
*
* Please refer to {@link https://www.opensearch.co/guide/en/elasticsearch/reference/current/mapping-types.html | elasticsearch documentation}
* Please refer to {@link https://www.opensearch.org/guide/en/elasticsearch/reference/current/mapping-types.html | elasticsearch documentation}
* For the mapping documentation
*
* @public
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/saved_objects/migrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ If a plugin is disbled, all of its documents are retained in the OpenSearch Dash
OpenSearch Dashboards index migrations expose a few config settings which might be tweaked:

- `migrations.scrollDuration` - The
[scroll](https://www.opensearch.co/guide/en/elasticsearch/reference/current/search-request-scroll.html#scroll-search-context)
[scroll](https://www.opensearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html#scroll-search-context)
value used to read batches of documents from the source index. Defaults to
`15m`.
- `migrations.batchSize` - The number of documents to read / transform / write
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/ui_settings/settings/date_formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const getDateFormatSettings = (): Record<string, UiSettingsParams> => {
defaultMessage: 'Used for the {dateNanosLink} datatype of OpenSearch',
values: {
dateNanosLink:
'<a href="https://www.opensearch.co/guide/en/elasticsearch/reference/master/date_nanos.html" target="_blank" rel="noopener noreferrer">' +
'<a href="https://www.opensearch.org/guide/en/elasticsearch/reference/master/date_nanos.html" target="_blank" rel="noopener noreferrer">' +
i18n.translate('core.ui_settings.params.dateNanosLinkTitle', {
defaultMessage: 'date_nanos',
}) +
Expand Down
2 changes: 1 addition & 1 deletion src/legacy/server/logging/log_format_json.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('OsdLoggerJsonFormat', () => {
source: {
remoteAddress: '127.0.0.1',
userAgent: 'Test Thing',
referer: 'opensearch.co',
referer: 'opensearch.org',
},
};
const result = await createPromiseFromStreams([createListStream([event]), format]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ export const createGoAgentInstructions = (apmServerUrl = '', secretToken = '') =
textPre: i18n.translate('apmOss.tutorial.goClient.install.textPre', {
defaultMessage: 'Install the APM agent packages for Go.',
}),
commands: ['go get go.opensearch.co/apm'],
commands: ['go get go.opensearch.org/apm'],
},
{
title: i18n.translate('apmOss.tutorial.goClient.configure.title', {
Expand Down Expand Up @@ -539,7 +539,7 @@ by using the tracer API directly.',
import (
"net/http"
"go.opensearch.co/apm/module/apmhttp"
"go.opensearch.org/apm/module/apmhttp"
)
func main() {curlyOpen}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const createDownloadServerTitle = () =>
export const createDownloadServerOsx = () => ({
title: createDownloadServerTitle(),
commands: [
'curl -L -O https://artifacts.opensearch.co/downloads/apm-server/apm-server-{config.opensearchDashboards.version}-darwin-x86_64.tar.gz',
'curl -L -O https://artifacts.opensearch.org/downloads/apm-server/apm-server-{config.opensearchDashboards.version}-darwin-x86_64.tar.gz',
'tar xzvf apm-server-{config.opensearchDashboards.version}-darwin-x86_64.tar.gz',
'cd apm-server-{config.opensearchDashboards.version}-darwin-x86_64/',
],
Expand All @@ -96,7 +96,7 @@ export const createDownloadServerOsx = () => ({
export const createDownloadServerDeb = () => ({
title: createDownloadServerTitle(),
commands: [
'curl -L -O https://artifacts.opensearch.co/downloads/apm-server/apm-server-{config.opensearchDashboards.version}-amd64.deb',
'curl -L -O https://artifacts.opensearch.org/downloads/apm-server/apm-server-{config.opensearchDashboards.version}-amd64.deb',
'sudo dpkg -i apm-server-{config.opensearchDashboards.version}-amd64.deb',
],
textPost: i18n.translate('apmOss.tutorial.downloadServerTitle', {
Expand All @@ -110,7 +110,7 @@ export const createDownloadServerDeb = () => ({
export const createDownloadServerRpm = () => ({
title: createDownloadServerTitle(),
commands: [
'curl -L -O https://artifacts.opensearch.co/downloads/apm-server/apm-server-{config.opensearchDashboards.version}-x86_64.rpm',
'curl -L -O https://artifacts.opensearch.org/downloads/apm-server/apm-server-{config.opensearchDashboards.version}-x86_64.rpm',
'sudo rpm -vi apm-server-{config.opensearchDashboards.version}-x86_64.rpm',
],
textPost: i18n.translate('apmOss.tutorial.downloadServerRpm', {
Expand All @@ -137,7 +137,7 @@ directory to `APM-Server`.\n4. Open a PowerShell prompt as an Administrator \
**Run As Administrator**). If you are running Windows XP, you might need to download and install \
PowerShell.\n5. From the PowerShell prompt, run the following commands to install APM Server as a Windows service:',
values: {
downloadPageLink: 'https://www.opensearch.co/downloads/apm/apm-server',
downloadPageLink: 'https://www.opensearch.org/downloads/apm/apm-server',
zipFileExtractFolder: '`C:\\Program Files`',
apmServerDirectory: '`apm-server-{config.opensearchDashboards.version}-windows`',
},
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/bfetch/docs/browser/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Executes an HTTP request and expects that server streams back results using
HTTP/1 `Transfer-Encoding: chunked`.

```ts
const { stream } = bfetch.fetchStreaming({ url: 'http://opensearch.co' });
const { stream } = bfetch.fetchStreaming({ url: 'http://opensearch.org' });

stream.subscribe(value => {});
```
Loading

0 comments on commit 9973595

Please sign in to comment.