-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GLT-4322] adapted Project Details page for external users (#261)
- Loading branch information
Showing
10 changed files
with
55 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
External view of Project Details page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/ca/on/oicr/gsi/dimsum/controller/rest/common/CommonProjectRestController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package ca.on.oicr.gsi.dimsum.controller.rest.common; | ||
|
||
import static ca.on.oicr.gsi.dimsum.controller.mvc.MvcUtils.*; | ||
import java.time.LocalDate; | ||
import java.util.List; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
import ca.on.oicr.gsi.dimsum.controller.rest.request.DataQuery; | ||
import ca.on.oicr.gsi.dimsum.data.ProjectSummaryRow; | ||
import ca.on.oicr.gsi.dimsum.service.CaseService; | ||
import ca.on.oicr.gsi.dimsum.service.filtering.CaseFilter; | ||
import ca.on.oicr.gsi.dimsum.service.filtering.TableData; | ||
|
||
|
||
@RestController | ||
@RequestMapping("/rest/common/projects") | ||
public class CommonProjectRestController { | ||
|
||
@Autowired | ||
private CaseService caseService; | ||
|
||
@PostMapping("/{projectName}/summary") | ||
public TableData<ProjectSummaryRow> getProjectSummary(@PathVariable String projectName, | ||
@RequestBody DataQuery query) { | ||
List<CaseFilter> filters = parseCaseFiltersForProject(query); | ||
LocalDate afterDate = parseAfterDate(query); | ||
LocalDate beforDate = parseBeforeDate(query); | ||
return caseService.getProjectSummaryRows(projectName, filters, afterDate, beforDate); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/main/java/ca/on/oicr/gsi/dimsum/data/ProjectSummaryField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/ca/on/oicr/gsi/dimsum/data/ProjectSummaryRow.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters