-
Proposal:
Hide
Update request in example 57:
GET ~/Products?$apply=groupby((Name),aggregate(Sales/$count with sum as SalesCount))
Rewrite section on aggregate, last item in list on "virtual property $count": replace it with "$count, which is a shortcut for 1 with sum"
Show
Update request in example 57:
GET ~/Products?$apply=groupby((Name),aggregate(Sales/$count with sum as SalesCount))
Rewrite section on aggregate, last item in list on "virtual property $count": replace it with "$count, which is a shortcut for 1 with sum"
-
Resolution:
Show
https://github.com/oasis-tcs/odata-abnf/pull/12
Section 3.1 introduces $count as one of several options for aggregate expressions.
Example 57 applies $count relative to a collection-valued navigation property, which is a different use case that is backed by the commonExpr ABNF rule to address the count of a collection (see URL spec, section 4.8). Since section 3.1 requires commonExpr to be augmented with an aggregation method, such a method must be added to the request in the example.
The current aggregation ABNF contains a rule for $count with a path prefix, which needs to be cleaned up accordingly.
{"report":{"apdex":1,"isInitial":true,"journeyId":"30a51a5a-5006-4b70-ab89-1d03506a2667","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":962.3000000007451,"redirectCount":0,"resourceLoadedEnd":1140.6000000014901,"resourceLoadedStart":278.30000000074506,"resourceTiming":[{"duration":309.6000000014901,"initiatorType":"link","name":"https://issues.oasis-open.org/s/3edeca31ab9ba77980aae0809fbe7121-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/0a4716d29b2d5b1bdcdb168b4efc119e/_/download/contextbatch/css/_super/batch.css","startTime":278.30000000074506,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":278.30000000074506,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":587.9000000022352,"responseStart":0,"secureConnectionStart":0},{"duration":309.6000000014901,"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":278.69999999925494,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":278.69999999925494,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":588.3000000007451,"responseStart":0,"secureConnectionStart":0},{"duration":309.5999999977648,"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":278.9000000022352,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":278.9000000022352,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":588.5,"responseStart":0,"secureConnectionStart":0},{"duration":310,"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":279.1000000014901,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":279.1000000014901,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":589.1000000014901,"responseStart":0,"secureConnectionStart":0},{"duration":318.0999999977648,"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":279.4000000022352,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":279.4000000022352,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":597.5,"responseStart":0,"secureConnectionStart":0},{"duration":353.9000000022352,"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":279.69999999925494,"connectEnd":279.69999999925494,"connectStart":279.69999999925494,"domainLookupEnd":279.69999999925494,"domainLookupStart":279.69999999925494,"fetchStart":279.69999999925494,"redirectEnd":0,"redirectStart":0,"requestStart":279.69999999925494,"responseEnd":633.6000000014901,"responseStart":633.6000000014901,"secureConnectionStart":279.69999999925494},{"duration":385.4000000022352,"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":280.19999999925494,"connectEnd":280.19999999925494,"connectStart":280.19999999925494,"domainLookupEnd":280.19999999925494,"domainLookupStart":280.19999999925494,"fetchStart":280.19999999925494,"redirectEnd":0,"redirectStart":0,"requestStart":280.19999999925494,"responseEnd":665.6000000014901,"responseStart":665.6000000014901,"secureConnectionStart":280.19999999925494},{"duration":387.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":280.4000000022352,"connectEnd":280.4000000022352,"connectStart":280.4000000022352,"domainLookupEnd":280.4000000022352,"domainLookupStart":280.4000000022352,"fetchStart":280.4000000022352,"redirectEnd":0,"redirectStart":0,"requestStart":280.4000000022352,"responseEnd":667.9000000022352,"responseStart":667.9000000022352,"secureConnectionStart":280.4000000022352},{"duration":387.9000000022352,"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":280.5,"connectEnd":280.5,"connectStart":280.5,"domainLookupEnd":280.5,"domainLookupStart":280.5,"fetchStart":280.5,"redirectEnd":0,"redirectStart":0,"requestStart":280.5,"responseEnd":668.4000000022352,"responseStart":668.4000000022352,"secureConnectionStart":280.5},{"duration":388.1000000014901,"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":280.69999999925494,"connectEnd":280.69999999925494,"connectStart":280.69999999925494,"domainLookupEnd":280.69999999925494,"domainLookupStart":280.69999999925494,"fetchStart":280.69999999925494,"redirectEnd":0,"redirectStart":0,"requestStart":280.69999999925494,"responseEnd":668.8000000007451,"responseStart":668.8000000007451,"secureConnectionStart":280.69999999925494},{"duration":388.3999999985099,"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":280.9000000022352,"connectEnd":280.9000000022352,"connectStart":280.9000000022352,"domainLookupEnd":280.9000000022352,"domainLookupStart":280.9000000022352,"fetchStart":280.9000000022352,"redirectEnd":0,"redirectStart":0,"requestStart":280.9000000022352,"responseEnd":669.3000000007451,"responseStart":669.3000000007451,"secureConnectionStart":280.9000000022352},{"duration":493.0999999977648,"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":281.1000000014901,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":281.1000000014901,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":774.1999999992549,"responseStart":0,"secureConnectionStart":0},{"duration":388.70000000298023,"initiatorType":"script","name":"https://issues.oasis-open.org/rest/api/1.0/shortcuts/803004/a29179d70fa8562374ee16707692af77/shortcuts.js?context=issuenavigation&context=issueaction","startTime":281.19999999925494,"connectEnd":281.19999999925494,"connectStart":281.19999999925494,"domainLookupEnd":281.19999999925494,"domainLookupStart":281.19999999925494,"fetchStart":281.19999999925494,"redirectEnd":0,"redirectStart":0,"requestStart":281.19999999925494,"responseEnd":669.9000000022352,"responseStart":669.8000000007451,"secureConnectionStart":281.19999999925494},{"duration":462.4000000022352,"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":312,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":312,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":774.4000000022352,"responseStart":0,"secureConnectionStart":0},{"duration":410.19999999925494,"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":312.30000000074506,"connectEnd":312.30000000074506,"connectStart":312.30000000074506,"domainLookupEnd":312.30000000074506,"domainLookupStart":312.30000000074506,"fetchStart":312.30000000074506,"redirectEnd":0,"redirectStart":0,"requestStart":312.30000000074506,"responseEnd":722.5,"responseStart":722.5,"secureConnectionStart":312.30000000074506}],"threshold":1000,"fetchStart":0,"domainLookupStart":169,"domainLookupEnd":169,"connectStart":169,"connectEnd":219,"secureConnectionStart":194,"requestStart":219,"responseStart":269,"responseEnd":342,"domLoading":272,"domInteractive":1164,"domContentLoadedEventStart":1164,"domContentLoadedEventEnd":1212,"domComplete":1368,"loadEventStart":1368,"loadEventEnd":1370,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"17c48141a26dc","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":93,"dbReadsTimeInMs":16,"dbConnsTimeInMs":19,"applicationHash":"4d4040e0714d65b7fffa4801569d014c0b16eaa9","experiments":[]}}
Resolved as proposed 2020-5-28.