MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / getProgramDesc

Function getProgramDesc

src/Data/ProgramData.js:131–140  ·  view source on GitHub ↗
(programId, isRefresh = false, {priority = FOREGROUND_PRIORITY} = {})

Source from the content-addressed store, hash-verified

129}
130
131export async function getProgramDesc(programId, isRefresh = false, {priority = FOREGROUND_PRIORITY} = {}) {
132 /*
133 * Get the description of the program from the server or local storage by programId
134 * @param programId [String]: programId
135 * @param isRefresh [Boolean]: whether to refresh the data
136 * @return: description of the program
137 */
138 const descriptions = await getProgramDescs([programId], isRefresh, {priority});
139 return descriptions[programId];
140}
141
142export async function getProgramDescs(programIds, isRefresh = false, {priority = FOREGROUND_PRIORITY} = {}) {
143 const uniqueProgramIds = [...new Set(programIds)].filter(Boolean);

Callers 2

actionFunction · 0.90
getProgramContentFunction · 0.85

Calls 1

getProgramDescsFunction · 0.85

Tested by

no test coverage detected