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

Function setProgram

src/Data/ProgramData.js:219–234  ·  view source on GitHub ↗
(program)

Source from the content-addressed store, hash-verified

217 });
218 await Promise.all([
219 removeCacheValue("programs"),
220 ...(content?.ProgramID ? [removeCacheValue(programDescCacheKey(content.ProgramID))] : []),
221 ]);
222}
223
224function normalizeQueryValues(value) {
225 const values = typeof value === 'string' ? value.split(',').filter(Boolean) : value;
226 return Array.isArray(values) && values.length === 0 ? null : values;
227}
228
229function programDescCacheKey(programId) {
230 return `${programId}-Desc`;
231}
232
233function programIdFromDescCacheKey(key) {
234 return key.slice(0, -"-Desc".length);
235}

Callers 3

addModifyRecordFunction · 0.90
deleteRecordFunction · 0.90
setProgramContentFunction · 0.85

Calls 2

getProgramsFunction · 0.85
setProgramsFunction · 0.85

Tested by

no test coverage detected