-
Proposal:
Hide
Extend the current definitions to make the maximum distance parameters optional by assigning the maximum possible distance by default (additions are enclosed in *):
<Function Name="isdescendant" IsBound="true">
<Annotation Term="Core.Description" String="Returns true, if and only if the value of the node property of the specified hierarchy is a descendant of the given parent node with a distance of less than or equal to the optionally specified maximum distance"/>
<Parameter Name="Entity" Type="Edm.EntityType" Nullable="false"/>
<Parameter Name="Hierarchy" Type="Edm.String" Nullable="false"/>
<Parameter Name="Node" Type="Edm.PrimitiveType" Nullable="false"/>
<Parameter Name="MaxDistance" Type="Edm.Int16">
<Annotation Term="Core.OptionalParameter">
<PropertyValue Property="DefaultValue" Int="32767"/>
</Annotation>
</Parameter>
<ReturnType Type="Edm.Boolean"/>
</Function>
<Function Name="isancestor" IsBound="true">
<Annotation Term="Core.Description" String="Returns true, if and only if the value of the node property of the specified hierarchy is an ancestor of the given child node with a distance of less than or equal to the optionally specified maximum distance"/>
<Parameter Name="Entity" Type="Edm.EntityType" Nullable="false"/>
<Parameter Name="Hierarchy" Type="Edm.String" Nullable="false"/>
<Parameter Name="Node" Type="Edm.PrimitiveType" Nullable="false"/>
<Parameter Name="MaxDistance" Type="Edm.Int16">
<Annotation Term="Core.OptionalParameter">
<PropertyValue Property="DefaultValue" Int="32767"/>
</Annotation>
</Parameter>
<ReturnType Type="Edm.Boolean"/>
</Function>
Note that term OptionalParameter has become available in the Core vocabulary with the work on OData version 4.01.
add to this proposal:
- Use Validation.Minimum on the distance parameter
- Add meaning of distance to description
Show
Extend the current definitions to make the maximum distance parameters optional by assigning the maximum possible distance by default (additions are enclosed in *):
<Function Name="isdescendant" IsBound="true">
<Annotation Term="Core.Description" String="Returns true, if and only if the value of the node property of the specified hierarchy is a descendant of the given parent node with a distance of less than or equal to the optionally specified maximum distance"/>
<Parameter Name="Entity" Type="Edm.EntityType" Nullable="false"/>
<Parameter Name="Hierarchy" Type="Edm.String" Nullable="false"/>
<Parameter Name="Node" Type="Edm.PrimitiveType" Nullable="false"/>
<Parameter Name="MaxDistance" Type="Edm.Int16">
<Annotation Term="Core.OptionalParameter">
<PropertyValue Property="DefaultValue" Int="32767"/>
</Annotation>
</Parameter>
<ReturnType Type="Edm.Boolean"/>
</Function>
<Function Name="isancestor" IsBound="true">
<Annotation Term="Core.Description" String="Returns true, if and only if the value of the node property of the specified hierarchy is an ancestor of the given child node with a distance of less than or equal to the optionally specified maximum distance"/>
<Parameter Name="Entity" Type="Edm.EntityType" Nullable="false"/>
<Parameter Name="Hierarchy" Type="Edm.String" Nullable="false"/>
<Parameter Name="Node" Type="Edm.PrimitiveType" Nullable="false"/>
<Parameter Name="MaxDistance" Type="Edm.Int16">
<Annotation Term="Core.OptionalParameter">
<PropertyValue Property="DefaultValue" Int="32767"/>
</Annotation>
</Parameter>
<ReturnType Type="Edm.Boolean"/>
</Function>
Note that term OptionalParameter has become available in the Core vocabulary with the work on OData version 4.01.
add to this proposal:
Use Validation.Minimum on the distance parameter
Add meaning of distance to description
-
Resolution:
Show
https://github.com/oasis-tcs/odata-vocabularies/pull/78
Section 6.3.2.1 describes that functions isdescendant and isancestor both include a second parameter for the maximum distance that is ought to be optional.
The definitions of these functions in the vocabulary describe the parameters as mandatory.
{"report":{"apdex":0.5,"isInitial":true,"journeyId":"6dadd2d8-1690-4e8c-83c2-69ac209b139b","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":1269.3000001907349,"redirectCount":0,"resourceLoadedEnd":1546,"resourceLoadedStart":371.90000009536743,"resourceTiming":[{"duration":510.40000009536743,"initiatorType":"link","name":"https://issues.oasis-open.org/s/3edeca31ab9ba77980aae0809fbe7121-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/0a4716d29b2d5b1bdcdb168b4efc119e/_/download/contextbatch/css/_super/batch.css","startTime":371.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":371.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":882.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":510.2999997138977,"initiatorType":"link","name":"https://issues.oasis-open.org/s/7d2823769c2e7b66e860863fe879b7f8-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/9aebb1c0aaa4c36289529757ec9dbb54/_/download/contextbatch/css/project.issue.navigator,jira.view.issue,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&richediton=true","startTime":372.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":372.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":882.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":510.90000009536743,"initiatorType":"link","name":"https://issues.oasis-open.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/8.0.5/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.css","startTime":372.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":372.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":883.5,"responseStart":0,"secureConnectionStart":0},{"duration":511,"initiatorType":"link","name":"https://issues.oasis-open.org/s/645acc233eb869f48a571293b8358a7d-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/1.0/_/download/batch/jira.webresources:global-static-adgs/jira.webresources:global-static-adgs.css","startTime":372.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":372.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":883.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":511.30000019073486,"initiatorType":"link","name":"https://issues.oasis-open.org/s/a0dd6509771c1de0667aae5429c04cda-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/1.0/_/download/batch/jira.webresources:global-static/jira.webresources:global-static.css","startTime":372.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":372.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":884.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":556.2999997138977,"initiatorType":"script","name":"https://issues.oasis-open.org/s/e5479157e7a0c08b005e6522f2f04104-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/0a4716d29b2d5b1bdcdb168b4efc119e/_/download/contextbatch/js/_super/batch.js?locale=en-US","startTime":373.2000002861023,"connectEnd":373.2000002861023,"connectStart":373.2000002861023,"domainLookupEnd":373.2000002861023,"domainLookupStart":373.2000002861023,"fetchStart":373.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":373.2000002861023,"responseEnd":929.5,"responseStart":929.5,"secureConnectionStart":373.2000002861023},{"duration":585.0999999046326,"initiatorType":"script","name":"https://issues.oasis-open.org/s/83514d5d4e8543747b02042eafcdc99c-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/9aebb1c0aaa4c36289529757ec9dbb54/_/download/contextbatch/js/project.issue.navigator,jira.view.issue,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":373.80000019073486,"connectEnd":373.80000019073486,"connectStart":373.80000019073486,"domainLookupEnd":373.80000019073486,"domainLookupStart":373.80000019073486,"fetchStart":373.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":373.80000019073486,"responseEnd":958.9000000953674,"responseStart":958.9000000953674,"secureConnectionStart":373.80000019073486},{"duration":587.5,"initiatorType":"script","name":"https://issues.oasis-open.org/s/70bb2263e59e7e1f04fbd137c80b895b-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/aae1242f5fc81cc6a5bb8bc963ccda29/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en-US","startTime":374,"connectEnd":374,"connectStart":374,"domainLookupEnd":374,"domainLookupStart":374,"fetchStart":374,"redirectEnd":0,"redirectStart":0,"requestStart":374,"responseEnd":961.5,"responseStart":961.5,"secureConnectionStart":374},{"duration":587.6999998092651,"initiatorType":"script","name":"https://issues.oasis-open.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":374.2000002861023,"connectEnd":374.2000002861023,"connectStart":374.2000002861023,"domainLookupEnd":374.2000002861023,"domainLookupStart":374.2000002861023,"fetchStart":374.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":374.2000002861023,"responseEnd":961.9000000953674,"responseStart":961.9000000953674,"secureConnectionStart":374.2000002861023},{"duration":588,"initiatorType":"script","name":"https://issues.oasis-open.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":374.40000009536743,"connectEnd":374.40000009536743,"connectStart":374.40000009536743,"domainLookupEnd":374.40000009536743,"domainLookupStart":374.40000009536743,"fetchStart":374.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":374.40000009536743,"responseEnd":962.4000000953674,"responseStart":962.4000000953674,"secureConnectionStart":374.40000009536743},{"duration":588.1000003814697,"initiatorType":"script","name":"https://issues.oasis-open.org/s/cda37faab827dbdf305de8efe8282062-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/8.0.5/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.js?locale=en-US","startTime":374.59999990463257,"connectEnd":374.59999990463257,"connectStart":374.59999990463257,"domainLookupEnd":374.59999990463257,"domainLookupStart":374.59999990463257,"fetchStart":374.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":374.59999990463257,"responseEnd":962.7000002861023,"responseStart":962.7000002861023,"secureConnectionStart":374.59999990463257},{"duration":698.2999997138977,"initiatorType":"link","name":"https://issues.oasis-open.org/s/07245784f53abc49bad9d9d4d36c577a-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/cadc4f20cc5c138dee060d42cf85f220/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":374.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":374.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1073,"responseStart":0,"secureConnectionStart":0},{"duration":588.3000001907349,"initiatorType":"script","name":"https://issues.oasis-open.org/rest/api/1.0/shortcuts/803004/a29179d70fa8562374ee16707692af77/shortcuts.js?context=issuenavigation&context=issueaction","startTime":374.90000009536743,"connectEnd":374.90000009536743,"connectStart":374.90000009536743,"domainLookupEnd":374.90000009536743,"domainLookupStart":374.90000009536743,"fetchStart":374.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":374.90000009536743,"responseEnd":963.2000002861023,"responseStart":963.2000002861023,"secureConnectionStart":374.90000009536743},{"duration":662.5,"initiatorType":"link","name":"https://issues.oasis-open.org/s/f77fd89aa211a76b20e9b0e63564383c-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/4a9288299d147101bf66484f4be48925/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.css?jira.create.linked.issue=true&richediton=true","startTime":410.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":410.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1073.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":553.4000000953674,"initiatorType":"script","name":"https://issues.oasis-open.org/s/41525c48ddceeb9b11e54085268fc285-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/4a9288299d147101bf66484f4be48925/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.js?jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":410.90000009536743,"connectEnd":410.90000009536743,"connectStart":410.90000009536743,"domainLookupEnd":410.90000009536743,"domainLookupStart":410.90000009536743,"fetchStart":410.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":410.90000009536743,"responseEnd":964.3000001907349,"responseStart":964.3000001907349,"secureConnectionStart":410.90000009536743}],"threshold":1000,"fetchStart":0,"domainLookupStart":266,"domainLookupEnd":266,"connectStart":266,"connectEnd":315,"secureConnectionStart":291,"requestStart":315,"responseStart":364,"responseEnd":430,"domLoading":367,"domInteractive":1563,"domContentLoadedEventStart":1563,"domContentLoadedEventEnd":1609,"domComplete":2157,"loadEventStart":2157,"loadEventEnd":2159,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"9efe3097af4688","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":89,"dbReadsTimeInMs":12,"dbConnsTimeInMs":14,"applicationHash":"4d4040e0714d65b7fffa4801569d014c0b16eaa9","experiments":[]}}
Resolved 2018-02-22