-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into bugfix-2793/bar-chart-truncated
- Loading branch information
Showing
9 changed files
with
579 additions
and
418 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
399 changes: 399 additions & 0 deletions
399
server/src/main/java/com/objectcomputing/checkins/services/reports/MarkdownGeneration.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
40 changes: 1 addition & 39 deletions
40
server/src/main/java/com/objectcomputing/checkins/services/reports/ReportDataDTO.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 |
---|---|---|
@@ -1,58 +1,20 @@ | ||
package com.objectcomputing.checkins.services.reports; | ||
|
||
import com.objectcomputing.checkins.services.memberprofile.MemberProfile; | ||
import io.micronaut.core.annotation.Introspected; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.time.LocalDate; | ||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@Introspected | ||
public class ReportDataDTO { | ||
|
||
@NotNull | ||
private UUID memberId; | ||
private List<UUID> memberIds; | ||
|
||
@NotNull | ||
private UUID reviewPeriodId; | ||
|
||
@NotNull | ||
private LocalDate startDate; | ||
|
||
@NotNull | ||
private LocalDate endDate; | ||
|
||
@NotNull | ||
private MemberProfile memberProfile; | ||
|
||
@NotNull | ||
private List<ReportKudos> kudos; | ||
|
||
@NotNull | ||
private List<CompensationHistory.Compensation> compensationHistory; | ||
|
||
@NotNull | ||
private CurrentInformation.Information currentInformation; | ||
|
||
@NotNull | ||
private List<PositionHistory.Position> positionHistory; | ||
|
||
@NotNull | ||
private List<Feedback> selfReviews; | ||
|
||
@NotNull | ||
private List<Feedback> reviews; | ||
|
||
@NotNull | ||
private List<Feedback> feedback; | ||
|
||
@NotNull | ||
private ReportHours hours; | ||
} |
59 changes: 59 additions & 0 deletions
59
.../test/java/com/objectcomputing/checkins/services/reports/FileServicesImplReplacement.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,59 @@ | ||
package com.objectcomputing.checkins.services.reports; | ||
|
||
/************************************************************************* | ||
* | ||
* This class is here due to the fact that the ReportDataController now | ||
* references the FileServices. The real FileServicesImpl requires the | ||
* GoogleApiAccess class that does not exist during testing. | ||
* | ||
* This replacement class does not require that and can help us test the | ||
* output of the MarkdownGeneration class. | ||
* | ||
************************************************************************/ | ||
|
||
import com.objectcomputing.checkins.services.file.FileInfoDTO; | ||
import com.objectcomputing.checkins.services.file.FileServices; | ||
import com.objectcomputing.checkins.services.file.FileServicesImpl; | ||
|
||
import io.micronaut.http.multipart.CompletedFileUpload; | ||
|
||
import java.io.File; | ||
import java.util.Set; | ||
import java.util.HashSet; | ||
import java.util.UUID; | ||
|
||
import jakarta.inject.Singleton; | ||
import io.micronaut.context.env.Environment; | ||
import io.micronaut.context.annotation.Replaces; | ||
import io.micronaut.context.annotation.Requires; | ||
|
||
@Singleton | ||
@Replaces(FileServicesImpl.class) | ||
@Requires(env = Environment.TEST) | ||
public class FileServicesImplReplacement implements FileServices { | ||
public String documentName = ""; | ||
public String documentText = ""; | ||
|
||
public Set<FileInfoDTO> findFiles(UUID checkInId) { | ||
return new HashSet<FileInfoDTO>(); | ||
} | ||
|
||
public File downloadFiles(String uploadDocId) { | ||
return null; | ||
} | ||
|
||
public FileInfoDTO uploadFile(UUID checkInID, CompletedFileUpload file) { | ||
return new FileInfoDTO(); | ||
} | ||
|
||
public FileInfoDTO uploadDocument(String directory, | ||
String name, String text) { | ||
documentName = name; | ||
documentText = text; | ||
return new FileInfoDTO(); | ||
} | ||
|
||
public boolean deleteFile(String uploadDocId) { | ||
return true; | ||
} | ||
} |
Oops, something went wrong.