getsentry / getsentry/sentry

LCP FIP CLS Metric Alerts give error when setting same value for Warning and Resolved when value is less than 1

Open
#49,493 3 comments 1 reaction 0 assignees View on GitHub
Bug Product Area: Alerts
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
1d 5h
Merged PRs (30d)
624

Description

### Environment

SaaS (https://sentry.io/)

### Steps to Reproduce

1 . Create a LCP FIP or CLS Metric Alert
2. Input the same value for Warning and Resolved that is less than 1 (ie. 0.1)
3. Get Error message below.

It works when the value is 1 or higher (ie. 1)

**Impossible to create this CLS alert from the example page -**

Screenshot 2023-05-19 at 2 58 19 PM

**Error Appears below -**
Screenshot 2023-05-19 at 2 59 02 PM

**Works When there is no decimal place -**

Screenshot 2023-05-18 at 12 25 58 PM

### Expected Result

Giving the same value of 0.5, 0.5 for Warning and Resolved should work based on the example in the alert creation page.

### Actual Result

Current work around will be to set something like this 0.5, and 0.4999

### Product Area

Alerts

### Link

https://francisorg.sentry.io/alerts/rules/details/146504/

### DSN

_No response_

### Version

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.