bulltrackers-module 1.0.696 → 1.0.698
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/data/AvailabilityChecker.js +2 -1
- package/functions/computation-system/executors/MetaExecutor.js +8 -4
- 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
|
}
|
|
@@ -20,7 +20,8 @@ const SIMPLE_DEP_MAP = {
|
|
|
20
20
|
ratings: 'piRatings',
|
|
21
21
|
pageViews: 'piPageViews',
|
|
22
22
|
watchlist: 'watchlistMembership',
|
|
23
|
-
alerts: 'piAlertHistory'
|
|
23
|
+
alerts: 'piAlertHistory',
|
|
24
|
+
piMasterList: 'piMasterList' // <--- ADD THIS LINE
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
// Dependencies that vary based on the userType of the calculation
|
|
@@ -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
|
};
|
|
@@ -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
|