Skip to content

Commit d4029b4

Browse files
committed
testing whitelisted reports
1 parent 43a84df commit d4029b4

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

definitions/output/reports/reports_dynamic.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const EXPORT_CONFIG = {
3030
// Date range for report generation
3131
// Adjust these dates to update reports retrospectively
3232
const DATE_RANGE = {
33-
startDate: '2026-01-01', // constants.currentMonth, // '2026-01-01' //todo reset dates
34-
endDate: '2026-01-01' // constants.currentMonth // '2026-01-01'
33+
startDate: constants.currentMonth,
34+
endDate: constants.currentMonth
3535
}
3636

3737
/**
@@ -135,8 +135,10 @@ function generateReportConfigurations() {
135135
date >= DATE_RANGE.startDate;
136136
date = constants.fnPastMonth(date)) {
137137

138+
const whitelistedMetrics = availableMetrics.Array.filter(metric => metric.enabled) // TODO: reports are whitelisted during migration
139+
138140
// For each available metric
139-
availableMetrics.forEach(metric => {
141+
whitelistMetrics.forEach(metric => {
140142
// For each SQL type (histogram, timeseries)
141143
metric.SQL.forEach(sql => {
142144
// For each available lens (all, top1k, wordpress, etc.)

includes/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const [
2121
]
2222
: ['', '']
2323
const bucket = 'httparchive'
24-
const storagePath = 'reports/test/' // todo: restore path
24+
const storagePath = 'reports/'
2525

2626
module.exports = {
2727
today,

includes/reports.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ const config = {
100100
}
101101
]
102102
},
103-
llmsTxtAdoption: {
103+
llmsTxt: {
104+
enabled: true,
104105
SQL: [
105106
{
106107
type: 'timeseries',
@@ -125,11 +126,7 @@ const config = {
125126
}
126127
]
127128
}
128-
}
129-
};
130-
131-
// todo: merge configs
132-
const config_backup = {
129+
},
133130
ttci: {
134131
SQL: [
135132
{

0 commit comments

Comments
 (0)