Skip to content

Commit

Permalink
fix(rest): Add Description field for myProjects and myComponents in h…
Browse files Browse the repository at this point in the history
…omepage.

Signed-off-by: rudra-superrr <[email protected]>
  • Loading branch information
rudra-superrr committed Jun 2, 2023
1 parent e1d2cb2 commit bada732
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 bada732

Please sign in to comment.