Skip to content

Commit edf8b4a

Browse files
committed
feat: add openApi yaml and use auth0 for assignment
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent 58aec2c commit edf8b4a

2 files changed

Lines changed: 22 additions & 24 deletions

File tree

backend/src/api/public/v1/stewardships/openapi.yaml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ components:
113113
example: '42'
114114
userId:
115115
type: string
116-
description: LFID of the assigned steward.
117-
example: jdoe
116+
description: Auth0 sub of the assigned steward.
117+
example: abc123
118118
role:
119119
type: string
120120
enum: [lead, co_steward]
@@ -125,19 +125,18 @@ components:
125125
type:
126126
- string
127127
- 'null'
128-
description: LFID of the admin who assigned this steward.
129-
example: admin-user
128+
description: Auth0 sub of the admin who assigned this steward.
129+
example: xyz789
130130

131131
EscalationResolutionPath:
132132
type: string
133-
# TODO: confirm the 6 resolution path values with Joana (CM-1235)
134133
enum:
135-
- lf_staff_review
136-
- community_outreach
137-
- corporate_adoption
138-
- transfer_ownership
139-
- fork_and_maintain
140-
- deprecate
134+
- right_of_first_refusal
135+
- replace_the_dependency
136+
- find_vendor_for_lts
137+
- consortium_adopts_maintainership
138+
- compensating_controls_monitor
139+
- namespace_takeover
141140

142141
paths:
143142
/stewardships:
@@ -246,13 +245,13 @@ paths:
246245
properties:
247246
userId:
248247
type: string
249-
description: LFID of the user to assign as steward.
250-
example: jdoe
248+
description: Auth0 sub of the user to assign as steward.
249+
example: abc123
251250
role:
252251
type: string
253252
enum: [lead, co_steward]
254253
example:
255-
userId: jdoe
254+
userId: abc123
256255
role: lead
257256
responses:
258257
'200':
@@ -284,10 +283,10 @@ paths:
284283
stewards:
285284
- id: '7'
286285
stewardshipId: '42'
287-
userId: jdoe
286+
userId: abc123
288287
role: lead
289288
assignedAt: '2026-06-15T10:05:00Z'
290-
assignedBy: admin-user
289+
assignedBy: xyz789
291290
'400':
292291
description: Validation error (e.g. invalid role).
293292
content:
@@ -349,7 +348,7 @@ paths:
349348
description: Optional free-text notes for the activity log.
350349
example: Contacted maintainer, no response after 30 days.
351350
example:
352-
resolutionPath: lf_staff_review
351+
resolutionPath: right_of_first_refusal
353352
notes: Contacted maintainer, no response after 30 days.
354353
responses:
355354
'200':

services/libs/data-access-layer/src/osspckgs/stewardships.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,13 @@ export async function getStewardshipSummary(
261261
}
262262
}
263263

264-
// TODO: confirm the 6 resolution path values with Joana (CM-1235 ticket says "6 paths" but doesn't define them)
265264
export const ESCALATION_RESOLUTION_PATHS = [
266-
'lf_staff_review',
267-
'community_outreach',
268-
'corporate_adoption',
269-
'transfer_ownership',
270-
'fork_and_maintain',
271-
'deprecate',
265+
'right_of_first_refusal',
266+
'replace_the_dependency',
267+
'find_vendor_for_lts',
268+
'consortium_adopts_maintainership',
269+
'compensating_controls_monitor',
270+
'namespace_takeover',
272271
] as const
273272

274273
export type EscalationResolutionPath = (typeof ESCALATION_RESOLUTION_PATHS)[number]

0 commit comments

Comments
 (0)