MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / extractDataItems

Method extractDataItems

src/bases/BasesDataAdapter.ts:39–49  ·  view source on GitHub ↗

* Extract all data items from Bases query result. * Uses public API: basesView.data.data * * NOTE: This only extracts frontmatter and basic file properties (cheap). * Computed file properties (backlinks, links, etc.) are fetched lazily * via getComputedProperty() during rendering for visib

()

Source from the content-addressed store, hash-verified

37 * via getComputedProperty() during rendering for visible items only.
38 */
39 extractDataItems(): BasesDataItem[] {
40 const entries = this.basesView.data.data;
41 return entries.map((entry) => ({
42 key: entry.file.path,
43 data: entry,
44 file: entry.file,
45 path: entry.file.path,
46 properties: this.extractEntryProperties(entry),
47 basesData: entry,
48 }));
49 }
50
51 /**
52 * Get grouped data from Bases.

Callers 10

getDataSignatureMethod · 0.80
renderMethod · 0.80
updateRelevantPathsCacheFunction · 0.80
copyCurrentViewTasksFunction · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderGroupedMethod · 0.80
refreshGroupedViewMethod · 0.80

Calls 1

Tested by

no test coverage detected