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

Docs: add guidance for previous-id metadata #19097

Merged
merged 3 commits into from
Mar 24, 2025

Conversation

jcogs33
Copy link
Contributor

@jcogs33 jcogs33 commented Mar 23, 2025

Proposal for a previous-id tag property to track when alerts are moved to a different query. This is relevant for the current work on migrating the expert services quality queries.

Let me know if this should be a property (e.g. @previous-id java/query-one) instead of a tag. Switched to a property.

@jcogs33 jcogs33 marked this pull request as ready for review March 23, 2025 23:41
@Copilot Copilot bot review requested due to automatic review settings March 23, 2025 23:41
@jcogs33 jcogs33 requested a review from a team as a code owner March 23, 2025 23:41
Copy link
Contributor

@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.

Pull Request Overview

This PR updates the documentation to add guidance on using a new previous-id metadata tag for queries that have been migrated from a different query.

  • Introduces a new guideline for queries with alerts that were previously reported on a different query.
  • Provides an example demonstrating the intended usage of the previous-id tag.
Comments suppressed due to low confidence (1)

docs/query-metadata-style-guide.md:142

  • Consider clarifying whether the previous-id should always be implemented as a tag or if it could alternatively be a property, as suggested in the PR description. Explicitly stating the intended usage here will help maintain consistency.
+Queries with alerts that used to be reported on a different query should have a `previous-id:<previous-query-id>` tag to refer back to the query where the alerts were originally reported. For example, if alerts from `java/query-one` are now reported on `java/query-two`, then the metadata for `java/query-two` should contain: `@tags previous-id:java/query-one`.

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@jcogs33 jcogs33 changed the title Docs: add guidance for previous-id metadata tag Docs: add guidance for previous-id metadata Mar 24, 2025
adityasharad
adityasharad previously approved these changes Mar 24, 2025
@jcogs33
Copy link
Contributor Author

jcogs33 commented Mar 24, 2025

@adityasharad Should I update this Metadata properties table as well?

Proposed update in bea8ce3.

@jcogs33 jcogs33 merged commit 7208604 into github:main Mar 24, 2025
6 checks passed
@jcogs33 jcogs33 deleted the jcogs33/metatdata-previous-id branch March 24, 2025 17:19
jcogs33 pushed a commit to jcogs33/codeql that referenced this pull request Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants