Skip to content

feat: adding username and display name - #4242

Closed
ulemons wants to merge 1 commit into
mainfrom
feat/accept-params-for-stewards-fields
Closed

feat: adding username and display name#4242
ulemons wants to merge 1 commit into
mainfrom
feat/accept-params-for-stewards-fields

Conversation

@ulemons

@ulemons ulemons commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Support writing username and displayName of the steward on the assignemnt.

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Performance improvement
  • Chore / dependency update
  • Documentation

Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
@ulemons ulemons self-assigned this Jun 19, 2026
Copilot AI review requested due to automatic review settings June 19, 2026 14:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the OSSPCKGS stewardship assignment flow to persist a steward’s username and displayName at assignment time (stored on stewardship_stewards) and expose those fields through the data-access-layer and public API schemas/types.

Changes:

  • Add username and display_name columns to stewardship_stewards via a new migration.
  • Update DAL stewardship assignment + read paths (and package list steward JSON) to include username/displayName.
  • Update public API request validation/types and OpenAPI schemas to reflect the new fields.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
services/libs/data-access-layer/src/osspckgs/stewardships.ts Writes/reads steward username + displayName in assignment + summary queries and maps them into DAL records.
services/libs/data-access-layer/src/osspckgs/api.ts Extends package list stewards JSON aggregation to include username + displayName.
backend/src/osspckgs/migrations/V1781877251__stewardship-steward-name-username.sql Adds username and display_name columns to stewardship_stewards.
backend/src/api/public/v1/stewardships/openapi.yaml Updates StewardRecord schema with username + displayName.
backend/src/api/public/v1/stewardships/assignSteward.ts Accepts optional username + displayName in request body and passes them through to DAL.
backend/src/api/public/v1/packages/types.ts Updates the public Steward TypeScript type to include username + displayName.
backend/src/api/public/v1/akrites/openapi.yaml Updates StewardEntry schema with username + displayName.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 18 to +22
export interface StewardshipStewardRecord {
id: string
stewardshipId: string
userId: string
name: string | null
username: string | null
Comment on lines 92 to +96
return {
id: String(row.id),
stewardshipId: String(row.stewardship_id),
userId: String(row.user_id),
name: null,
username: row.username ? String(row.username) : null,
Comment on lines 463 to 466
SELECT COALESCE(
json_agg(
json_build_object('userId', ss.user_id, 'role', ss.role, 'assignedAt', ss.assigned_at)
json_build_object('userId', ss.user_id, 'username', ss.username, 'displayName', ss.display_name, 'role', ss.role, 'assignedAt', ss.assigned_at)
ORDER BY ss.assigned_at ASC
Comment on lines 25 to 29
export interface Steward {
userId: string
name: string
username: string | null
displayName: string | null
role: 'lead' | 'co_steward'
Comment on lines 125 to +129
userId:
type: string
description: Auth0 sub of the assigned steward.
example: abc123
name:
username:
Comment on lines +129 to +134
username:
type:
- string
- 'null'
description: Display name of the steward. Null if not available.
description: Username of the steward in LFX. Null if not provided at assignment time.
example: jonathanr
Comment on lines 152 to 160
userId:
type: string
name:
username:
type: string
nullable: true
displayName:
type: string
nullable: true
role:
@ulemons ulemons closed this Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants