-
Proposal:
Show
Close without action.
Accepted: https://www.oasis-open.org/committees/download.php/48549/odata-meeting-29_on-20130314-minutes.html#odata-177
Section 3 currently states that an entity can be a member of at most one entity set. Given the ability to model entity type hierarchies this restriction seems rather unnatural: "Manager" is a specialization of "Employee", so it seems natural to have two entity sets "Managers" and "Employees", the former being a true subset of the latter, and a new "Manager" entity, POSTed to either set, would automatically appear in both.
Currently the only way to do that is to have an "Employees" entity set and a "Managers" function, with the drawback that the function is not advertised in the service document and thus not consumable in a hypermedia fashion.
{"report":{"apdex":1,"isInitial":true,"journeyId":"9490c34a-a1f1-42ff-854e-3c2416f9be36","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":650.5999999046326,"redirectCount":0,"resourceLoadedEnd":669.6999998092651,"resourceLoadedStart":203,"resourceTiming":[{"duration":54.30000019073486,"initiatorType":"link","name":"https://issues.oasis-open.org/s/3edeca31ab9ba77980aae0809fbe7121-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/0a4716d29b2d5b1bdcdb168b4efc119e/_/download/contextbatch/css/_super/batch.css","startTime":203,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":257.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":54.299999713897705,"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":203.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":257.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":54.09999990463257,"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":203.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":257.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":54,"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":203.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":257.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":53.80000019073486,"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":204.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":204.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":257.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":98.5,"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":204.19999980926514,"connectEnd":204.19999980926514,"connectStart":204.19999980926514,"domainLookupEnd":204.19999980926514,"domainLookupStart":204.19999980926514,"fetchStart":204.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":204.19999980926514,"responseEnd":302.69999980926514,"responseStart":302.69999980926514,"secureConnectionStart":204.19999980926514},{"duration":138.09999990463257,"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":204.90000009536743,"connectEnd":204.90000009536743,"connectStart":204.90000009536743,"domainLookupEnd":204.90000009536743,"domainLookupStart":204.90000009536743,"fetchStart":204.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":204.90000009536743,"responseEnd":343,"responseStart":343,"secureConnectionStart":204.90000009536743},{"duration":140.2000002861023,"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":205.09999990463257,"connectEnd":205.09999990463257,"connectStart":205.09999990463257,"domainLookupEnd":205.09999990463257,"domainLookupStart":205.09999990463257,"fetchStart":205.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":205.09999990463257,"responseEnd":345.30000019073486,"responseStart":345.30000019073486,"secureConnectionStart":205.09999990463257},{"duration":140.5,"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":205.30000019073486,"connectEnd":205.30000019073486,"connectStart":205.30000019073486,"domainLookupEnd":205.30000019073486,"domainLookupStart":205.30000019073486,"fetchStart":205.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":205.30000019073486,"responseEnd":345.80000019073486,"responseStart":345.80000019073486,"secureConnectionStart":205.30000019073486},{"duration":141.7999997138977,"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":205.40000009536743,"connectEnd":205.40000009536743,"connectStart":205.40000009536743,"domainLookupEnd":205.40000009536743,"domainLookupStart":205.40000009536743,"fetchStart":205.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":205.40000009536743,"responseEnd":347.19999980926514,"responseStart":347.19999980926514,"secureConnectionStart":205.40000009536743},{"duration":142,"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":205.59999990463257,"connectEnd":205.59999990463257,"connectStart":205.59999990463257,"domainLookupEnd":205.59999990463257,"domainLookupStart":205.59999990463257,"fetchStart":205.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":205.59999990463257,"responseEnd":347.59999990463257,"responseStart":347.59999990463257,"secureConnectionStart":205.59999990463257},{"duration":239.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":205.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":205.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":445.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":142.09999990463257,"initiatorType":"script","name":"https://issues.oasis-open.org/rest/api/1.0/shortcuts/803004/a29179d70fa8562374ee16707692af77/shortcuts.js?context=issuenavigation&context=issueaction","startTime":206,"connectEnd":206,"connectStart":206,"domainLookupEnd":206,"domainLookupStart":206,"fetchStart":206,"redirectEnd":0,"redirectStart":0,"requestStart":206,"responseEnd":348.09999990463257,"responseStart":348.09999990463257,"secureConnectionStart":206},{"duration":212.90000009536743,"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":232.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":445.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":116.39999961853027,"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":232.80000019073486,"connectEnd":232.80000019073486,"connectStart":232.80000019073486,"domainLookupEnd":232.80000019073486,"domainLookupStart":232.80000019073486,"fetchStart":232.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":232.80000019073486,"responseEnd":349.19999980926514,"responseStart":349.19999980926514,"secureConnectionStart":232.80000019073486},{"duration":303.8999996185303,"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":241.80000019073486,"connectEnd":241.80000019073486,"connectStart":241.80000019073486,"domainLookupEnd":241.80000019073486,"domainLookupStart":241.80000019073486,"fetchStart":241.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":241.80000019073486,"responseEnd":545.6999998092651,"responseStart":545.6999998092651,"secureConnectionStart":241.80000019073486},{"duration":112.60000038146973,"initiatorType":"xmlhttprequest","name":"https://issues.oasis-open.org/rest/webResources/1.0/resources","startTime":456.69999980926514,"connectEnd":456.69999980926514,"connectStart":456.69999980926514,"domainLookupEnd":456.69999980926514,"domainLookupStart":456.69999980926514,"fetchStart":456.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":456.69999980926514,"responseEnd":569.3000001907349,"responseStart":569.3000001907349,"secureConnectionStart":456.69999980926514}],"threshold":1000,"fetchStart":0,"domainLookupStart":95,"domainLookupEnd":95,"connectStart":95,"connectEnd":146,"secureConnectionStart":120,"requestStart":146,"responseStart":195,"responseEnd":263,"domLoading":198,"domInteractive":712,"domContentLoadedEventStart":712,"domContentLoadedEventEnd":770,"domComplete":957,"loadEventStart":957,"loadEventEnd":959,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"a7770eaa8e82fc","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":87,"dbReadsTimeInMs":11,"dbConnsTimeInMs":13,"applicationHash":"4d4040e0714d65b7fffa4801569d014c0b16eaa9","experiments":[]}}
On second thought I'd prefer to have "MyCustomers", "TopCustomers", "PreferredCustomers", "DelinquentCustomers", "NewCustomers" as first-class citizens directly in the service document, and entity sets are the natural construct for that.
We'd also accept POST on MyCustomers, which will automatically link the customer to the authenticated user.
Servers not being able to accept POST on multiple sets can use the Capabilities vocabulary and annotate exactly one entity set with an InsertRestriction that tells clients not to POST here, or simply only expose models with one entity set per type.
There's no need to restrict all servers.