(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
+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,
};