(null);
@@ -37,28 +37,28 @@ export default function MentorApplicationsPanel({
setError(null);
getMenteeApplications(cycleId, ALL_STATUSES, token, mentorId)
- .then(setApplications)
- .catch((err) => setError(err.message || 'Failed to load applications'))
- .finally(() => setLoading(false));
+ .then(setApplications)
+ .catch((err) => setError(err.message || 'Failed to load applications'))
+ .finally(() => setLoading(false));
}, [mentorId, cycleId, token]);
return (
-
-
- Applications for Mentor #{mentorId}
-
-
+
+
+ Applications for Mentor #{mentorId}
+
+
- {loading && }
- {error && {error}}
+ {loading && }
+ {error && {error}}
- {!loading && !error && applications.length === 0 && (
- No applications found for this mentor.
- )}
+ {!loading && !error && applications.length === 0 && (
+ No applications found for this mentor.
+ )}
- {applications.map((app) => (
-
- ))}
-
+ {applications.map((app) => (
+
+ ))}
+
);
}
diff --git a/admin-wcc-app/components/mentorship/MentorInfoCard.tsx b/admin-wcc-app/components/mentorship/MentorInfoCard.tsx
index c9711f6c1..b0517dce7 100644
--- a/admin-wcc-app/components/mentorship/MentorInfoCard.tsx
+++ b/admin-wcc-app/components/mentorship/MentorInfoCard.tsx
@@ -1,11 +1,11 @@
import React from 'react';
-import {Avatar, Box, Card, CardContent, Stack, Typography} from '@mui/material';
+import { Avatar, Box, Card, CardContent, Stack, Typography } from '@mui/material';
import {
Business as BusinessIcon,
Public as PublicIcon,
Work as WorkIcon,
} from '@mui/icons-material';
-import {MentorItem} from '@/types/mentor';
+import { MentorItem } from '@/types/mentor';
import SkillsSection from '@/components/mentors/SkillsSection';
import BioSection from '@/components/mentors/BioSection';
@@ -13,69 +13,69 @@ interface MentorInfoCardProps {
mentor: MentorItem;
}
-export default function MentorInfoCard({mentor}: MentorInfoCardProps) {
+export default function MentorInfoCard({ mentor }: MentorInfoCardProps) {
const location = [mentor.city, mentor.country?.countryName].filter(Boolean).join(', ');
return (
-
-
-
-
- {mentor.fullName.charAt(0)}
-
-
- {mentor.fullName}
-
-
- {mentor.position || 'N/A'}
-
-
-
- {mentor.companyName || 'N/A'}
-
-
-
- {location || 'N/A'}
-
-
-
-
- {mentor.bio && }
- {mentor.skills && }
-
-
-
- Availability Long Term:
- {mentor.menteeSection?.longTerm?.numMentee || 0} mentees,{' '}
- {mentor.menteeSection?.longTerm?.hours || 0} hours
-
+
+
+
+
+ {mentor.fullName.charAt(0)}
+
+
+ {mentor.fullName}
+
+
+ {mentor.position || 'N/A'}
-
-
-
- Ideal Mentee
-
-
- {mentor.menteeSection?.idealMentee}
+
+
+ {mentor.companyName || 'N/A'}
-
-
-
- Additional
-
-
- {mentor.menteeSection?.additional}
+
+
+ {location || 'N/A'}
-
-
+
+
+ {mentor.bio && }
+ {mentor.skills && }
+
+
+
+ Availability Long Term:
+ {mentor.menteeSection?.longTerm?.numMentee || 0} mentees,{' '}
+ {mentor.menteeSection?.longTerm?.hours || 0} hours
+
+
+
+
+
+ Ideal Mentee
+
+
+ {mentor.menteeSection?.idealMentee}
+
+
+
+
+ Additional
+
+
+ {mentor.menteeSection?.additional}
+
+
+
+
);
}
diff --git a/admin-wcc-app/pages/admin/mentorship/index.tsx b/admin-wcc-app/pages/admin/mentorship/index.tsx
index 955b585fc..7103dfda7 100644
--- a/admin-wcc-app/pages/admin/mentorship/index.tsx
+++ b/admin-wcc-app/pages/admin/mentorship/index.tsx
@@ -1,4 +1,4 @@
-import React, {useEffect, useState} from 'react';
+import React, { useEffect, useState } from 'react';
import {
Alert,
Box,
@@ -10,10 +10,10 @@ import {
Typography,
} from '@mui/material';
import AdminLayout from '@/components/AdminLayout';
-import {getMenteeApplications, getMentorshipRecommendations} from '@/services/mentorshipService';
-import {MenteeApplicationItem, MentorshipRecommendationResponse} from '@/types/mentorship';
-import {getStoredToken, isTokenExpired} from '@/lib/auth';
-import {useRouter} from 'next/router';
+import { getMenteeApplications, getMentorshipRecommendations } from '@/services/mentorshipService';
+import { MenteeApplicationItem, MentorshipRecommendationResponse } from '@/types/mentorship';
+import { getStoredToken, isTokenExpired } from '@/lib/auth';
+import { useRouter } from 'next/router';
import MatchCard from '@/components/mentorship/MatchCard';
import MenteeCard from '@/components/mentorship/MenteeCard';
import MentorInfoCard from '@/components/mentorship/MentorInfoCard';
@@ -26,18 +26,18 @@ interface TabPanelProps {
}
function CustomTabPanel(props: TabPanelProps) {
- const {children, value, index, ...other} = props;
+ const { children, value, index, ...other } = props;
return (
-
- {value === index && {children}}
-
+
+ {value === index && {children}}
+
);
}
@@ -63,14 +63,14 @@ export default function MentorshipAdminPage() {
}
getMentorshipRecommendations(token)
- .then((res) => {
- setData(respToRecommendationResponse(res));
- setLoading(false);
- })
- .catch((err) => {
- setError(err.message || 'Failed to fetch recommendations');
- setLoading(false);
- });
+ .then((res) => {
+ setData(respToRecommendationResponse(res));
+ setLoading(false);
+ })
+ .catch((err) => {
+ setError(err.message || 'Failed to fetch recommendations');
+ setLoading(false);
+ });
}, [router]);
useEffect(() => {
@@ -87,8 +87,8 @@ export default function MentorshipAdminPage() {
};
const setterMap: Record<
- number,
- React.Dispatch>
+ number,
+ React.Dispatch>
> = {
3: setPendingApps,
4: setAcceptedApps,
@@ -96,13 +96,13 @@ export default function MentorshipAdminPage() {
};
if (setterMap[tabValue]) {
- setAppsLoading((prev) => ({...prev, [tabValue]: true}));
- setAppsError((prev) => ({...prev, [tabValue]: ''}));
+ setAppsLoading((prev) => ({ ...prev, [tabValue]: true }));
+ setAppsError((prev) => ({ ...prev, [tabValue]: '' }));
getMenteeApplications(cycleId, statusMap[tabValue], token)
- .then(setterMap[tabValue])
- .catch((err) => setAppsError((prev) => ({...prev, [tabValue]: err.message})))
- .finally(() => setAppsLoading((prev) => ({...prev, [tabValue]: false})));
+ .then(setterMap[tabValue])
+ .catch((err) => setAppsError((prev) => ({ ...prev, [tabValue]: err.message })))
+ .finally(() => setAppsLoading((prev) => ({ ...prev, [tabValue]: false })));
}
}, [tabValue, loading]);
@@ -128,135 +128,134 @@ export default function MentorshipAdminPage() {
if (loading) {
return (
-
-
-
-
-
+
+
+
+
+
);
}
return (
-
-
-
- Mentorship - Manual Matching
-
+
+
+
+ Mentorship - Manual Matching
+
- {error && (
-
- {error}
-
- )}
+ {error && (
+
+ {error}
+
+ )}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
- {data?.matchedMentors.map((match, idx) => (
-
+
+ {data?.matchedMentors.map((match, idx) => (
+
+ ))}
+ {data?.matchedMentors.length === 0 && (
+
+ No matches found.
+
+ )}
+
+
+
+
+ {data?.notMatchedMentors.map((mentor) => (
+
))}
- {data?.matchedMentors.length === 0 && (
-
- No matches found.
-
+ {data?.notMatchedMentors.length === 0 && (
+
+ All mentors have recommendations.
+
)}
-
-
-
-
- {data?.notMatchedMentors.map((mentor) => (
-
- ))}
- {data?.notMatchedMentors.length === 0 && (
-
- All mentors have recommendations.
-
- )}
-
-
+
+
-
-
- {data?.notMatchedMentees.map((mentee) => (
-
- ))}
- {data?.notMatchedMentees.length === 0 && (
-
- All mentees have recommendations.
-
- )}
-
-
+
+
+ {data?.notMatchedMentees.map((mentee) => (
+
+ ))}
+ {data?.notMatchedMentees.length === 0 && (
+
+ All mentees have recommendations.
+
+ )}
+
+
-
-
- {appsLoading[3] ? (
-
- ) : appsError[3] ? (
- {appsError[3]}
- ) : (
- pendingApps.map((app) => (
-
- ))
- )}
- {!appsLoading[3] && pendingApps.length === 0 && (
- No pending applications.
- )}
-
-
+
+
+ {appsLoading[3] ? (
+
+ ) : appsError[3] ? (
+ {appsError[3]}
+ ) : (
+ pendingApps.map((app) => (
+
+ ))
+ )}
+ {!appsLoading[3] && pendingApps.length === 0 && (
+ No pending applications.
+ )}
+
+
-
-
- {appsLoading[4] ? (
-
- ) : appsError[4] ? (
- {appsError[4]}
- ) : (
- acceptedApps.map((app) => (
-
- ))
- )}
- {!appsLoading[4] && acceptedApps.length === 0 && (
- No accepted applications.
- )}
-
-
+
+
+ {appsLoading[4] ? (
+
+ ) : appsError[4] ? (
+ {appsError[4]}
+ ) : (
+ acceptedApps.map((app) => (
+
+ ))
+ )}
+ {!appsLoading[4] && acceptedApps.length === 0 && (
+ No accepted applications.
+ )}
+
+
-
-
- {appsLoading[5] ? (
-
- ) : appsError[5] ? (
- {appsError[5]}
- ) : (
- rejectedApps.map((app) => (
-
- ))
- )}
- {!appsLoading[5] && rejectedApps.length === 0 && (
- No rejected applications.
- )}
-
-
-
-
-
+
+
+ {appsLoading[5] ? (
+
+ ) : appsError[5] ? (
+ {appsError[5]}
+ ) : (
+ rejectedApps.map((app) => (
+
+ ))
+ )}
+ {!appsLoading[5] && rejectedApps.length === 0 && (
+ No rejected applications.
+ )}
+
+
+
+
+
);
}
diff --git a/admin-wcc-app/services/mentorshipService.ts b/admin-wcc-app/services/mentorshipService.ts
index ad7d642ed..2840e46fe 100644
--- a/admin-wcc-app/services/mentorshipService.ts
+++ b/admin-wcc-app/services/mentorshipService.ts
@@ -1,44 +1,44 @@
-import {apiFetch} from '@/lib/api';
-import {MenteeApplicationItem, MentorshipRecommendationResponse} from '@/types/mentorship';
+import { apiFetch } from '@/lib/api';
+import { MenteeApplicationItem, MentorshipRecommendationResponse } from '@/types/mentorship';
const MENTORSHIP_ADMIN_PATH = '/api/platform/v1/admin/mentorship';
const MENTEES_PATH = '/api/platform/v1/mentees';
export async function getMentorshipRecommendations(
- token: string
+ token: string
): Promise {
return apiFetch(
- `${MENTORSHIP_ADMIN_PATH}/matches/recommendations`,
- {token}
+ `${MENTORSHIP_ADMIN_PATH}/matches/recommendations`,
+ { token }
);
}
export async function getMenteeApplications(
- cycleId: number,
- statuses: string[],
- token: string,
- mentorId?: number
+ cycleId: number,
+ statuses: string[],
+ token: string,
+ mentorId?: number
): Promise {
- const params = new URLSearchParams({status: statuses.join(',')});
+ const params = new URLSearchParams({ status: statuses.join(',') });
if (mentorId !== undefined) {
params.append('mentorId', String(mentorId));
}
return apiFetch(
- `${MENTORSHIP_ADMIN_PATH}/cycles/${cycleId}/applications?${params.toString()}`,
- {token}
+ `${MENTORSHIP_ADMIN_PATH}/cycles/${cycleId}/applications?${params.toString()}`,
+ { token }
);
}
export async function createManualMatch(
- menteeId: number | string,
- cycleId: number | string,
- mentorId: number | string,
- token: string,
- notes?: string
+ menteeId: number | string,
+ cycleId: number | string,
+ mentorId: number | string,
+ token: string,
+ notes?: string
): Promise {
return apiFetch(`${MENTEES_PATH}/${menteeId}/cycles/${cycleId}/assign-mentor`, {
method: 'POST',
- body: {mentorId, notes},
+ body: { mentorId, notes },
token,
});
}
diff --git a/admin-wcc-app/types/mentorship.ts b/admin-wcc-app/types/mentorship.ts
index 10e39c0b3..3d93fa780 100644
--- a/admin-wcc-app/types/mentorship.ts
+++ b/admin-wcc-app/types/mentorship.ts
@@ -1,4 +1,4 @@
-import {MentorItem} from './mentor';
+import { MentorItem } from './mentor';
export interface MenteeItem {
id: number;
diff --git a/src/main/java/com/wcc/platform/domain/platform/mentorship/Mentor.java b/src/main/java/com/wcc/platform/domain/platform/mentorship/Mentor.java
index 0e1dcf5f2..6a9d510b1 100644
--- a/src/main/java/com/wcc/platform/domain/platform/mentorship/Mentor.java
+++ b/src/main/java/com/wcc/platform/domain/platform/mentorship/Mentor.java
@@ -45,6 +45,7 @@ public class Mentor extends Member {
private String calendlyLink;
private Boolean acceptMale;
private Boolean acceptPromotion;
+ private String meetingLink;
/** Mentor Constructor. */
@SuppressWarnings("PMD.ExcessiveParameterList")
@@ -72,7 +73,8 @@ public Mentor(
final String calendlyLink,
final Boolean acceptMale,
final Boolean acceptPromotion,
- final List memberTypes) {
+ final List memberTypes,
+ final String meetingLink) {
super(
id,
fullName,
@@ -100,6 +102,13 @@ public Mentor(
this.acceptMale = acceptMale;
this.acceptPromotion = acceptPromotion;
this.memberTypes = memberTypes;
+ this.meetingLink = meetingLink;
+ }
+
+ @Override
+ public void setMemberTypes(final List memberTypes) {
+ super.setMemberTypes(memberTypes);
+ this.memberTypes = memberTypes;
}
/** Checks for empty or null and returns a capitalized list of string. */
@@ -156,7 +165,8 @@ private MentorDtoBuilder buildFromMentor(final Mentor mentor) {
.isWomen(mentor.getIsWomen())
.calendlyLink(mentor.getCalendlyLink())
.acceptMale(mentor.getAcceptMale())
- .acceptPromotion(mentor.getAcceptPromotion());
+ .acceptPromotion(mentor.getAcceptPromotion())
+ .meetingLink(mentor.getMeetingLink());
}
/** Mentor Builder implementation to ensure proper inheritance. */
@@ -214,6 +224,11 @@ public B acceptPromotion(final Boolean acceptPromotion) {
return (B) this;
}
+ public B meetingLink(final String meetingLink) {
+ this.meetingLink = meetingLink;
+ return (B) this;
+ }
+
@Override
public B memberTypes(final List memberTypes) {
this.memberTypes = memberTypes;
diff --git a/src/main/java/com/wcc/platform/domain/platform/mentorship/MentorDto.java b/src/main/java/com/wcc/platform/domain/platform/mentorship/MentorDto.java
index 850811966..fa7781677 100644
--- a/src/main/java/com/wcc/platform/domain/platform/mentorship/MentorDto.java
+++ b/src/main/java/com/wcc/platform/domain/platform/mentorship/MentorDto.java
@@ -55,6 +55,7 @@ public class MentorDto extends MemberDto {
private Boolean acceptMale;
private Boolean acceptPromotion;
private Boolean isWomen;
+ private String meetingLink;
/** Mentor Builder. */
@SuppressWarnings("PMD.ExcessiveParameterList")
@@ -81,7 +82,8 @@ public MentorDto(
final Boolean isWomen,
final String calendlyLink,
final Boolean acceptMale,
- final Boolean acceptPromotion) {
+ final Boolean acceptPromotion,
+ final String meetingLink) {
super(
id,
fullName,
@@ -110,6 +112,7 @@ public MentorDto(
this.acceptMale = acceptMale;
this.acceptPromotion = acceptPromotion;
this.isWomen = isWomen;
+ this.meetingLink = meetingLink;
}
/**
@@ -143,6 +146,7 @@ public Mentor toMentor() {
.calendlyLink(getCalendlyLink())
.acceptMale(getAcceptMale())
.acceptPromotion(getAcceptPromotion())
+ .meetingLink(getMeetingLink())
.build();
}
@@ -183,6 +187,7 @@ public Mentor merge(final Mentor mentor) {
.calendlyLink(mergeString(this.getCalendlyLink(), mentor.getCalendlyLink()))
.acceptMale(mergeNullable(this.getAcceptMale(), mentor.getAcceptMale()))
.acceptPromotion(mergeNullable(this.getAcceptPromotion(), mentor.getAcceptPromotion()))
+ .meetingLink(mergeString(this.getMeetingLink(), mentor.getMeetingLink()))
.build();
}
diff --git a/src/main/java/com/wcc/platform/repository/postgres/component/MentorMapper.java b/src/main/java/com/wcc/platform/repository/postgres/component/MentorMapper.java
index c11e668bf..12c141340 100644
--- a/src/main/java/com/wcc/platform/repository/postgres/component/MentorMapper.java
+++ b/src/main/java/com/wcc/platform/repository/postgres/component/MentorMapper.java
@@ -61,7 +61,8 @@ public Mentor mapRowToMentor(final ResultSet rs) throws SQLException {
.bio(rs.getString(COLUMN_BIO))
.calendlyLink(rs.getString(COL_CALENDLY_LINK))
.acceptMale(rs.getBoolean(COL_ACCEPT_MALE))
- .acceptPromotion(rs.getBoolean(COL_ACCEPT_PROMO));
+ .acceptPromotion(rs.getBoolean(COL_ACCEPT_PROMO))
+ .meetingLink(rs.getString(COL_MEET_LINK));
return builder.build();
}
diff --git a/src/main/java/com/wcc/platform/repository/postgres/constants/MentorConstants.java b/src/main/java/com/wcc/platform/repository/postgres/constants/MentorConstants.java
index eeb7d1752..4d75a242f 100644
--- a/src/main/java/com/wcc/platform/repository/postgres/constants/MentorConstants.java
+++ b/src/main/java/com/wcc/platform/repository/postgres/constants/MentorConstants.java
@@ -12,6 +12,7 @@ public final class MentorConstants {
public static final String COL_CALENDLY_LINK = "calendly_link";
public static final String COL_ACCEPT_MALE = "accept_male_mentee";
public static final String COL_ACCEPT_PROMO = "accept_promote_social_media";
+ public static final String COL_MEET_LINK = "meeting_link";
// MENTOR_MENTEE_SECTION table
public static final String COLUMN_IDEAL_MENTEE = "ideal_mentee";
diff --git a/src/main/java/com/wcc/platform/repository/postgres/mentorship/PostgresMentorRepository.java b/src/main/java/com/wcc/platform/repository/postgres/mentorship/PostgresMentorRepository.java
index 498c21dc4..0f3bee9a7 100644
--- a/src/main/java/com/wcc/platform/repository/postgres/mentorship/PostgresMentorRepository.java
+++ b/src/main/java/com/wcc/platform/repository/postgres/mentorship/PostgresMentorRepository.java
@@ -46,7 +46,8 @@ public class PostgresMentorRepository implements MentorRepository {
+ "is_available = ?, "
+ "calendly_link = ?, "
+ "accept_male_mentee = ?, "
- + "accept_promote_social_media = ? "
+ + "accept_promote_social_media = ?, "
+ + "meeting_link = ? "
+ "WHERE mentor_id = ?";
private static final String SQL_SET_MENTOR_STATUS =
"UPDATE mentors SET profile_status = ? WHERE mentor_id = ?";
@@ -55,7 +56,7 @@ public class PostgresMentorRepository implements MentorRepository {
private static final String SQL_INSERT_MENTOR =
"INSERT INTO mentors (mentor_id, profile_status, bio, years_experience, "
+ " spoken_languages, is_available, calendly_link, "
- + " accept_male_mentee, accept_promote_social_media) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
+ + " accept_male_mentee, accept_promote_social_media, meeting_link) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
private static final String SQL_GET_BY_ID = "SELECT * FROM mentors WHERE mentor_id = ?";
private static final String SQL_DELETE_BY_ID = "DELETE FROM mentors WHERE mentor_id = ?";
private static final String SQL_GET_BY_EMAIL =
@@ -227,7 +228,8 @@ private void insertMentor(final Mentor mentor, final Long memberId) {
true,
mentor.getCalendlyLink(),
mentor.getAcceptMale(),
- mentor.getAcceptPromotion());
+ mentor.getAcceptPromotion(),
+ mentor.getMeetingLink());
}
/**
@@ -251,6 +253,7 @@ private void updateMentorDetails(final Mentor mentor, final Long mentorId) {
mentor.getCalendlyLink(),
mentor.getAcceptMale(),
mentor.getAcceptPromotion(),
+ mentor.getMeetingLink(),
mentorId);
}
}
diff --git a/src/main/java/com/wcc/platform/service/MentorshipNotificationService.java b/src/main/java/com/wcc/platform/service/MentorshipNotificationService.java
index 0ac6eb529..0a8558195 100644
--- a/src/main/java/com/wcc/platform/service/MentorshipNotificationService.java
+++ b/src/main/java/com/wcc/platform/service/MentorshipNotificationService.java
@@ -136,7 +136,7 @@ public void sendPairingConfirmation(
"mentor_email", mentor.getEmail(),
"mentee_email", mentee.getEmail(),
"mentor_calendly_link", Optional.ofNullable(mentor.getCalendlyLink()).orElse(""),
- "meeting_link", "",
+ "meeting_link", Optional.ofNullable(mentor.getMeetingLink()).orElse(""),
"month", month.getDisplayName(TextStyle.FULL, Locale.ENGLISH),
"year", year),
List.of(mentor.getEmail(), mentee.getEmail(), notificationConfig.getMentorshipEmail()));
diff --git a/src/main/java/com/wcc/platform/service/MentorshipService.java b/src/main/java/com/wcc/platform/service/MentorshipService.java
index d507416fb..ef60de3bf 100644
--- a/src/main/java/com/wcc/platform/service/MentorshipService.java
+++ b/src/main/java/com/wcc/platform/service/MentorshipService.java
@@ -98,6 +98,8 @@ public Mentor create(final Mentor mentor) {
.calendlyLink(mentor.getCalendlyLink())
.acceptMale(mentor.getAcceptMale())
.acceptPromotion(mentor.getAcceptPromotion())
+ .meetingLink(mentor.getMeetingLink())
+ .memberTypes(mentor.getMemberTypes())
.build();
return mentorRepository.create(mentorWithExistingId);
@@ -217,6 +219,7 @@ private MentorDto enrichWithProfilePicture(final MentorDto dto) {
.calendlyLink(dto.getCalendlyLink())
.acceptMale(dto.getAcceptMale())
.acceptPromotion(dto.getAcceptPromotion())
+ .meetingLink(dto.getMeetingLink())
.build();
}
@@ -235,6 +238,7 @@ private Mentor enrichMentorWithProfilePicture(final Mentor mentor) {
.slackDisplayName(mentor.getSlackDisplayName())
.country(mentor.getCountry())
.city(mentor.getCity())
+ .memberTypes(mentor.getMemberTypes())
.companyName(mentor.getCompanyName())
.images(List.of(profilePicture.get()))
.network(mentor.getNetwork())
@@ -251,6 +255,7 @@ private Mentor enrichMentorWithProfilePicture(final Mentor mentor) {
.calendlyLink(mentor.getCalendlyLink())
.acceptMale(mentor.getAcceptMale())
.acceptPromotion(mentor.getAcceptPromotion())
+ .meetingLink(mentor.getMeetingLink())
.build();
}
diff --git a/src/test/java/com/wcc/platform/domain/platform/mentorship/MentorDtoTest.java b/src/test/java/com/wcc/platform/domain/platform/mentorship/MentorDtoTest.java
index 2e2975fd4..9bc778ca4 100644
--- a/src/test/java/com/wcc/platform/domain/platform/mentorship/MentorDtoTest.java
+++ b/src/test/java/com/wcc/platform/domain/platform/mentorship/MentorDtoTest.java
@@ -100,7 +100,7 @@ void shouldReturnStringOfMentor() {
+ "skills=null, spokenLanguages=[English, Spanish], bio=bio info,"
+ " menteeSection=null, feedbackSection=null, resources=null, "
+ "calendlyLink=null, acceptMale=null, acceptPromotion=null, "
- + "isWomen=null)";
+ + "isWomen=null, meetingLink=null)";
assertEquals(expected, mentor.toString());
}
diff --git a/src/test/java/com/wcc/platform/service/MentorshipServiceTest.java b/src/test/java/com/wcc/platform/service/MentorshipServiceTest.java
index 1602cb914..5197e0ff7 100644
--- a/src/test/java/com/wcc/platform/service/MentorshipServiceTest.java
+++ b/src/test/java/com/wcc/platform/service/MentorshipServiceTest.java
@@ -221,6 +221,7 @@ void shouldPreserveAllFieldsWhenMentorReRegistersWithExistingEmail() {
when(mentor.getCalendlyLink()).thenReturn("https://calendly.com/myname");
when(mentor.getAcceptMale()).thenReturn(true);
when(mentor.getAcceptPromotion()).thenReturn(false);
+ when(mentor.getMeetingLink()).thenReturn("https://google.com/meet/name");
Member existingMember =
Member.builder()
@@ -248,6 +249,7 @@ void shouldPreserveAllFieldsWhenMentorReRegistersWithExistingEmail() {
assertThat(captured.getAcceptPromotion()).isFalse();
assertThat(captured.getSkills()).isEqualTo(skills);
assertThat(captured.getMenteeSection()).isEqualTo(menteeSection);
+ assertThat(captured.getMeetingLink()).isEqualTo("https://google.com/meet/name");
}
@Test
diff --git a/src/testInt/java/com/wcc/platform/service/mentorship/MentorshipServiceIntegrationTest.java b/src/testInt/java/com/wcc/platform/service/mentorship/MentorshipServiceIntegrationTest.java
index a66bf8af5..877c6f857 100644
--- a/src/testInt/java/com/wcc/platform/service/mentorship/MentorshipServiceIntegrationTest.java
+++ b/src/testInt/java/com/wcc/platform/service/mentorship/MentorshipServiceIntegrationTest.java
@@ -227,6 +227,7 @@ void shouldReturnMentorsWithPronounsFromDatabase() {
.calendlyLink(baseMentor.getCalendlyLink())
.acceptMale(baseMentor.getAcceptMale())
.acceptPromotion(baseMentor.getAcceptPromotion())
+ .meetingLink(baseMentor.getMeetingLink())
.build();
memberRepository.deleteByEmail(mentor.getEmail());