@backstage-community/plugin-3scale-backend 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## @janus-idp/backstage-plugin-3scale-backend [1.8.0](https://github.com/janus-idp/backstage-plugins/compare/@janus-idp/backstage-plugin-3scale-backend@1.7.1...@janus-idp/backstage-plugin-3scale-backend@1.8.0) (2024-07-25)
2
2
 
3
+ ## 3.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 3f84dd4: Removed `export-dynamic` script and Janus IDP cli from the build process and npm release.
8
+
3
9
  ## 3.0.1
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-3scale-backend",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.d.ts",
@@ -25,10 +25,8 @@
25
25
  "scripts": {
26
26
  "build": "backstage-cli package build",
27
27
  "clean": "backstage-cli package clean",
28
- "export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
29
28
  "lint": "backstage-cli package lint",
30
29
  "postpack": "backstage-cli package postpack",
31
- "postversion": "yarn run export-dynamic",
32
30
  "prepack": "backstage-cli package prepack",
33
31
  "start": "backstage-cli package start",
34
32
  "test": "backstage-cli package test --passWithNoTests --coverage"
@@ -49,18 +47,15 @@
49
47
  "@backstage/cli": "^0.28.0",
50
48
  "@backstage/config": "^1.2.0",
51
49
  "@backstage/plugin-catalog-backend": "^1.27.1",
52
- "@janus-idp/cli": "1.13.1",
53
50
  "@types/supertest": "6.0.2",
54
51
  "@types/swagger2openapi": "^7.0.4",
55
- "msw": "1.3.3",
52
+ "msw": "1.3.4",
56
53
  "supertest": "7.0.0"
57
54
  },
58
55
  "files": [
59
- "dist",
56
+ "app-config.example.yaml",
60
57
  "config.d.ts",
61
- "dist-dynamic/*.*",
62
- "dist-dynamic/dist/**",
63
- "app-config.yaml"
58
+ "dist"
64
59
  ],
65
60
  "configSchema": "config.d.ts",
