Skip to content

Commit

Permalink
Merge pull request eclipse-sw360#1980 from siemens/fix/projDescription
Browse files Browse the repository at this point in the history
fix(rest): Add Description field for myProjects and myComponents.

Reviewed by: [email protected]
Tested by: [email protected]
  • Loading branch information
ag4ums authored Jun 12, 2023
2 parents 9c8b759 + bada732 commit 444d214
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ static abstract class EmbeddedProjectMixin extends ProjectMixin {
abstract public boolean isEnableVulnerabilitiesDisplay();

@Override
@JsonIgnore
abstract public ProjectState getState();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,11 @@ public Project convertToEmbeddedProject(Project project) {
Project embeddedProject = new EmbeddedProject();
embeddedProject.setName(project.getName());
embeddedProject.setId(project.getId());
embeddedProject.setDescription(project.getDescription());
embeddedProject.setProjectResponsible(project.getProjectResponsible());
embeddedProject.setProjectType(project.getProjectType());
embeddedProject.setState(project.getState());
embeddedProject.setClearingState(project.getClearingState());
embeddedProject.setVersion(project.getVersion());
embeddedProject.setVisbility(project.getVisbility());
embeddedProject.setType(null);
Expand All @@ -521,6 +525,7 @@ public Component convertToEmbeddedComponent(Component component) {
Component embeddedComponent = new Component();
embeddedComponent.setId(component.getId());
embeddedComponent.setName(component.getName());
embeddedComponent.setDescription(component.getDescription());
embeddedComponent.setComponentType(component.getComponentType());
embeddedComponent.setVisbility(component.getVisbility());
embeddedComponent.setMainLicenseIds(component.getMainLicenseIds());
Expand Down

0 comments on commit 444d214

Please sign in to comment.