Skip to content

Support Storing and Deploying WebCompat Redash Queries#503

Merged
ksy36 merged 4 commits intomainfrom
webcompat_redash
Mar 12, 2026
Merged

Support Storing and Deploying WebCompat Redash Queries#503
ksy36 merged 4 commits intomainfrom
webcompat_redash

Conversation

@jgraham
Copy link
Copy Markdown
Member

@jgraham jgraham commented Mar 4, 2026

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.

@jgraham jgraham requested a review from a team as a code owner March 4, 2026 16:01
@jgraham jgraham requested a review from ksy36 March 4, 2026 16:01
Comment thread jobs/webcompat-kb/webcompat_kb/redashdata.py Outdated
Comment thread jobs/webcompat-kb/webcompat_kb/redashdata.py Outdated
Comment thread jobs/webcompat-kb/webcompat_kb/redash/client.py Outdated
Copy link
Copy Markdown
Contributor

@ksy36 ksy36 left a comment

Choose a reason for hiding this comment

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

I left a few comments and also was wondering if having some tests would be helpful here, but otherwise looks good to me

@jgraham
Copy link
Copy Markdown
Member Author

jgraham commented Mar 11, 2026

I tried generating some unit tests for the RedashTemplateRenderer with Claude, and they're probably better than nothing, but I don't love them, so I didn't continue that path. I should probably work out if there's a strategy to get more useful coverage.

More usefully I added the template rendering to the webcompat-check-data command, so the CI script will at least check we can render all the checked-in templates.

@jgraham jgraham requested a review from ksy36 March 11, 2026 14:01
redash_client: RedashClient,
redash_data: redashdata.RedashData,
dashboards_filter: Optional[set[str]],
write: bool,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks like dashboards_filter is passed, but not used anymore? not sure if it will render all dashboards even though a specific dashboard arg is passed in

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good, catch! Fixed.

jgraham added 4 commits March 12, 2026 12:10
This allows the queries to be parameterised based on the metric definitions.
For the Comprehensive WebCompat Overview dashboard, and for the Bugs
By Next Team and Action query which isn't really part of any
dashboard.
This ensures that we're able to at least successfully render all the templates. It currently doesn't
do any additional linting.
@ksy36 ksy36 merged commit 91b7196 into main Mar 12, 2026
3 checks passed
@ksy36 ksy36 deleted the webcompat_redash branch March 12, 2026 17:06
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.

2 participants