-
Notifications
You must be signed in to change notification settings - Fork 19
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
Representing Exception TimeSpans #117
Comments
We will be talking about this at next week's Working Group meeting for inclusion in a forthcoming CDS 1.0.1 patch release, so please attend if you can. |
How did the discussion go? I was about to open the same issue when I saw this one since most regulations in Montreal are written as "No Parking except between X-Y" and this would definetly complicate updating the information later one if every regulation has to have it's logic reversed. |
The meeting didn't lead to any concerns about adding this as a patch in the upcoming 1.0.1 release. Feel free to make a PR and speed this along. We may bring it up in tomorrow's end of year event. |
If anyone wants to do a PR for this, that would be welcome and you and your org will be recognized in the acknowledgements for 1.0.1. Otherwise the OMF staff will make a PR soon. |
There is a PR now #136. The question is, based on the comments there, is this a breaking change or not? Please look at the PR and discuss. Also see issue #124 for a similar discussion. We should decide how to execute on this to determine if both issues and be addressed in a patch or a minor release. |
If the only thing we change is this field's description, and we are not making it an optional array like in the current PR #136 or adding a new field like in that PR, then we can do this as a patch (otherwise it will need to wait to 1.1). #136 @LaurentG-AMD does this description change help you at all? @josh-p-thompson does the description change meet your needs? |
Since there isn't a PR for this change, and only a more complex minor change in PR #136, then this issue will have to be moved to 1.1 so we can have further discussion and to avoid breaking things. The patch release is meant to finally go out this week. |
Is your feature request related to a problem? Please describe.
There is no way to define and communicate an exception Time Span that includes periods of time, based on our reading of the Time Span spec (exception periods are "externally-defined").
Describe the solution you'd like
We would like
designated_period_except = true
to indicate that a rule does not apply during the defined Time Spandesignated_period_except = true
always supersede those withdesignated_period_except = false | null
Example 1: Time Span to communicate that a rule does not apply on Sundays:
Example 2: Time Span to communicate that a rule does not apply on New Years Day:
Is this a breaking change
A breaking change would require consumers or implementors of an API to modify their code for it to continue to function (ex: renaming of a required field or the change in data type of an existing field). A non-breaking change would allow existing code to continue to function (ex: addition of an optional field or the creation of a new optional endpoint).
Impacted Spec
For which spec is this feature being requested?
Curbs
Describe alternatives you've considered
There does not appear to be any other way to communicate the actual time period of the exception Time Span.
Additional context
The text was updated successfully, but these errors were encountered: