Put back the parameters in the main spec file but moved them to the components... #144
@ -20,7 +20,6 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import com.iqser.red.service.persistence.management.v1.processor.service.ComponentLogService;
|
||||
import com.iqser.red.service.persistence.management.v1.processor.service.ComponentOverrideService;
|
||||
import com.iqser.red.service.persistence.management.v1.processor.service.persistence.AuditPersistenceService;
|
||||
import com.iqser.red.service.persistence.service.v1.api.external.resource.ComponentLogResource;
|
||||
import com.iqser.red.service.persistence.service.v1.api.external.resource.RSSResource;
|
||||
import com.iqser.red.service.persistence.service.v1.api.shared.model.AuditCategory;
|
||||
import com.iqser.red.service.persistence.service.v1.api.shared.model.FileStatus;
|
||||
@ -135,7 +134,7 @@ public class RSSComponentLogController implements RSSResource {
|
||||
private SCMComponent toSCMComponent(ComponentLogEntryValue v) {
|
||||
|
||||
return SCMComponent.builder()
|
||||
.value(v.getValue())
|
||||
.value(v.getValue().equals(v.getOriginalValue()) ? null : v.getValue())
|
||||
.originalValue(v.getOriginalValue())
|
||||
.transformation(v.getValueDescription())
|
||||
.scmAnnotations(v.getComponentLogEntityReferences().stream().map(this::toScmAnnotation).toList())
|
||||
@ -148,6 +147,7 @@ public class RSSComponentLogController implements RSSResource {
|
||||
return ScmAnnotation.builder().type(er.getType()).pages(Set.of(er.getPage())).ruleIdentifier(er.getEntityRuleId()).reason("").build();
|
||||
}
|
||||
|
||||
|
||||
@PreAuthorize("hasAuthority('" + GET_RSS + "')")
|
||||
public void addOverrides(@PathVariable(DOSSIER_ID) String dossierId, @PathVariable(FILE_ID) String fileId, @RequestBody ComponentsOverrides componentsOverrides) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user