Skip to content

Commit

Permalink
Merge pull request #377 from RedHatProductSecurity/feature/OSIDB-3129…
Browse files Browse the repository at this point in the history
…-multi-flaws-related-trackers

Feature/osidb 3129 multi flaws related trackers
  • Loading branch information
superbuggy authored Oct 31, 2024
2 parents 689bc3c + 3fb75fb commit a6fe8f9
Show file tree
Hide file tree
Showing 59 changed files with 7,309 additions and 3,388 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

## [Unreleased]
### Added
* Add multi-flaw tracker filing (`OSIDB-3129`)
* Added new CVSS versions and issuers on flaw form (`OSIDB-3546`)

### Changed
* Allow empty impact on flaw (`OSIDB-3596`)

### Fixed
* Corrected BZ link overlapping flaw promotion button (`OSIDB-3529`)

### Changed
* Allow empty impact on flaw (`OSIDB-3596`)
* Indicate affect module filters functionality more clearly (`OSIDB-3509`)
* Reflects component selections in Tracker Manager
* Reworked Affect Offering UI to make filtering functionality clearer

## [2024.10.0]
### Added
* Extend incident types to include 'Minor' and 'Zero Day' (`OSIDB-3442`)
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default tseslint.config(
'@stylistic/type-annotation-spacing': 'error',
'eol-last': ['error', 'always'],
'linebreak-style': ['error', 'unix'],
'max-len': ['error', { code: 120 }],
'max-len': ['error', { code: 120, ignoreUrls: true }],
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@vueuse/core": "^10.4.1",
"axios": "^1.4.0",
"bootstrap": "^5.3.2",
"bootstrap-icons": "^1.10.5",
"bootstrap-icons": "^1.11.3",
"jwt-decode": "^3.1.2",
"luxon": "^3.4.3",
"marked": "^12.0.1",
Expand Down
13 changes: 11 additions & 2 deletions src/__tests__/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,17 @@ const onUnhandledRequest = vi.fn().mockImplementation((req: Request) => {
});
export const server = setupServer();

vi.spyOn(console, 'warn').mockImplementation((...msg) => { assert.fail(msg.join(' ')); });
vi.spyOn(console, 'error').mockImplementation((...msg) => { assert.fail(msg.join(' ')); });
vi.spyOn(console, 'warn').mockImplementation((...msg) => {
const warning = msg.join(' ');
console.debug(warning);
assert.fail(warning);
});

vi.spyOn(console, 'error').mockImplementation((...msg) => {
const error = msg.join(' ');
console.debug(error);
assert.fail(error);
});

beforeAll(() => {
server.listen({
Expand Down
3 changes: 2 additions & 1 deletion src/components/CvssExplainForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import LabelCollapsible from '@/components/widgets/LabelCollapsible.vue';
import type { ZodFlawType } from '@/types/zodFlaw';
import { IssuerEnum } from '@/generated-client';
import { CVSS_V3 } from '@/constants';
const modelValue = defineModel<ZodFlawType>({ required: true });
const rhCvss = computed(() => modelValue.value?.cvss_scores
.findIndex(cvss => cvss.issuer === IssuerEnum.Rh
&& cvss.cvss_version === 'V3'));
&& cvss.cvss_version === CVSS_V3));
const isExpanded = ref(false);
</script>
Expand Down
Loading

0 comments on commit a6fe8f9

Please sign in to comment.