You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For context, see getsentry/relay#2718, which was closed as not planned in favor of this issue.
We should add validation for the sentry-cli monitors run command's --timezone argument. The validation should check that the --timezone is a valid IANA time zone database string. The Sentry backend also checks against the IANA time zone database, so we would expect any arguments which pass this validation within the Sentry CLI to also pass validation on the Sentry backend. We can perform this validation using the chrono_tz library.
After adding the validation, we should remove the warning from the docs which states that the --timezone argument is not validated.
The text was updated successfully, but these errors were encountered:
…1847)
The `sentry-cli monitors run` command's `--timezone` argument will now be validated against a list of valid IANA time zone database identifiers. If the user provides a `--timezone` argument, which does not match a valid IANA time zone identifier, the command will fail with an error. Previously, the command would appear to run successfully, but the monitor upsert would silently fail in the Sentry backend, since the backend rejects monitor upserts that have an invalid timezone string.
FixesGH-1845
For context, see getsentry/relay#2718, which was closed as not planned in favor of this issue.
We should add validation for the
sentry-cli monitors run
command's--timezone
argument. The validation should check that the--timezone
is a valid IANA time zone database string. The Sentry backend also checks against the IANA time zone database, so we would expect any arguments which pass this validation within the Sentry CLI to also pass validation on the Sentry backend. We can perform this validation using thechrono_tz
library.After adding the validation, we should remove the warning from the docs which states that the
--timezone
argument is not validated.The text was updated successfully, but these errors were encountered: