MCPcopy Index your code
hub / github.com/OpenSIST/OpenSIST.github.io / collectProfileDisplayNames

Function collectProfileDisplayNames

src/Data/CoreCacheSync.js:28–36  ·  view source on GitHub ↗
(displayName, metadata, applicants)

Source from the content-addressed store, hash-verified

26}
27
28function collectProfileDisplayNames(displayName, metadata, applicants) {
29 const displayNames = new Set();
30 if (displayName) {
31 displayNames.add(displayName);
32 }
33 (metadata?.ApplicantIDs ?? []).forEach((applicantId) => addApplicantDisplayName(displayNames, applicantId));
34 (applicants ?? []).forEach((applicant) => addApplicantDisplayName(displayNames, applicant.ApplicantID));
35 return [...displayNames];
36}
37
38function shouldContinue(syncEpoch) {
39 return active && navigator.onLine && syncEpoch === getCacheEpoch();

Callers 1

prefetchProfilesFunction · 0.85

Calls 1

addApplicantDisplayNameFunction · 0.85

Tested by

no test coverage detected