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

refactor isOneWay to properly support bidirectional ways #10730

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

k-yle
Copy link
Collaborator

@k-yle k-yle commented Feb 4, 2025

unblocks #10731

The code which handles oneway=-1 and oneway=alternating is a bit confusing and has hardcoded tags in different parts of the codebase.

This PR refactors the logic into 3 methods: isOneWayForwards, isOneWayBackwards, isBiDirectional

@k-yle k-yle added the chore Improvements to the iD development experience or codebase label Feb 4, 2025
Copy link
Member

@tyrasd tyrasd left a comment

Choose a reason for hiding this comment

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

Great idea to consolidate all those tags into a single location. 👍

See a few minor comments inline below.

@k-yle k-yle force-pushed the kh/refactor-oneway branch from 146ce44 to 8efc590 Compare February 12, 2025 09:04
@tyrasd tyrasd merged commit 4747ae2 into develop Feb 12, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Improvements to the iD development experience or codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants