Skip to content

Commit 2e92830

Browse files
committed
refactor: remove old push, login, and connection to the old API registry (#1991)
1 parent 684db3e commit 2e92830

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+83
-2537
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ You might need to adjust the CLI versions that need to be tested in the `benchma
236236
- **`packages/core/src/decorators`**: contains the built-in [decorators](../docs/resources/built-in-decorators.md) code.
237237
- **`packages/core/src/format`**: contains the format options.
238238
- **`packages/core/src/js-yaml`**: contains the [JS-YAML](https://www.npmjs.com/package/js-yaml) based functions.
239-
- **`packages/core/src/redocly`**: contains the Redocly API registry integration setup.
239+
<!-- - **`packages/core/src/redocly`**: contains the Redocly API registry integration setup. FIXME: update the structure description -->
240240
- **`packages/core/src/rules`**: contains the built-in [rules](../docs/resources/built-in-rules.md) code.
241241
- **`packages/core/src/types`**: contains the common types for several OpenAPI versions.
242242
- **`packages/core/src/typings`**: contains the common Typescript typings.

__tests__/lint-config/config-with-refs-extended/.redocly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rules:
99
openapi:
1010
$ref: theme-openapi.yaml
1111

12-
organization: false # wrong, expected string
12+
decorators: wrong, expected object
1313

1414
seo:
1515
$ref: seo.yaml

__tests__/lint-config/config-with-refs-extended/snapshot.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Property \`unexpected-property\` is not expected here.
1414
Error was generated by the configuration spec rule.
1515
1616
17-
[2] .redocly.yaml:12:15 at #/organization
17+
[2] .redocly.yaml:12:13 at #/decorators
1818
19-
Expected type \`string\` but got \`boolean\`.
19+
Expected type \`object\` but got \`string\`.
2020
2121
10 | $ref: theme-openapi.yaml
2222
11 |
23-
12 | organization: false # wrong, expected string
24-
| ^^^^^
23+
12 | decorators: wrong, expected object
24+
| ^^^^^^^^^^^^^^^^^^^^^^
2525
13 |
2626
14 | seo:
2727

docs/commands/push-status.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ REDOCLY_AUTHORIZATION=<api-key> redocly push-status <pushId> --organization <org
3434
| --project, -p | string | **REQUIRED.** [Project slug](#find-org-slug). |
3535
| --domain, -d | string | The domain that the `push` command pushed to. Default value is [https://app.cloud.redocly.com](https://app.cloud.redocly.com). |
3636
| --wait | boolean | Waits until the build is completed if it is in progress. Default value is `false`. |
37-
| --max-execution-time | number | Maximum wait time for build completion in seconds (used in conjunction with the `--wait` option). Default value is `600`. |
37+
| --max-execution-time | number | Maximum wait time for build completion in seconds (used in conjunction with the `--wait` option). Default value is `1200`. |
3838

3939
<details>
4040
<summary>How to find and copy the Reunite organization or project slugs<a id="find-org-slug"></a></summary>

docs/commands/push.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ REDOCLY_AUTHORIZATION=<api-key> redocly push <files> --organization <organizatio
4949
| --domain | string | The domain to which the files are pushed. Default value is [https://app.cloud.redocly.com](https://app.cloud.redocly.com). |
5050
| --default-branch | string | The default branch of the repository the push originates from. Default value is `main`. |
5151
| --lint-config | string | Severity level for configuration file linting. <br/> **Possible values:** `warn`, `error`, `off`. Default value is `warn`. |
52-
| --max-execution-time | number | Maximum wait time for deployment completion in seconds (used in conjunction with the `--wait-for-deployment` option). Default value is `600`. |
52+
| --max-execution-time | number | Maximum wait time for deployment completion in seconds (used in conjunction with the `--wait-for-deployment` option). Default value is `1200`. |
5353
| --wait-for-deployment | boolean | Waits until the build is completed if it is in progress. Behaves the same as `push-status` command when passed. See [push-status](./push-status.md) command. Default value is `false`. |
5454
| --verbose | boolean | Verbose output. Default value is `false`. |
5555
| --help | boolean | Help output for the command. |

packages/cli/src/__mocks__/@redocly/openapi-core.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export const __redoclyClient = {
1818
},
1919
};
2020

21-
export const RedoclyClient = jest.fn(() => __redoclyClient);
2221
export const loadConfig = jest.fn(() => ConfigFixture);
2322
export const getMergedConfig = jest.fn();
2423
export const getProxyAgent = jest.fn();

packages/cli/src/__tests__/commands/push-region.test.ts

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)