Skip to content

Prevent unused slots in the recent preset list.#11810

Open
Razen04 wants to merge 1 commit intoopenstreetmap:developfrom
Razen04:recent-preset-fix
Open

Prevent unused slots in the recent preset list.#11810
Razen04 wants to merge 1 commit intoopenstreetmap:developfrom
Razen04:recent-preset-fix

Conversation

@Razen04
Copy link
Contributor

@Razen04 Razen04 commented Jan 25, 2026

Fixes #11405

Filtering before slicing prevents the unused slots in the recent preset list, more detail about this in #11405

If we wish to show the Motorway Link and others in the US and CA in the recent list, we can just prevent filtering the recent list based on location, I have already commented in the issue everything here.

@matkoniecz
Copy link
Contributor

matkoniecz commented Feb 26, 2026

Can you add test so potential regression would be avoided?

@Razen04
Copy link
Contributor Author

Razen04 commented Mar 1, 2026

Sure, I will do it rn.

@Razen04 Razen04 force-pushed the recent-preset-fix branch from d799bd3 to 55c4a55 Compare March 1, 2026 15:38
@Razen04
Copy link
Contributor Author

Razen04 commented Mar 1, 2026

It's really weird that Github gave attribute to some random account, I am trying to fix the commits because it contained my personal name which I don't wish to have. But Github attributed the commits to someone random person, I think I fixed it for now.

Anyways I have added the test case, never done before so maybe it is wrong do let me know that.

Copy link
Contributor

@matkoniecz matkoniecz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when you select "motorway link" from major roads folder it will not appear in recent presets

yes, it is no longer blocking history slot but it is still a bug

@Razen04
Copy link
Contributor Author

Razen04 commented Mar 3, 2026

That is what's supposed to happen if we are in US or maybe CA too, OSM prevents those from appearing. I think it is intentionally done

@matkoniecz
Copy link
Contributor

matkoniecz commented Mar 3, 2026

no, it is also clearly part of the same bug and unwanted behavior resulting from overcomplex area-specific presets

@Razen04
Copy link
Contributor Author

Razen04 commented Mar 3, 2026

Ohhh, I thought that was intentional, fine then I will just make it not check the location maybe and bypass that. But then why is the data containing that, as mentioned in the issue by me?

@matkoniecz
Copy link
Contributor

randomly hiding motorway link from recently used entries is definitely not deliberate

it is side effect of having special motorway link entry for USA, maybe also other areas (which was well intentioned solution for some other problem but causing trouble due to increased complexity)

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.

Presets for motorway link, trunk link, primary link won’t show up as recently used presets in some regions

2 participants