Closed SlowMo24 closed 2 years ago
indicates that the user wants all (or none?) OSM data.
Yeah, I can see that there is some potential confusion around how an empty filter would work. For me, implementing the empty filter as a catch-all instruction in 57e52f7eb172795cab0ec9cf455edb2d35d94e89 was quite "intuitive" since it mirrors the behavior of not calling filter(…)
at all. But I can see that one could also interpret it otherwise.
disallow the empty filter
Strictly speaking, a user could always replace an empty filter with something like tag=value or tag!=value
which is equivalent to an empty filter. But on the other hand, the disallowing could slightly incentivize the usage of an empty filter. :thinking:
warn the user
This seems like a very reasonable thing to do.
great comment, did not think of the other situations where this can be a problem! In that case my vote goes for
Problem Description
The empty filter
""
indicates that the user wants all (or none?) OSM data. But the filter will not return that due to some reasonable filtering in the ETL like meta-relations or Nodes without tags.Possible solutions
In addition the ETL process could get a dedicated documentation stating the objects that are not featured in the oshdb and why/how to retrieve them.