Open Bug 1934098 Opened 1 year ago Updated 1 year ago

Allow OR combination in request filter

Categories

(DevTools :: Netmonitor, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: sebo, Unassigned)

References

(Blocks 1 open bug)

Details

The filter field in the Netmonitor currently allows to combine several filters by separating them with a space, effectively creating an AND combination of the entered properties.

There should also be a way to enter OR combinations in order to allow filtering the requests that match any of the entered properties.

E.g. in https://stackoverflow.com/q/79234589/432681 someone asks for being able to filter the requests that either have GET or POST as request method.

I see two (non-exclusive) ways how to implement this:

  1. Using a combinator within the properties, e.g. method:GET|POST
    advantages: no repetition of the property name, brief, aligns with regex syntax
    disadvantages: only single-property combinations possible, might cause issues if the combinator is allowed within the property value
  2. Using a combinator outside the properties, e.g. method:GET | method:POST
    advantage: arbitrary combinations of properties possible
    disadvantages: verbose, complex when AND and OR combinations are allowed

Sebastian

Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.