fix(duplicate): projectManager not populated in projectPayloadData on duplicate project page#1560
fix(duplicate): projectManager not populated in projectPayloadData on duplicate project page#1560sujalkalauni wants to merge 10 commits intoeclipse-sw360:mainfrom
Conversation
|
Hey @sujalkalauni ! |
|
Thanks for the review @amritkv. I can see both projectResponsible (top-level string) and projectManager (User object in _embedded) in the Project type. I followed the same pattern as leadArchitect and projectOwner which also use _embedded. |
Signed-off-by: Sujal Kalauni <sujal1kalauni@gmail.com>
Signed-off-by: Sujal Kalauni <sujal1kalauni@gmail.com>
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.34.1 to 4.35.1. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@3869755...c10b806) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.35.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Nikesh Kumar <kumar.nikesh@siemens.com>
Signed-off-by: rudra-superrr <prabhuchopra@gmail.com>
|
Hey @sujalkalauni ! |
…ager field Signed-off-by: Sujal Kalauni <sujal1kalauni@gmail.com>
|
Thanks @amritkv, checked both AddProject and EditProject. EditProject made it clear that the UI state is named projectManager but the actual API payload key is projectResponsible. Updated the initial state and payload accordingly and cleaned up a duplicate line and a typo that crept in during editing. Please have another look. |
Summary
In
DuplicateProject.tsx, theprojectManagerfield was correctly fetchedfrom the API and stored in local state, but was never assigned in
projectPayloadData— the object actually sent to create the duplicate project.This meant every duplicated project silently lost its Project Manager.
Fix
Added the missing assignment alongside the existing
projectOwnerandleadArchitectfields:Related
Fixes #1559