Skip to content
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

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

Completing reports migration #41

wants to merge 12 commits into from

Conversation

max-ostapenko
Copy link
Contributor

I added lenses conditions to the sample reports.
Exported examples can be seen under httparchive/reports/dev/ path.

@@ -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;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: remove hardcoded dates.

@max-ostapenko max-ostapenko marked this pull request as ready for review January 7, 2025 06:24
@max-ostapenko max-ostapenko requested a review from Copilot January 7, 2025 06:24
Copy link

@Copilot Copilot AI left a 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}/`

infra/bigquery-export/reports.js Outdated Show resolved Hide resolved
@max-ostapenko max-ostapenko marked this pull request as draft January 7, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant