-
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.
* DEAR-130-2 wip * DEAR-130 add average by timerange * DEAR-130 clean up * DEAR-130 group dtos * DEAR-130 add workkind insights, testdata * DEAR-130 more * DEAR-130 more * DEAR-130 add basic tests * DEAR-130 add tests, and adjusted code to validate against null values * DEAR-130 add emotion insights * DEAR-130 add emotion insights data * DEAR-130 fix * DEAR-130 wip * DEAR-130 add tests * DEAR-130 update test data * DEAR-130 fix docker file * DEAR-130 fix docker file
- Loading branch information
1 parent
792a00a
commit ad029e2
Showing
21 changed files
with
1,038 additions
and
383 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
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
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/main/java/ch/fhnw/deardevbackend/dto/TeamHappinessInsightDTO.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/main/java/ch/fhnw/deardevbackend/dto/TeamWorkKindInsightDTO.java
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
src/main/java/ch/fhnw/deardevbackend/dto/insights/EmotionInsightDTO.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,13 @@ | ||
package ch.fhnw.deardevbackend.dto.insights; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class EmotionInsightDTO { | ||
private Integer emotionId; | ||
private String emotionName; | ||
private Long userCount; | ||
private Long teamCount; | ||
} |
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
17 changes: 17 additions & 0 deletions
17
src/main/java/ch/fhnw/deardevbackend/dto/insights/InsightDTO.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,17 @@ | ||
package ch.fhnw.deardevbackend.dto.insights; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class InsightDTO { | ||
private List<HappinessInsightDTO> happinessInsights; | ||
private List<WorkKindInsightDTO> workKindInsights; | ||
private List<EmotionInsightDTO> emotionInsights; | ||
private List<WorkKindCountPerDayInsightDTO> workKindCountPerDayInsights; | ||
private double userAverageHappiness; | ||
private double teamAverageHappiness; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/ch/fhnw/deardevbackend/dto/insights/WorkKindCountPerDayInsightDTO.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,12 @@ | ||
package ch.fhnw.deardevbackend.dto.insights; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class WorkKindCountPerDayInsightDTO { | ||
private Integer workKindCount; | ||
private Double userAverageHappiness; | ||
private Double teamAverageHappiness; | ||
} |
9 changes: 5 additions & 4 deletions
9
...eardevbackend/dto/WorkKindInsightDTO.java → ...kend/dto/insights/WorkKindInsightDTO.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,14 +1,15 @@ | ||
package ch.fhnw.deardevbackend.dto; | ||
package ch.fhnw.deardevbackend.dto.insights; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class WorkKindInsightDTO { | ||
private Integer teamId; | ||
private Integer workKindId; | ||
private String workKindName; | ||
private Double averageHappiness; | ||
private Long totalCount; | ||
private Double userAverage; | ||
private Long userCount; | ||
private Double teamAverage; | ||
private Long teamCount; | ||
} |
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
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
Oops, something went wrong.