-
Notifications
You must be signed in to change notification settings - Fork 466
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
Add temporal_route end-date #6664
base: 4.3
Are you sure you want to change the base?
Changes from all commits
f3b0064
ba05daf
8bc92e1
fae3439
81d6a2c
f73b1db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ | |
-define(RULE_DEFAULT_ORDINAL, <<"first">>). | ||
-define(RULE_DEFAULT_MONTH, 1). | ||
-define(RULE_DEFAULT_START_DATE, {2011,1,1}). | ||
-define(RULE_DEFAULT_END_DATE, {0,0,0}). | ||
-define(RULE_DEFAULT_WTIME_START, 0). | ||
-define(RULE_DEFAULT_WTIME_STOP, ?SECONDS_IN_DAY). | ||
|
||
|
@@ -51,6 +52,7 @@ | |
,ordinal = ?RULE_DEFAULT_ORDINAL :: ordinal() | ||
,month = ?RULE_DEFAULT_MONTH :: kz_time:month() | ||
,start_date = ?RULE_DEFAULT_START_DATE :: kz_time:date() | ||
,end_date = ?RULE_DEFAULT_END_DATE :: kz_time:date() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should default to |
||
,wtime_start = ?RULE_DEFAULT_WTIME_START :: non_neg_integer() | ||
,wtime_stop = ?RULE_DEFAULT_WTIME_STOP :: non_neg_integer() | ||
}). | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,12 @@ | |
"description": "Whether the rule is enabled", | ||
"type": "boolean" | ||
}, | ||
"end_date": { | ||
"default": 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generally, we prefer that the absence of the value would mean no end date. Remove the default; |
||
"description": "The date that the rule ends. Zero means no end date", | ||
"support_level": "supported", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"type": "integer" | ||
}, | ||
"flags": { | ||
"description": "Flags set by external applications", | ||
"items": { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the value for
'undefined'
instead of 0, and I would do it in a function clause: