Details
-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: daf_base
-
Labels:None
-
Story Points:4
-
Epic Link:
-
Sprint:AP S18-6, AP F18-1
-
Team:Alert Production
Description
Implement RFC-434 by adding getScalar(name) and getArray(name) methods to PropertySet and PropertyList and possibly adding a deprecation warning to get.
Attachments
Issue Links
Activity
Team | Data Access and Database [ 10204 ] |
Assignee | Russell Owen [ rowen ] |
Risk Score | 0 |
Epic Link |
|
Sprint | AP S18-6 [ 686 ] | |
Team | Data Access and Database [ 10204 ] | Alert Production [ 10300 ] |
Status | To Do [ 10001 ] | In Progress [ 3 ] |
Reviewers | Kian-Tat Lim [ ktl ] | |
Status | In Progress [ 3 ] | In Review [ 10004 ] |
Status | In Review [ 10004 ] | Reviewed [ 10101 ] |
Status | Reviewed [ 10101 ] | In Review [ 10004 ] |
Sprint | AP S18-6 [ 686 ] | AP S18-6, AP F18-1 [ 686, 746 ] |
Story Points | 2 | 4 |
Status | In Review [ 10004 ] | Reviewed [ 10101 ] |
Resolution | Done [ 10000 ] | |
Status | Reviewed [ 10101 ] | Done [ 10002 ] |
getArray and getScalar primarily make sense if the element type is a scalar (numeric or string), rather than a PropertySet or PropertyList. I don't see how getArray can return an array and getScalar can return a scalar unless the element type is a scalar. So I have made both methods raise TypeError if the element type is not a scalar.
Thus get is still a useful method and cannot be deprecated.