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

Validate Data Sources when creating rules. #5068

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

blkt
Copy link
Contributor

@blkt blkt commented Nov 27, 2024

Summary

Rules can now specify a list of data sources names that they need for their evaluation. This change ensures that data sources required by the rule are available when creating the rule.

A similar change is being added in the code path implementing data source deletion ensuring that a data source is not deleted if there exist rules depending on it.

Fixes #5049

Change Type

  • Bug fix (resolves an issue without affecting existing features)
  • Feature (adds new functionality without breaking changes)
  • Breaking change (may impact existing functionalities or require documentation updates)
  • Documentation (updates or additions to documentation)
  • Refactoring or test improvements (no bug fixes or new functionality)

Testing

Unit tested.

Review Checklist:

  • Reviewed my own code for quality and clarity.
  • Added comments to complex or tricky code sections.
  • Updated any affected documentation.
  • Included tests that validate the fix or feature.
  • Checked that related changes are merged.

@blkt blkt self-assigned this Nov 27, 2024
@blkt blkt requested a review from a team as a code owner November 27, 2024 16:19
@blkt blkt force-pushed the feat/add-data-source-validation-to-rules branch 2 times, most recently from 7d0af56 to 94feeb8 Compare November 28, 2024 13:01
Rules can now specify a list of data sources names that they need for
their evaluation. This change ensures that data sources required by
the rule are available when creating the rule.

A similar change is being added in the code path implementing data
source deletion ensuring that a data source is not deleted if there
exist rules depending on it.

Fixes #5049
@blkt blkt force-pushed the feat/add-data-source-validation-to-rules branch from 94feeb8 to 7992ebb Compare November 28, 2024 13:02
@blkt
Copy link
Contributor Author

blkt commented Nov 28, 2024

@JAORMX I should have addressed all your concerns, PTAL.

@blkt blkt merged commit e71d4d9 into main Nov 28, 2024
24 checks passed
@blkt blkt deleted the feat/add-data-source-validation-to-rules branch November 28, 2024 13:15
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.

Hook data source validation into rule types API
2 participants