theCrag / website

theCrag.com: Add your voice and help guide the development of the world's largest collaborative rock climbing & bouldering platform
https://www.thecrag.com/
109 stars 8 forks source link

Route filter for Artifical areas not working correctly #3687

Open killakalle opened 4 years ago

killakalle commented 4 years ago

What happened? Filtering routes with setting: Artificial does not return routes in artificial areas. They are found under Natual setting instead.

Example URL(s) to reproduce the problem:

Filter: https://www.thecrag.com/climbing/spain/valencia-cuenca-area/area/2912893242/routes/in-setting/artificial/?sortby=at,desc

Artificial area with routes that are not returned by the filter: https://www.thecrag.com/climbing/spain/valencia-cuenca-area/area/3067857549

Ideally, also provide screenshots: No artificial routes are found: image

Instead, artificial routes show up under Natural search image

What you expected:

killakalle commented 4 years ago

PS: At first, my structure of nodes was like this:

area, type: Artificial area | Boulder 1, type: Boulder | Boulder 2, type: Boulder

I then changed the types to :

area, type: Artificial area | Boulder 1, type: Artificial area | Boulder 2, type: Artificial area

But it did not have any impact on the search results. Wondering though, whether Children of an artificial area are automatically considered artifical or not.

PPS: Issue maybe related to https://github.com/theCrag/website/issues/2998 ?

Mdemaillard commented 4 years ago

confirmed issue, i remember something similar somewhere else, with public artificial boulders, and issue with the artificial search only finding things below a Gym node. I thought that had been corrected already. Will search for the older topic and see where it stands.

Mdemaillard commented 4 years ago

found it : #2579 and this area. https://www.thecrag.com/climbing/australia/inner-melbourne/area/982344321 They got around it by setting the higher level as a Gym instead of artificial area, which should not be required.