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]: threshold in alerts #4074

Merged
merged 13 commits into from
Dec 1, 2023
Merged

[Fix]: threshold in alerts #4074

merged 13 commits into from
Dec 1, 2023

Conversation

Rajat-Dabade
Copy link
Contributor

@github-actions github-actions bot added the bug Something isn't working label Nov 27, 2023
@Rajat-Dabade Rajat-Dabade self-assigned this Nov 27, 2023
@srikanthccv
Copy link
Member

These are the main issues I could find

  • Can the value be short form? For example, here 4GB instead of 4000000000 bytes
Screenshot 2023-11-28 at 3 15 20 PM
  • The threshold line doesn't appear if the threshold value is more than the max value in the chart i.e. The following chart has around ~ 9 GB as max but If I set the threshold as 15GB the threshold doesn't appear.
Screenshot 2023-11-28 at 3 17 51 PM Screenshot 2023-11-28 at 3 18 01 PM
  • The threshold line does exist in edit mode for percent unit but works for other units
Screenshot 2023-11-28 at 3 21 13 PM

No threshold line even though there is threshold

Screenshot 2023-11-28 at 3 21 44 PM

srikanthccv
srikanthccv previously approved these changes Nov 30, 2023
@srikanthccv
Copy link
Member

Tested

@@ -110,6 +105,9 @@ function ChartPreview({

const isDarkMode = useIsDarkMode();

const optionName =
getFormatNameByOptionId(alertDef?.condition.targetUnit || '') || '';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we be calling the function only if the targetUnit exists?

@srikanthccv srikanthccv merged commit 0b99133 into develop Dec 1, 2023
11 checks passed
@srikanthccv srikanthccv deleted the gh-4032 branch December 1, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Threshold in Alerts UI doesn't work
3 participants