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)
|
- [Naming Conventions](./AE__Naming_Conventions.md)
|
||||||
- [Playwright Test README](../tests/README.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
|
**Document Status:** ✅ Current
|
||||||
|
|||||||
@@ -626,15 +626,14 @@ async function get_novi_group_moderators(
|
|||||||
const requestOptions = { method: 'GET', headers: headers };
|
const requestOptions = { method: 'GET', headers: headers };
|
||||||
let allModeratorsRaw: any[] = [];
|
let allModeratorsRaw: any[] = [];
|
||||||
|
|
||||||
if (log_lvl) {
|
console.log('[DEBUG] Novi Moderator Group Fetch:');
|
||||||
console.log('Jitsi: Fetching Novi group moderators...');
|
console.log(' Group GUIDs:', group_guid_li);
|
||||||
}
|
console.log(' Novi API Root URL:', api_root_url);
|
||||||
|
|
||||||
for (const group_guid of group_guid_li) {
|
for (const group_guid of group_guid_li) {
|
||||||
const url = `${api_root_url}/groups/${group_guid}/members?pageSize=200`;
|
const url = `${api_root_url}/groups/${group_guid}/members?pageSize=200`;
|
||||||
console.log(
|
console.log(`[DEBUG] Fetching moderator list for group:`, group_guid);
|
||||||
`Jitsi: Fetching moderator list for group ${group_guid} from: ${url}`
|
console.log(' Request URL:', url);
|
||||||
);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(url, requestOptions);
|
const response = await fetch(url, requestOptions);
|
||||||
@@ -647,42 +646,40 @@ async function get_novi_group_moderators(
|
|||||||
groupModList = result.Results;
|
groupModList = result.Results;
|
||||||
else if (Array.isArray(result.Members))
|
else if (Array.isArray(result.Members))
|
||||||
groupModList = result.Members;
|
groupModList = result.Members;
|
||||||
else
|
else {
|
||||||
console.warn(
|
console.warn(
|
||||||
`Jitsi: Moderator list format unexpected for group ${group_guid}.`,
|
`[DEBUG] Moderator list format unexpected for group ${group_guid}. Raw result:`,
|
||||||
result
|
result
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
allModeratorsRaw = allModeratorsRaw.concat(groupModList);
|
allModeratorsRaw = allModeratorsRaw.concat(groupModList);
|
||||||
if (log_lvl) {
|
console.log(
|
||||||
console.log(
|
`[DEBUG] Group ${group_guid}: fetched ${groupModList.length} moderators. Total so far: ${allModeratorsRaw.length}`
|
||||||
`Jitsi: Fetched ${groupModList.length} moderators from group ${group_guid}. Total: ${allModeratorsRaw.length}`
|
);
|
||||||
);
|
if (groupModList.length > 0) {
|
||||||
|
console.log(`[DEBUG] First 3 moderator objects:`, groupModList.slice(0, 3));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.warn(
|
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) {
|
} catch (error) {
|
||||||
console.error(
|
console.error(
|
||||||
`Jitsi: Error fetching moderators for group ${group_guid}:`,
|
`[DEBUG] Error fetching moderators for group ${group_guid}:`,
|
||||||
error
|
error
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allModeratorsRaw.length === 0) {
|
if (allModeratorsRaw.length === 0) {
|
||||||
console.warn(
|
console.warn('[DEBUG] No moderators found across all specified Novi groups.');
|
||||||
'Jitsi: No moderators found across all specified Novi groups.'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (log_lvl > 1) {
|
console.log('[DEBUG] Combined moderator list count:', allModeratorsRaw.length);
|
||||||
console.log(
|
if (allModeratorsRaw.length > 0) {
|
||||||
'Jitsi: Fetched all raw moderators (combined):',
|
console.log('[DEBUG] Example moderator IDs:', allModeratorsRaw.slice(0, 5).map(m => m?.UniqueID || m?.UniqueId || m?.DuesPayerUniqueID || m?.id || ''));
|
||||||
allModeratorsRaw
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const modIdSet = new Set(
|
const modIdSet = new Set(
|
||||||
@@ -698,6 +695,7 @@ async function get_novi_group_moderators(
|
|||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.map((id: string) => String(id).toLowerCase().trim())
|
.map((id: string) => String(id).toLowerCase().trim())
|
||||||
);
|
);
|
||||||
|
console.log('[DEBUG] Final moderator ID set:', Array.from(modIdSet));
|
||||||
return modIdSet;
|
return modIdSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user