66
61
  "repository": {
@@ -1,61 +0,0 @@
1
- # 3scale Backstage provider
2
-
3
- The 3scale Backstage provider plugin synchronizes the 3scale content into the [Backstage](https://backstage.io/) catalog.
4
-
5
- ## For administrators
6
-
7
- ### Installation
8
-
9
- Run the following command to install the 3scale Backstage provider plugin:
10
-
11
- ```console
12
- yarn workspace backend add @backstage-community/plugin-3scale-backend
13
- ```
14
-
15
- ### Configuration
16
-
17
- 3scale Backstage provider allows configuration of one or multiple providers using the `app-config.yaml` configuration file of Backstage.
18
-
19
- #### New Backend Procedure
20
-
21
- 1. Use a `threeScaleApiEntity` marker to start configuring the `app-config.yaml` file of Backstage:
22
-
23
- ```yaml title="app-config.yaml"
24
- catalog:
25
- providers:
26
- threeScaleApiEntity:
27
- dev:
28
- baseUrl: https://<TENANT>-admin.3scale.net
29
- accessToken: <ACCESS_TOKEN>
30
- schedule: # optional; same options as in TaskScheduleDefinition
31
- # supports cron, ISO duration, "human duration" as used in code
32
- frequency: { minutes: 30 }
33
- # supports ISO duration, "human duration" as used in code
34
- timeout: { minutes: 3 }
35
- ```
36
-
37
- **NOTE**
38
- Make sure to configure the schedule inside the `app-config.yaml` file. The default schedule is a frequency of 30 minutes and a timeout of 3 minutes.
39
-
40
- 2. Add the following code to the `packages/backend/src/index.ts` file:
41
-
42
- ```ts title="packages/backend/src/index.ts"
43
- const backend = createBackend();
44
-
45
- /* highlight-add-next-line */
46
- backend.add(import('@backstage-community/plugin-3scale-backend'));
47
-
48
- backend.start();
49
- ```
50
-
51
- ### Troubleshooting
52
-
53
- When you start your Backstage application, you can see some log lines as follows:
54
-
55
- ```log
56
- [1] 2023-02-13T15:26:09.356Z catalog info Discovered ApiEntity API type=plugin target=ThreeScaleApiEntityProvider:dev
57
- [1] 2023-02-13T15:26:09.423Z catalog info Discovered ApiEntity Red Hat Event (DEV, v1.2.0) type=plugin target=ThreeScaleApiEntityProvider:dev
58
- [1] 2023-02-13T15:26:09.620Z catalog info Discovered ApiEntity Red Hat Event (TEST, v1.1.0) type=plugin target=ThreeScaleApiEntityProvider:dev
59
- [1] 2023-02-13T15:26:09.819Z catalog info Discovered ApiEntity Red Hat Event (PROD, v1.1.0) type=plugin target=ThreeScaleApiEntityProvider:dev
60
- [1] 2023-02-13T15:26:09.819Z catalog info Applying the mutation with 3 entities type=plugin target=ThreeScaleApiEntityProvider:dev
61
- ```
@@ -1,11 +0,0 @@
1
- catalog:
2
- providers:
3
- threeScaleApiEntity:
4
- dev:
5
- baseUrl: '${THREESCALE_BASE_URL}' # https://<TENANT>-admin.3scale.net
6
- accessToken: '${THREESCALE_ACCESS_TOKEN}'
7
- schedule: # optional; same options as in TaskScheduleDefinition
8
- # supports cron, ISO duration, "human duration" as used in code
9
- frequency: { minutes: 1 }
10
- # supports ISO duration, "human duration" as used in code
11
- timeout: { minutes: 1 }
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright 2024 The Backstage Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import type { SchedulerServiceTaskScheduleDefinitionConfig } from '@backstage/backend-plugin-api';
18
-
19
- export interface Config {
20
- catalog?: {
21
- providers?: {
22
- threeScaleApiEntity?: {
23
- [key: string]: {
24
- /**
25
- * ThreeScaleConfig
26
- */
27
- baseUrl: string;
28
- /** @visibility secret */
29
- accessToken: string;
30
- systemLabel?: string;
31
- ownerLabel?: string;
32
- addLabels?: boolean;
33
- schedule?: SchedulerServiceTaskScheduleDefinitionConfig;
34
- };
35
- };
36
- };
37
- };
38
- }
@@ -1,58 +0,0 @@
1
- {
2
- "name": "@backstage-community/plugin-3scale-backend-dynamic",
3
- "version": "1.8.5",
4
- "license": "Apache-2.0",
5
- "main": "./dist/index.cjs.js",
6
- "types": "src/index.ts",
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
- "backstage": {
11
- "role": "backend-plugin-module",
12
- "supported-versions": "1.28.4",
13
- "pluginId": "3scale",
14
- "pluginPackage": "@backstage-community/plugin-3scale-backend"
15
- },
16
- "exports": {
17
- ".": {
18
- "require": "./dist/index.cjs.js",
19
- "default": "./dist/index.cjs.js"
20
- },
21
- "./package.json": "./package.json"
22
- },
23
- "files": [
24
- "dist",
25
- "config.d.ts",
26
- "app-config.yaml"
27
- ],
28
- "configSchema": "config.d.ts",
29
- "repository": {
30
- "type": "git",
31
- "url": "https://github.com/backstage/community-plugins",
32
- "directory": "workspaces/3scale/plugins/3scale-backend"
33
- },
34
- "keywords": [
35
- "support:tech-preview",
36
- "lifecycle:active",
37
- "backstage",
38
- "plugin"
39
- ],
40
- "homepage": "https://red.ht/rhdh",
41
- "bugs": "https://github.com/backstage/community-plugins/issues",
42
- "author": "Red Hat",
43
- "bundleDependencies": true,
44
- "peerDependencies": {
45
- "@backstage/backend-plugin-api": "^1.0.0",
46
- "@backstage/catalog-model": "^1.7.0",
47
- "@backstage/errors": "^1.2.4",
48
- "@backstage/plugin-catalog-node": "^1.13.0"
49
- },
50
- "overrides": {
51
- "@aws-sdk/util-utf8-browser": {
52
- "@smithy/util-utf8": "^2.0.0"
53
- }
54
- },
55
- "resolutions": {
56
- "@aws-sdk/util-utf8-browser": "npm:@smithy/util-utf8@~2"
57
- }
58
- }
@@ -1,16 +0,0 @@
1
- # This file is generated by running "yarn install" inside your project.
2
- # Manual changes might be lost - proceed with caution!
3
-
4
- __metadata:
5
- version: 6
6
-
7
- "@backstage-community/plugin-3scale-backend-dynamic@workspace:.":
8
- version: 0.0.0-use.local
9
- resolution: "@backstage-community/plugin-3scale-backend-dynamic@workspace:."
10
- peerDependencies:
11
- "@backstage/backend-plugin-api": ^1.0.0
12
- "@backstage/catalog-model": ^1.7.0
13
- "@backstage/errors": ^1.2.4
14
- "@backstage/plugin-catalog-node": ^1.13.0
15
- languageName: unknown
16
- linkType: soft
File without changes