Skip to content

Conversation

@jgraham
Copy link
Member

@jgraham jgraham commented Nov 25, 2025

Checklist for reviewer:

  • Commits should reference a bug or github issue, if relevant (if a bug is
    referenced, the pull request should include the bug number in the title)
  • Scan the PR and verify that no changes (particularly to
    .circleci/config.yml) will cause environment variables (particularly
    credentials) to be exposed in test logs
  • Ensure the container image will be using permissions granted to
    telemetry-airflow
    responsibly.

Note for deployments: In order to push images built by this PR, the user who merges the PR
must be in the telemetry Github team.
This is because deploys depend on the
data-eng-airflow-gcr CircleCI context.
See DENG-8850 for additional discussion.

This allows centralizing some of the command handling like arguments
that apply to many command types and dropping into pdb.
This means that instead of using `webcompat-etl <args>
metric-backfill` we can just use `webcompat-metric-backfill`.
@jgraham jgraham requested a review from ksy36 November 25, 2025 13:15
@jgraham jgraham changed the title Webcompat command class Move backfill-metric to a command Nov 25, 2025
@jgraham jgraham mentioned this pull request Nov 25, 2025
3 tasks
project = projectdata.load(
client, args.bq_project_id, os.path.normpath(args.data_path), set(), config
)
if args.metric not in project.data.metric_dfns:
Copy link
Collaborator

Choose a reason for hiding this comment

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

should it check metric.name here? something like:
if args.metric not in [m.name for m in project.data.metric_dfns]

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.

3 participants