Work on IDAA and Novi auth
This commit is contained in:
@@ -540,6 +540,23 @@ ae_loc.idaa_loc = { novi_uuid: 'test-uuid-value', ... };
|
||||
- [Naming Conventions](./AE__Naming_Conventions.md)
|
||||
- [Playwright Test README](../tests/README.md)
|
||||
|
||||
|
||||
---
|
||||
|
||||
## IDAA Novi Groups and Moderators
|
||||
IDAA Couples Meeting = "e9e162f0-3d03-4241-9682-340135ec3fb8"
|
||||
|
||||
"Gregory X Boehm" "00ee764c-7559-496b-9d18-40d3e9092c0c"
|
||||
"Kee B. PARK" "24ab3297-bfce-473c-9311-4b31e3a8974f"
|
||||
"Laura Lander" "ac697456-61fe-4f7d-a8b8-d04866032320"
|
||||
"Nancy J Duff-Boehm" "5c7c09bc-4f23-432c-bfd9-87a66b548502"
|
||||
"Owen Lander" "9671a2c4-ff95-48c2-bcde-5c6eba95cded"
|
||||
"Susan Park" "4a9f94c5-d766-4808-ab76-117c9e43903a"
|
||||
|
||||
"Student/Resident Meeting Moderators" "d76d2c00-962d-40f6-a2e8-ed9c85594d96"
|
||||
"Melissa Eve Valasky" "182d1db3-caa9-41bc-b04a-2facc6859aeb"
|
||||
"Steven L. Klein" "5724aad7-6d89-47e7-8943-966fd22911bd"
|
||||
|
||||
---
|
||||
|
||||
**Document Status:** ✅ Current
|
||||
|
||||
@@ -626,15 +626,14 @@ async function get_novi_group_moderators(
|
||||
const requestOptions = { method: 'GET', headers: headers };
|
||||
let allModeratorsRaw: any[] = [];
|
||||
|
||||
if (log_lvl) {
|
||||
console.log('Jitsi: Fetching Novi group moderators...');
|
||||
}
|
||||
console.log('[DEBUG] Novi Moderator Group Fetch:');
|
||||
console.log(' Group GUIDs:', group_guid_li);
|
||||
console.log(' Novi API Root URL:', api_root_url);
|
||||
|
||||
for (const group_guid of group_guid_li) {
|
||||
const url = `${api_root_url}/groups/${group_guid}/members?pageSize=200`;
|
||||
console.log(
|
||||
`Jitsi: Fetching moderator list for group ${group_guid} from: ${url}`
|
||||
);
|
||||
console.log(`[DEBUG] Fetching moderator list for group:`, group_guid);
|
||||
console.log(' Request URL:', url);
|
||||
|
||||
try {
|
||||
const response = await fetch(url, requestOptions);
|
||||
@@ -647,42 +646,40 @@ async function get_novi_group_moderators(
|
||||
groupModList = result.Results;
|
||||
else if (Array.isArray(result.Members))
|
||||
groupModList = result.Members;
|
||||
else
|
||||
else {
|
||||
console.warn(
|
||||
`Jitsi: Moderator list format unexpected for group ${group_guid}.`,
|
||||
`[DEBUG] Moderator list format unexpected for group ${group_guid}. Raw result:`,
|
||||
result
|
||||
);
|
||||
}
|
||||
|
||||
allModeratorsRaw = allModeratorsRaw.concat(groupModList);
|
||||
if (log_lvl) {
|
||||
console.log(
|
||||
`Jitsi: Fetched ${groupModList.length} moderators from group ${group_guid}. Total: ${allModeratorsRaw.length}`
|
||||
);
|
||||
console.log(
|
||||
`[DEBUG] Group ${group_guid}: fetched ${groupModList.length} moderators. Total so far: ${allModeratorsRaw.length}`
|
||||
);
|
||||
if (groupModList.length > 0) {
|
||||
console.log(`[DEBUG] First 3 moderator objects:`, groupModList.slice(0, 3));
|
||||
}
|
||||
} else {
|
||||
console.warn(
|
||||
`Jitsi: Failed to fetch moderators for group ${group_guid}. Status: ${response.status}`
|
||||
`[DEBUG] Failed to fetch moderators for group ${group_guid}. Status: ${response.status}`
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(
|
||||
`Jitsi: Error fetching moderators for group ${group_guid}:`,
|
||||
`[DEBUG] Error fetching moderators for group ${group_guid}:`,
|
||||
error
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (allModeratorsRaw.length === 0) {
|
||||
console.warn(
|
||||
'Jitsi: No moderators found across all specified Novi groups.'
|
||||
);
|
||||
console.warn('[DEBUG] No moderators found across all specified Novi groups.');
|
||||
}
|
||||
|
||||
if (log_lvl > 1) {
|
||||
console.log(
|
||||
'Jitsi: Fetched all raw moderators (combined):',
|
||||
allModeratorsRaw
|
||||
);
|
||||
console.log('[DEBUG] Combined moderator list count:', allModeratorsRaw.length);
|
||||
if (allModeratorsRaw.length > 0) {
|
||||
console.log('[DEBUG] Example moderator IDs:', allModeratorsRaw.slice(0, 5).map(m => m?.UniqueID || m?.UniqueId || m?.DuesPayerUniqueID || m?.id || ''));
|
||||
}
|
||||
|
||||
const modIdSet = new Set(
|
||||
@@ -698,6 +695,7 @@ async function get_novi_group_moderators(
|
||||
.filter(Boolean)
|
||||
.map((id: string) => String(id).toLowerCase().trim())
|
||||
);
|
||||
console.log('[DEBUG] Final moderator ID set:', Array.from(modIdSet));
|
||||
return modIdSet;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user