bulltrackers-module 1.0.695 → 1.0.697
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/functions/computation-system/context/ContextFactory.js +4 -2
- package/functions/computation-system/executors/MetaExecutor.js +8 -4
- package/functions/computation-system/helpers/computation_dispatcher.js +2 -2
- package/functions/computation-system/tools/DeploymentValidator.js +1 -1
- package/package.json +1 -1
|
@@ -100,7 +100,8 @@ class ContextFactory {
|
|
|
100
100
|
pageViews,
|
|
101
101
|
watchlistMembership,
|
|
102
102
|
alertHistory,
|
|
103
|
-
seriesData
|
|
103
|
+
seriesData,
|
|
104
|
+
piMasterList
|
|
104
105
|
} = options;
|
|
105
106
|
|
|
106
107
|
return {
|
|
@@ -121,7 +122,8 @@ class ContextFactory {
|
|
|
121
122
|
pageViews: pageViews || {},
|
|
122
123
|
watchlistMembership: watchlistMembership || {},
|
|
123
124
|
alertHistory: alertHistory || {},
|
|
124
|
-
series: seriesData || {}
|
|
125
|
+
series: seriesData || {},
|
|
126
|
+
piMasterList: piMasterList || {} // <--- ADDED TO GLOBAL DATA
|
|
125
127
|
}
|
|
126
128
|
};
|
|
127
129
|
}
|
|
@@ -24,10 +24,11 @@ class MetaExecutor {
|
|
|
24
24
|
const manifestLookup = Object.fromEntries(allManifests.map(m => [normalizeName(m.name), m.category]));
|
|
25
25
|
|
|
26
26
|
// 2. Load Base Data (Always Required)
|
|
27
|
-
const [mappings, rankings, verifications] = await Promise.all([
|
|
27
|
+
const [mappings, rankings, verifications, piMasterList] = await Promise.all([
|
|
28
28
|
loader.loadMappings(),
|
|
29
29
|
loader.loadRankings(dStr),
|
|
30
|
-
loader.loadVerifications()
|
|
30
|
+
loader.loadVerifications(),
|
|
31
|
+
loader.loadPIMasterList() // <--- ADDED LOAD
|
|
31
32
|
]);
|
|
32
33
|
|
|
33
34
|
// 3. Load Historical Rankings (if needed)
|
|
@@ -59,6 +60,7 @@ class MetaExecutor {
|
|
|
59
60
|
allRankings: rankings,
|
|
60
61
|
allRankingsYesterday: rankingsYesterday,
|
|
61
62
|
allVerifications: verifications,
|
|
63
|
+
piMasterList, // <--- INJECTED HERE
|
|
62
64
|
// Spread variable roots directly (ratings, pageViews, etc.)
|
|
63
65
|
...variableRoots,
|
|
64
66
|
seriesData
|
|
@@ -93,11 +95,12 @@ class MetaExecutor {
|
|
|
93
95
|
const calcs = [metadata]; // Treat single as list for helpers
|
|
94
96
|
|
|
95
97
|
// 1. Load Data using Shared Helpers
|
|
96
|
-
const [mappings, rankings, variableRoots, seriesData] = await Promise.all([
|
|
98
|
+
const [mappings, rankings, variableRoots, seriesData, piMasterList] = await Promise.all([
|
|
97
99
|
loader.loadMappings(),
|
|
98
100
|
loader.loadRankings(dateStr),
|
|
99
101
|
loadVariableRootData(loader, dateStr, calcs, logger),
|
|
100
|
-
loadSeriesData(loader, dateStr, calcs, {}, config, deps)
|
|
102
|
+
loadSeriesData(loader, dateStr, calcs, {}, config, deps),
|
|
103
|
+
loader.loadPIMasterList() // <--- ADDED LOAD
|
|
101
104
|
]);
|
|
102
105
|
|
|
103
106
|
let rankingsYesterday = null;
|
|
@@ -116,6 +119,7 @@ class MetaExecutor {
|
|
|
116
119
|
previousComputedDependencies: prevDeps, config, deps,
|
|
117
120
|
allRankings: rankings,
|
|
118
121
|
allRankingsYesterday: rankingsYesterday,
|
|
122
|
+
piMasterList, // <--- INJECTED HERE
|
|
119
123
|
...variableRoots,
|
|
120
124
|
seriesData
|
|
121
125
|
};
|
|
@@ -263,8 +263,8 @@ async function handleSnapshot(config, dependencies, reqBody) {
|
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
const successful = results.filter(r => r.status === 'OK').length;
|
|
266
|
-
const skipped
|
|
267
|
-
const failed
|
|
266
|
+
const skipped = results.filter(r => r.status === 'SKIPPED').length;
|
|
267
|
+
const failed = results.filter(r => r.status === 'ERROR').length;
|
|
268
268
|
|
|
269
269
|
logger.log('INFO', `[Dispatcher] 📸 Snapshot batch complete: ${successful} processed, ${skipped} skipped, ${failed} failed out of ${results.length} total`);
|
|
270
270
|
|
|
@@ -39,7 +39,7 @@ const VALIDATION_RULES = {
|
|
|
39
39
|
VALID_ROOT_DATA_DEPS: new Set([
|
|
40
40
|
'portfolio', 'history', 'social', 'insights', 'price',
|
|
41
41
|
'rankings', 'verification', 'ratings', 'pageViews',
|
|
42
|
-
'watchlist', 'alerts'
|
|
42
|
+
'watchlist', 'alerts', 'piMasterList'
|
|
43
43
|
]),
|
|
44
44
|
|
|
45
45
|
// Valid schedule types
|