(feature): remove integration router and use catalog resource type since we use the same resources required by the catalog entity

Signed-off-by: Hasan Oezdemir <21654050+nodify-at@users.noreply.github.com>
This commit is contained in:
Hasan Oezdemir
2022-03-01 00:08:35 +01:00
parent ed2259afcb
commit 1543dcf31a
11 changed files with 84 additions and 70 deletions
-3
View File
@@ -8,8 +8,5 @@ import { Permission } from '@backstage/plugin-permission-common';
// @public
export const jenkinsExecutePermission: Permission;
// @public (undocumented)
export const RESOURCE_TYPE_JENKINS = 'jenkins';
// (No @packageDocumentation comment for this package)
```
+1
View File
@@ -22,6 +22,7 @@
"clean": "backstage-cli package clean"
},
"dependencies": {
"@backstage/plugin-catalog-common": "^0.1.4",
"@backstage/plugin-permission-common": "^0.5.1"
},
"devDependencies": {
+2 -6
View File
@@ -13,13 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { RESOURCE_TYPE_CATALOG_ENTITY } from '@backstage/plugin-catalog-common';
import { Permission } from '@backstage/plugin-permission-common';
/**
* @public
*/
export const RESOURCE_TYPE_JENKINS = 'jenkins';
/**
* This permission is used to determine if a user is allowed to execute an action in jenkins plugin
*
@@ -30,5 +26,5 @@ export const jenkinsExecutePermission: Permission = {
attributes: {
action: 'update',
},
resourceType: RESOURCE_TYPE_JENKINS,
resourceType: RESOURCE_TYPE_CATALOG_ENTITY,
};