Skip to content

Conversation

@shati-patel
Copy link
Contributor

@shati-patel shati-patel commented Mar 14, 2024

Add a stats row to the model alerts view

image

Checklist

N/A

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@shati-patel shati-patel force-pushed the shati-patel/model-alerts-stats branch from f8ae2aa to 25d0335 Compare March 18, 2024 12:00
Comment on lines 3 to 9
import { ModelAlerts as ModelAlertsComponent } from "../../view/model-alerts/ModelAlerts";

export default {
title: "CodeQL Model Alerts/CodeQL Model Alerts",
title: "Model Alerts/Model Alerts",
component: ModelAlertsComponent,
} as Meta<typeof ModelAlertsComponent>;

Copy link
Contributor Author

@shati-patel shati-patel Mar 18, 2024

Choose a reason for hiding this comment

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

I can't get anything to appear in the main "model alerts" story (only in the new "model alerts header" story) 🤔

I could delete it, but I'm probably just doing something stupid to prevent things from working 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

We (me) probably broke the story - you shouldn't need to do anything to get it working. I can take a look.

Copy link
Contributor

Choose a reason for hiding this comment

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

PR to fix this: #3490

case "openLogs":
await this.app.commands.execute(
"codeQL.openVariantAnalysisLogs",
123, // TODO: Get the actual variantAnalysisId
Copy link
Contributor Author

@shati-patel shati-patel Mar 18, 2024

Choose a reason for hiding this comment

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

I couldn't figure out how to get the variant analysis (ID) at this point 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

You can get send the id in the message from the view.

@shati-patel shati-patel marked this pull request as ready for review March 18, 2024 13:43
@shati-patel shati-patel requested review from a team as code owners March 18, 2024 13:43
Copy link
Contributor

@charisk charisk left a comment

Choose a reason for hiding this comment

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

LGTM!

@shati-patel shati-patel merged commit 3623668 into main Mar 20, 2024
@shati-patel shati-patel deleted the shati-patel/model-alerts-stats branch March 20, 2024 10:14
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