-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completing reports migration #41
base: main
Are you sure you want to change the base?
Conversation
@@ -1,47 +1,74 @@ | |||
const configs = new reports.HTTPArchiveReports() | |||
const metrics = configs.listMetrics() | |||
|
|||
// Adjust start and end dates to update reports retrospectively | |||
const startDate = '2024-12-01' // constants.currentMonth; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: remove hardcoded dates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (5)
definitions/output/reports/reports_dynamic.js:5
- Replace the hardcoded date with a constant or variable to avoid magic numbers.
const startDate = '2024-12-01' // constants.currentMonth;
definitions/output/reports/reports_dynamic.js:6
- Replace the hardcoded date with a constant or variable to avoid magic numbers.
const endDate = '2024-12-01' // constants.currentMonth;
includes/reports.js:25
- The term 'lense' is incorrectly spelled. It should be 'lens'.
date = '${params.date}' ${params.devRankFilter} ${params.lense.sql} AND
includes/reports.js:51
- The term 'lense' is incorrectly spelled. It should be 'lens'.
date = '${params.date}' ${params.devRankFilter} ${params.lense.sql} AND
infra/bigquery-export/reports.js:46
- Modifying this.storagePath directly can lead to unintended side effects. Consider resetting this.storagePath to its original value after the export is completed.
this.storagePath = this.storagePath + `${exportData.lense}/`
@@ -6,6 +6,7 @@ export class ReportsExporter { | |||
constructor () { | |||
this.bigquery = new BigQueryExport() | |||
this.storage = new StorageExport() | |||
this.storagePath = 'reports/dev/' // TODO change to prod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TODO comment should be addressed or removed if it's no longer relevant.
this.storagePath = 'reports/dev/' // TODO change to prod | |
this.storagePath = 'reports/' |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
I added lenses conditions to the sample reports.
Exported examples can be seen under
httparchive/reports/dev/
path.