Designated period and user class exceptions#187
Merged
schnuerle merged 2 commits intoopenmobilityfoundation:devfrom Jul 28, 2025
Merged
Designated period and user class exceptions#187schnuerle merged 2 commits intoopenmobilityfoundation:devfrom
schnuerle merged 2 commits intoopenmobilityfoundation:devfrom
Conversation
Redefines designated_period_except to include all time spans, adds new field: user_classes_except
Member
|
From the WG discussion:
New PR here. @jiffyclub and @LaurentG-AMD what do you think of this as the current 1.1 solution? Matt, is this how you do it, or do you just have 1 field that flags the whole rule as an exception schedule? Anything you would change, either the field names or description? |
Contributor
|
This is how we do it, we set |
This was referenced Jul 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CDS Pull Request
Explain pull request
The current definition of
designated_period_exceptis limited to values named indesignated_period. That makes it difficult to define rules that use exceptions with standard time spans, for example: No Parking Except Sundays. This extends the definition ofdesignated_period_exceptto include all time spans in addition to any named indesignated_period. For example, Ifdays_of_weekissun, the rule does not apply on Sundays.This also adds a new field:
user_classes_exceptthat defines exceptions to user classes. When set, the rule applies only to those that do not match any of the user classes listed in theuser_classes_exceptarray.Additional info and discussion can be found in #136 and #117
Is this a breaking change
Impacted Spec
Which API(s) will this pull request impact?
CurbsAdditional context
Add any other context or screenshots about the feature request here.