Skip to content

Add validation for lifecycle prefix tags conflict#12220

Open
bhavyaKhatri2703 wants to merge 3 commits into
openstreetmap:developfrom
bhavyaKhatri2703:validate_lifecycle_prefix_tags
Open

Add validation for lifecycle prefix tags conflict#12220
bhavyaKhatri2703 wants to merge 3 commits into
openstreetmap:developfrom
bhavyaKhatri2703:validate_lifecycle_prefix_tags

Conversation

@bhavyaKhatri2703

Copy link
Copy Markdown
Contributor

Addresses #12187.

This PR adds validation for lifecycle prefix tags and provides an option to remove one of the tags.
Example:
building:destroyed, building

image

Comment thread modules/osm/tags.js
@@ -433,3 +431,15 @@ export const osmUrlKeys = new Set([
'website:menu',
'post_office:website',
]);

export const osmLifecycleConflictPrefixes = new Set([

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is this list based on? The prefixes documented on https://wiki.openstreetmap.org/wiki/Lifecycle_prefix are slightly different.

Why isn't this just using osmLifecyclePrefixes, why a separate list?

@RudyTheDev

Copy link
Copy Markdown
Contributor

What about something like disused:leisure=stadium + leisure=park - these are not mutually exclusive.

Or what about something like disused:amenity=parking + disused:parking=surface - this would retain disused:parking value.

This should really have unit tests for common scenarios/examples and edge cases.

@tordans

tordans commented May 30, 2026

Copy link
Copy Markdown
Collaborator

The next, planned step for lifecycle tags is #10844
IMO any improvements should be based on the progress over there as an improvement to what is already planned.

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.

3 participants