Skip to content

Conversation

@alastair
Copy link
Member

@alastair alastair commented Dec 28, 2025

Issue(s)
Fixes https://logserver.mtg.upf.edu/organizations/sentry/issues/3955/
Fixes https://logserver.mtg.upf.edu/organizations/sentry/issues/4730/

Description
We rewrite old query parameters of the form duration:[1 TO 3] to the new search interface. If the value of duration is invalid (e.g. duration:1 TO 3 (no braces) or even duration:[1 to 3] (lower-case to) then the parser treats this as a string not a range. Only convert this parameter if it is valid, otherwise ignore it.

In the case that an invalid parameter is passed (grouping_pack), show an error message on the map page, as we do on the search page

Failing tests are fixed in #2033

If an sqp has an error (e.g. invalid grouping_pack filter is set)
then return an error instead of trying to render the map
We rewrite a filter of the form "duration:[lower TO upper]", but we get
some queries of "duration:lower TO upper" which parses as a string not a
range. In this case, skip the conversion and omit the parameter.
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.

2 participants