-
Proposal:
Show
Clients MUST specify a content-id header for each request within a changeset.
Servers MAY return responses within a changeset in any order.
Servers MUST include the content-id header in each response, so clients can correlate requests and responses.
Accepted: https://www.oasis-open.org/apps/org/workgroup/odata/download.php/47764/latest/odata-meeting-19_on-20121220-minutes.html
-
Resolution:
Show
https://www.oasis-open.org/committees/download.php/48439/odata-core-v4.0-wd01-part1-protocol-2013-03-05-RH.doc
Accepted: https://www.oasis-open.org/committees/download.php/48549/odata-meeting-29_on-20130314-minutes.html#odata-157
The current $batch specification says that requests within a changeset need not be processed in the same order they are specified. For example, a service may re-order changes to reduce the likelihood of integrity violations by first doing deletes, then inserts, then updates. It goes on to say that the responses in a changeset must be 1:1 with the requests, but does not say they must be in the same order, and does not say how a client correlates a response within a changeset with a particular request within that changeset.
Changesets do describe the use of a content-id header for allowing a statement within a batch to reference the results of a previous statement within the batch. For example, to add an order to a customer that was added within the same batch. However, it does not say that it is mandatory for the client to specify the content-id header for requests within a batch, nor does it say that it is mandatory for a service to return content-id headers supplied within the batch.
It seems simplest to say that clients SHOULD specify a content-id header for requests within a changeset, and that service MUST return the content-id (if any) specified by the client. This allows the service to re-order changes within the changeset without having to buffer the response, and is arguably simpler for the client to correlate responses without having to rely on ordering.
{"report":{"apdex":0.5,"isInitial":true,"journeyId":"1b653797-4082-4a88-9580-cac4acbebb30","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":3160.5,"redirectCount":0,"resourceLoadedEnd":3195.5999999046326,"resourceLoadedStart":297.2000002861023,"resourceTiming":[{"duration":24.699999809265137,"initiatorType":"link","name":"https://issues.oasis-open.org/s/3edeca31ab9ba77980aae0809fbe7121-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/0a4716d29b2d5b1bdcdb168b4efc119e/_/download/contextbatch/css/_super/batch.css","startTime":297.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":321.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":24.90000009536743,"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":297.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":322.5,"responseStart":0,"secureConnectionStart":0},{"duration":25.199999809265137,"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":297.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":322.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":25.59999990463257,"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":298,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":298,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":323.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":26.199999809265137,"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":298.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":298.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":324.5,"responseStart":0,"secureConnectionStart":0},{"duration":866.5999999046326,"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":298.40000009536743,"connectEnd":956,"connectStart":907.5,"domainLookupEnd":907.5,"domainLookupStart":907.5,"fetchStart":298.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":956.2000002861023,"responseEnd":1165,"responseStart":996.3000001907349,"secureConnectionStart":931.5},{"duration":2685.9000000953674,"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":299,"connectEnd":956.4000000953674,"connectStart":908.3000001907349,"domainLookupEnd":908.3000001907349,"domainLookupStart":908.3000001907349,"fetchStart":299,"redirectEnd":0,"redirectStart":0,"requestStart":956.7000002861023,"responseEnd":2984.9000000953674,"responseStart":984.5999999046326,"secureConnectionStart":932.0999999046326},{"duration":776,"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":299.2000002861023,"connectEnd":1048.3000001907349,"connectStart":1000.0999999046326,"domainLookupEnd":1000.0999999046326,"domainLookupStart":1000.0999999046326,"fetchStart":299.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1048.3000001907349,"responseEnd":1075.2000002861023,"responseStart":1074.4000000953674,"secureConnectionStart":1023.7000002861023},{"duration":700.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":299.40000009536743,"connectEnd":973,"connectStart":924.2000002861023,"domainLookupEnd":924.2000002861023,"domainLookupStart":924.2000002861023,"fetchStart":299.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":973.0999999046326,"responseEnd":1000.0999999046326,"responseStart":999.3000001907349,"secureConnectionStart":948.4000000953674},{"duration":850.3000001907349,"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":299.5,"connectEnd":1122.9000000953674,"connectStart":1075.0999999046326,"domainLookupEnd":1075.0999999046326,"domainLookupStart":1075.0999999046326,"fetchStart":299.5,"redirectEnd":0,"redirectStart":0,"requestStart":1123.0999999046326,"responseEnd":1149.8000001907349,"responseStart":1148.8000001907349,"secureConnectionStart":1098.8000001907349},{"duration":927,"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":299.7000002861023,"connectEnd":1198.5999999046326,"connectStart":1149.7000002861023,"domainLookupEnd":1149.7000002861023,"domainLookupStart":1149.7000002861023,"fetchStart":299.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1198.7000002861023,"responseEnd":1226.7000002861023,"responseStart":1225.7000002861023,"secureConnectionStart":1174},{"duration":30.90000009536743,"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":299.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":299.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":330.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":940.3000001907349,"initiatorType":"script","name":"https://issues.oasis-open.org/rest/api/1.0/shortcuts/803004/a29179d70fa8562374ee16707692af77/shortcuts.js?context=issuenavigation&context=issueaction","startTime":300,"connectEnd":1212.5999999046326,"connectStart":1164.9000000953674,"domainLookupEnd":1164.9000000953674,"domainLookupStart":1164.9000000953674,"fetchStart":300,"redirectEnd":0,"redirectStart":0,"requestStart":1212.8000001907349,"responseEnd":1240.3000001907349,"responseStart":1239.4000000953674,"secureConnectionStart":1188.5},{"duration":37,"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":364.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":364.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":401.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":1786.7999997138977,"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":365.2000002861023,"connectEnd":2123.4000000953674,"connectStart":2074.4000000953674,"domainLookupEnd":2074.4000000953674,"domainLookupStart":2074.4000000953674,"fetchStart":365.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":2123.5999999046326,"responseEnd":2152,"responseStart":2151,"secureConnectionStart":2098.7000002861023},{"duration":2446.5999999046326,"initiatorType":"script","name":"https://issues.oasis-open.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":379.7000002861023,"connectEnd":2798.5999999046326,"connectStart":2750.7000002861023,"domainLookupEnd":2750.7000002861023,"domainLookupStart":2750.5999999046326,"fetchStart":379.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":2798.800000190735,"responseEnd":2826.300000190735,"responseStart":2825,"secureConnectionStart":2774.4000000953674},{"duration":2434.699999809265,"initiatorType":"script","name":"https://issues.oasis-open.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":419.40000009536743,"connectEnd":2827.300000190735,"connectStart":2779.300000190735,"domainLookupEnd":2779.300000190735,"domainLookupStart":2779.300000190735,"fetchStart":419.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":2827.300000190735,"responseEnd":2854.0999999046326,"responseStart":2853.4000000953674,"secureConnectionStart":2803},{"duration":1242.7999997138977,"initiatorType":"xmlhttprequest","name":"https://issues.oasis-open.org/rest/webResources/1.0/resources","startTime":1304.3000001907349,"connectEnd":2516.0999999046326,"connectStart":2467.7000002861023,"domainLookupEnd":2467.7000002861023,"domainLookupStart":2467.7000002861023,"fetchStart":1304.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":2516.0999999046326,"responseEnd":2547.0999999046326,"responseStart":2546.2000002861023,"secureConnectionStart":2491.5},{"duration":61.09999990463257,"initiatorType":"xmlhttprequest","name":"https://issues.oasis-open.org/rest/webResources/1.0/resources","startTime":3037.9000000953674,"connectEnd":3037.9000000953674,"connectStart":3037.9000000953674,"domainLookupEnd":3037.9000000953674,"domainLookupStart":3037.9000000953674,"fetchStart":3037.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":3037.9000000953674,"responseEnd":3099,"responseStart":3099,"secureConnectionStart":3037.9000000953674}],"threshold":1000,"fetchStart":0,"domainLookupStart":41,"domainLookupEnd":106,"connectStart":106,"connectEnd":196,"secureConnectionStart":131,"requestStart":196,"responseStart":281,"responseEnd":419,"domLoading":285,"domInteractive":3237,"domContentLoadedEventStart":3237,"domContentLoadedEventEnd":3301,"domComplete":3367,"loadEventStart":3367,"loadEventEnd":3369,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"4b02cb3ffda98b","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":196,"dbReadsTimeInMs":31,"dbConnsTimeInMs":47,"applicationHash":"4d4040e0714d65b7fffa4801569d014c0b16eaa9","experiments":[]}}
Re-ordering responses only makes sense if the client actually specified a content-id in each request part. If we leave the choice to the client, we must limit the choice for the server.
Adapted proposal accordingly.