Skip to content

Commit

Permalink
Merge branch 'develop' into feature-2349/bi-weekly-pulse-emails
Browse files Browse the repository at this point in the history
  • Loading branch information
ocielliottc committed Sep 17, 2024
2 parents 9546817 + 60dd938 commit 3d10da8
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 13 deletions.
2 changes: 1 addition & 1 deletion server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'java-library'
id 'maven-publish'
id("com.gradleup.shadow") version "8.3.1"
id("io.micronaut.application") version "4.4.0"
id("io.micronaut.application") version "4.4.2"
id "jacoco"
id("org.openrewrite.rewrite") version "latest.release"
}
Expand Down
2 changes: 1 addition & 1 deletion server/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
micronautVersion=4.5.0
micronautVersion=4.6.2
seleniumVersion=4.21.0
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public enum Permission {
CAN_VIEW_FEEDBACK_ANSWER("View feedback answers", "Feedback"),
CAN_DELETE_ORGANIZATION_MEMBERS("Delete organization members", "User Management"),
CAN_CREATE_ORGANIZATION_MEMBERS("Create organization members", "User Management"),
CAN_IMPERSONATE_MEMBERS("Impersonate organization members", "User Management"),
CAN_IMPERSONATE_MEMBERS("Impersonate organization members", "Security"),
CAN_VIEW_ROLE_PERMISSIONS("View role permissions", "Security"),
CAN_ASSIGN_ROLE_PERMISSIONS("Assign role permissions", "Security"),
CAN_VIEW_PERMISSIONS("View all permissions", "Security"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CheckInsConfigurationTest {
@Test
void checkConfigurationGetsParsed() {
try (var ctx = ApplicationContext.run(Map.of(
"datasources.enabled", false,
"datasources.default.enabled", false,
"check-ins.web-address", "http://google.com",
"check-ins.application.name", "Fancy app"
))) {
Expand All @@ -28,7 +28,7 @@ void checkConfigurationGetsParsed() {
@Test
void checkWebAddressGetsValidated() {
try (var ctx = ApplicationContext.run(Map.of(
"datasources.enabled", false,
"datasources.default.enabled", false,
"check-ins.web-address", "",
"check-ins.application.name", "Fancy app"
))) {
Expand All @@ -40,7 +40,7 @@ void checkWebAddressGetsValidated() {
@Test
void checkApplicationNameGetsValidated() {
try (var ctx = ApplicationContext.run(Map.of(
"datasources.enabled", false,
"datasources.default.enabled", false,
"check-ins.web-address", "http://google.com",
"check-ins.application.name", ""
))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void happyConfig() {
String name = "Tim";

try (var ctx = ApplicationContext.run(Map.of(
"datasources.enabled", false,
"datasources.default.enabled", false,
"mail-jet.from-address", email,
"mail-jet.from-name", name
))) {
Expand All @@ -25,7 +25,7 @@ void happyConfig() {
}

try (var ctx = ApplicationContext.run(Map.of(
"datasources.enabled", false,
"datasources.default.enabled", false,
"mail-jet.fromAddress", email,
"mail-jet.fromName", name
))) {
Expand All @@ -35,7 +35,7 @@ void happyConfig() {
}

try (var ctx = ApplicationContext.run(Map.of(
"datasources.enabled", false,
"datasources.default.enabled", false,
"mailJet.fromAddress", email,
"mailJet.fromName", name
))) {
Expand All @@ -45,7 +45,7 @@ void happyConfig() {
}

try (var ctx = ApplicationContext.run(Map.of(
"datasources.enabled", false,
"datasources.default.enabled", false,
"mailJet.from_address", email,
"mailJet.from_name", name
))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void testConfigurationLoadedCorrectlyFromConfiguration() throws IOException {
Map.entry("encoded-gcp-credentials", ENCODED_EXAMPLE_GOOGLE_SERVICE_CONFIGURATION)
);
try (var ctx = ApplicationContext.run(Map.ofEntries(
Map.entry("datasources.enabled", false),
Map.entry("datasources.default.enabled", false),
Map.entry("service-account-credentials.directory-id", values.get("directory")),
Map.entry("service-account-credentials.encoded-value", values.get("encoded-gcp-credentials"))
))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class GithubControllerTest extends TestContainersSuite {
void startClient() {
// Make a GitHub mock application (with no datasource, and security turned off)
mockGithub = ApplicationContext.run(EmbeddedServer.class, Map.of(
"datasources.enabled", StringUtils.FALSE,
"datasources.default.enabled", StringUtils.FALSE,
"micronaut.security.enabled", StringUtils.FALSE,
"spec.name", "GithubControllerTest"
));
Expand Down
15 changes: 14 additions & 1 deletion web-ui/src/components/reviews/TeamReviews.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ const TeamReviews = ({ onBack, periodId }) => {
revieweeId: tm.id,
reviewerId: tm.supervisorid,
reviewPeriodId: periodId,
approved: true
approved: false
}));

const res = await resolve({
Expand All @@ -241,8 +241,21 @@ const TeamReviews = ({ onBack, periodId }) => {
if (res.error) return;

setTeamMembers(teamMembers);
addAssignmentForMemberWithNone(teamMembers);
};

const addAssignmentForMemberWithNone = async (members) => {
members.forEach(member => {
const exists = assignments.some(
a => a.revieweeId === member.id
);
if (!!!exists && member.supervisorid) {
const reviewers = [{ id: member.supervisorid }];
updateReviewers(member, reviewers);
}
});
}

const getReviewStatus = useCallback(
teamMemberId => {
let reviewStates = { submitted: false, inProgress: false };
Expand Down

0 comments on commit 3d10da8

Please sign in to comment.