Skip to content

Commit 08665bb

Browse files
update client/openapi/trustd.yaml (#282)
Signed-off-by: GitHub <[email protected]> Co-authored-by: github-merge-queue[bot] <github-merge-queue[bot]@users.noreply.github.com>
1 parent 6d17277 commit 08665bb

File tree

8 files changed

+20
-5
lines changed

8 files changed

+20
-5
lines changed

client/openapi/trustd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2078,12 +2078,16 @@ components:
20782078
required:
20792079
- uuid
20802080
- identifier
2081+
- document_id
20812082
- issuer
20822083
- published
20832084
- withdrawn
20842085
- title
20852086
- labels
20862087
properties:
2088+
document_id:
2089+
type: string
2090+
description: The identifier of the advisory, as provided by the document.
20872091
identifier:
20882092
type: string
20892093
description: The identifier of the advisory, as assigned by the issuing organization.

client/src/app/client/schemas.gen.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,19 @@ export const AdvisoryHeadSchema = {
5454
required: [
5555
"uuid",
5656
"identifier",
57+
"document_id",
5758
"issuer",
5859
"published",
5960
"withdrawn",
6061
"title",
6162
"labels",
6263
],
6364
properties: {
65+
document_id: {
66+
type: "string",
67+
description:
68+
"The identifier of the advisory, as provided by the document.",
69+
},
6470
identifier: {
6571
type: "string",
6672
description:

client/src/app/client/types.gen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ export type AdvisoryDetails = AdvisoryHead &
1414
};
1515

1616
export type AdvisoryHead = {
17+
/**
18+
* The identifier of the advisory, as provided by the document.
19+
*/
20+
document_id: string;
1721
/**
1822
* The identifier of the advisory, as assigned by the issuing organization.
1923
*/

client/src/app/pages/advisory-details/advisory-details.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const AdvisoryDetails: React.FC = () => {
5050
<SplitItem isFilled>
5151
<TextContent>
5252
<Text component="h1">
53-
{advisory?.identifier ?? advisoryId ?? ""}
53+
{advisory?.document_id ?? advisoryId ?? ""}
5454
</Text>
5555
<Text component="p">Advisory detail information</Text>
5656
</TextContent>

client/src/app/pages/advisory-list/advisory-table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const AdvisoryTable: React.FC = ({}) => {
103103
})}
104104
>
105105
<NavLink to={`/advisories/${item.uuid}`}>
106-
{item.identifier}
106+
{item.document_id}
107107
</NavLink>
108108
</Td>
109109
<Td

client/src/app/pages/search/components/SearchMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ function useAllEntities(filterText: string) {
107107
const tmpArray: IEntity[] = [];
108108

109109
const transformedAdvisories: IEntity[] = advisories.map((item) => ({
110-
id: item.identifier,
111-
title: item.identifier,
110+
id: item.document_id,
111+
title: item.document_id,
112112
description: item.title?.substring(0, 75),
113113
navLink: `/advisories/${item.uuid}`,
114114
type: "Advisory",

client/src/app/pages/vulnerability-details/advisories-by-vulnerability.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const PrimaryState: Story = {
2727
{
2828
uuid: "urn:uuid:753e8448-2086-4908-a027-1f1a7b95fa6a",
2929
identifier: "CVE-2024-8391",
30+
document_id: "CVE-2024-8391",
3031
issuer: {
3132
id: "9cf89bf3-ef8d-44ba-87a8-66a324795996",
3233
name: "eclipse",

client/src/app/pages/vulnerability-details/advisories-by-vulnerability.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const AdvisoriesByVulnerability: React.FC<
109109
<Tr key={item.identifier} {...getTrProps({ item })}>
110110
<Td width={15} {...getTdProps({ columnKey: "identifier" })}>
111111
<Link to={`/advisories/${item.uuid}`}>
112-
{item.identifier}
112+
{item.document_id}
113113
</Link>
114114
</Td>
115115
<Td

0 commit comments

Comments
 (0)