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

Fix: Apply error condition never registered due to early return #1837

Merged

Conversation

Baarsgaard
Copy link
Collaborator

@Baarsgaard Baarsgaard commented Jan 25, 2025

I forgot that the buildSynchronizedCondition function applies either a successful or a failed condition depending on whether errors where present.
This was noticed by @msvechla in #1800

To ensure something like this never happens again, tests have been added to provoke and test every condition currently implemented.

Future PRs will include conditions and tests for GrafanaDashboards and potentially Grafanas.
Any future CR or condition implementation should probably expand these tests to ensure that the conditions can be provoked appropriately.

@github-actions github-actions bot added the bugfix this PR fixes a bug label Jan 25, 2025
@Baarsgaard Baarsgaard force-pushed the fix_synchronized_error_condition_missing branch from ee1d36f to 5a7afe3 Compare January 26, 2025 22:48
@Baarsgaard Baarsgaard force-pushed the fix_synchronized_error_condition_missing branch 2 times, most recently from 2aac88d to 0ef7517 Compare February 4, 2025 17:56
@Baarsgaard Baarsgaard marked this pull request as ready for review February 4, 2025 18:04
@Baarsgaard Baarsgaard force-pushed the fix_synchronized_error_condition_missing branch from 0ef7517 to 4227d2e Compare February 4, 2025 18:12
@Baarsgaard Baarsgaard force-pushed the fix_synchronized_error_condition_missing branch from 4227d2e to 441c03a Compare February 4, 2025 18:23
@theSuess theSuess added this pull request to the merge queue Feb 5, 2025
Merged via the queue into grafana:master with commit 6b98fea Feb 5, 2025
15 checks passed
@Baarsgaard Baarsgaard deleted the fix_synchronized_error_condition_missing branch February 5, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix this PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants