Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* Add subpackages PURL column on affects table (`OSIDB-4697`)
* Add validations to PURLs in affect table fields (`OSIDB-4698`)

### Changed
* Rename flaw "Components" field to "Source Component" (`OSIDB-4690`)

### Fixed
* Pin new affect rows on top (`OSIDB-4342`)
* Suggest trackers across all existing rows (`OSIDB-4638`)
Expand Down
2 changes: 1 addition & 1 deletion src/components/FlawForm/FlawForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const aegisSuggestDescriptionComposable = useAegisSuggestDescription({
</LabelDiv>
<LabelTagsInput
v-model="flaw.components"
label="Components"
label="Source Component"
:error="errors.components"
/>
<div class="row">
Expand Down
6 changes: 3 additions & 3 deletions src/components/__tests__/FlawForm.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('flawForm', () => {

const componentsField = subject
.findAllComponents(LabelTagsInput)
.find(component => component.props().label === 'Components');
.find(component => component.props().label === 'Source Component');
expect(componentsField?.exists()).toBe(true);

const cveIdField = subject
Expand Down Expand Up @@ -188,7 +188,7 @@ describe('flawForm', () => {

const componentsField = subject
.findAllComponents(LabelTagsInput)
.find(component => component.props().label === 'Components');
.find(component => component.props().label === 'Source Component');
expect(componentsField?.exists()).toBe(true);

const cveIdField = subject
Expand Down Expand Up @@ -275,7 +275,7 @@ describe('flawForm', () => {

const componentsField = subject
.findAllComponents(LabelTagsInput)
.find(component => component.props().label === 'Components')
.find(component => component.props().label === 'Source Component')
?.find('.is-invalid');
expect(componentsField?.exists()).toBe(true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ exports[`flawForm > mounts and renders 1`] = `
</div>
</div>
</div><label data-v-76f6bf34="" data-v-76e7a15d="" class="osim-input ps-3 mb-2 input-group">
<div data-v-76f6bf34="" class="row"><span data-v-76f6bf34="" class="form-label col-3">Components</span>
<div data-v-76f6bf34="" class="row"><span data-v-76f6bf34="" class="form-label col-3">Source Component</span>
<div data-v-76f6bf34="" class="col-9">
<div data-v-8bc603c3="" data-v-76f6bf34="" class="osim-pill-list form-control">
<transition-group-stub data-v-8bc603c3="" appear="false" persisted="false" css="true"><span data-v-8bc603c3="" class="osim-pill-list-item badge text-bg-secondary" draggable="true" data-index="0"><span data-v-8bc603c3="" style="cursor: text;">kernel</span><i data-v-8bc603c3="" class="bi bi-x-square ms-1" style="cursor: pointer;" tabindex="0"><span data-v-8bc603c3="" class="visually-hidden">Remove</span></i></span></transition-group-stub><input data-v-8bc603c3="" class="osim-pill-list-input no-drag" type="text">
Expand Down
2 changes: 1 addition & 1 deletion src/constants/flawFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const flawFieldNamesMapping: Record<string, string> = {
impact: 'Impact',
source: 'Source',
statement: 'Statement',
components: 'Components',
components: 'Source Component',
mitigation: 'Mitigation',
reported_dt: 'Reported Date',
unembargo_dt: 'Public Date',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`flawCreateView > should render 1`] = `
</div>
</div>
</div><label data-v-76f6bf34="" data-v-76e7a15d="" class="osim-input ps-3 mb-2 input-group">
<div data-v-76f6bf34="" class="row"><span data-v-76f6bf34="" class="form-label col-3">Components</span>
<div data-v-76f6bf34="" class="row"><span data-v-76f6bf34="" class="form-label col-3">Source Component</span>
<div data-v-76f6bf34="" class="col-9">
<div data-v-8bc603c3="" data-v-76f6bf34="" class="osim-pill-list form-control is-invalid">
<transition-group-stub data-v-8bc603c3="" appear="false" persisted="false" css="true"></transition-group-stub><input data-v-8bc603c3="" class="osim-pill-list-input no-drag" type="text">
Expand Down