From d688aae6c22a6e4d8cdffb90210ae14e6edb510b Mon Sep 17 00:00:00 2001 From: Sam David Date: Thu, 24 Oct 2024 12:38:38 +0530 Subject: [PATCH] fix sbom deprecations --- app/components/sbom/app-list/filter-selected-item/index.ts | 1 + app/components/sbom/app-list/header/index.hbs | 2 +- app/components/sbom/app-list/index.ts | 2 +- app/components/sbom/app-scan/list/index.ts | 2 +- app/components/sbom/component-details/vulnerabilities/index.ts | 2 +- app/components/sbom/scan-details/component-list/index.ts | 2 +- app/models/sbom-component.ts | 2 +- app/models/sbom-vulnerability-audit.ts | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/components/sbom/app-list/filter-selected-item/index.ts b/app/components/sbom/app-list/filter-selected-item/index.ts index 2fb93094a..e3d113bf3 100644 --- a/app/components/sbom/app-list/filter-selected-item/index.ts +++ b/app/components/sbom/app-list/filter-selected-item/index.ts @@ -25,5 +25,6 @@ export default class SbomAppListFilterSelectedItemComponent extends Component; @attr('string') diff --git a/app/models/sbom-vulnerability-audit.ts b/app/models/sbom-vulnerability-audit.ts index 038094126..9eebebaad 100644 --- a/app/models/sbom-vulnerability-audit.ts +++ b/app/models/sbom-vulnerability-audit.ts @@ -20,7 +20,7 @@ type ParsedVersion = { }; export default class SbomVulnerabilityAuditModel extends Model { - @belongsTo('sbom-vulnerability', { async: false }) + @belongsTo('sbom-vulnerability', { async: false, inverse: null }) declare sbVulnerability: SbomVulnerabilityModel; @attr()