Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URLs with filters contain duplicated information #694

Open
Dimitar5555 opened this issue Dec 16, 2023 · 0 comments
Open

URLs with filters contain duplicated information #694

Dimitar5555 opened this issue Dec 16, 2023 · 0 comments

Comments

@Dimitar5555
Copy link

I'm submitting a bug report

Brief Description

URLs become very long when you've set any filter.

What is the current behaviour, (attach relevant screenshots) ?

For example see this one which gets all changesets fom the past seven day for Bulgaria: https://osmcha.org/changesets/145177118/?filters={"geometry":[{"label":{"type":"Polygon","coordinates":[[[22.357146,43.80953],[22.533555,43.471182],[23.006275,43.192872],[22.744646,42.886145],[22.43993,42.823703],[22.559255,42.480266],[22.359802,42.311762],[22.867129,42.022067],[23.033372,41.72238],[22.927231,41.338622],[23.105442,41.316622],[24.261544,41.573668],[25.283363,41.235471],[25.901328,41.30628],[26.201304,41.438392],[26.070608,41.70971],[26.357961,41.711128],[26.623732,41.97962],[27.239215,42.104801],[27.560005,41.905127],[28.323833,41.981333],[28.073155,42.317393],[28.16354,42.982932],[28.287819,43.184494],[28.659471,43.218897],[28.887541,43.539345],[28.855556,43.738611],[28.236223,43.758491],[27.916809,44.008275],[27.041956,44.144615],[26.139322,43.983513],[25.396198,43.618995],[22.902257,43.82725],[23.045015,44.07431],[22.67382,44.215539],[22.357146,43.80953]]]},"value":{"type":"Polygon","coordinates":[[[22.357146,43.80953],[22.533555,43.471182],[23.006275,43.192872],[22.744646,42.886145],[22.43993,42.823703],[22.559255,42.480266],[22.359802,42.311762],[22.867129,42.022067],[23.033372,41.72238],[22.927231,41.338622],[23.105442,41.316622],[24.261544,41.573668],[25.283363,41.235471],[25.901328,41.30628],[26.201304,41.438392],[26.070608,41.70971],[26.357961,41.711128],[26.623732,41.97962],[27.239215,42.104801],[27.560005,41.905127],[28.323833,41.981333],[28.073155,42.317393],[28.16354,42.982932],[28.287819,43.184494],[28.659471,43.218897],[28.887541,43.539345],[28.855556,43.738611],[28.236223,43.758491],[27.916809,44.008275],[27.041956,44.144615],[26.139322,43.983513],[25.396198,43.618995],[22.902257,43.82725],[23.045015,44.07431],[22.67382,44.215539],[22.357146,43.80953]]]}}],"date__gte":[{"label":"2023-12-14","value":"2023-12-14"}]}

You can clearly see that all values are duplicated as labels. It should be easy to drop the label and a level of nesting.

What is the expected behaviour ?

Data shouldn't be duplicated across the label and value fields.

When does this occur ?

When you've set up any filter.

How do we replicate the issue ?

  1. Create a filter for country
  2. Add from/to date
  3. Press "Apply"

Please tell us about your environment:

N/A

Other Information / context:

N/A

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

No branches or pull requests

1 participant