i2b2 Sponsored Project/s:
Developer Notes:
This was fixed for both PostgreSQL and SQL Server scripts. The oracle script already had the PROTECTION_LABEL_CD defined as the primary key.
Testing Notes:
Hide
Verified via Bamboo that the following scripts ran without errors and the primary key was set correctly.
crc_create_query_oracle.sql
crc_create_query_postgresql.sql
crc_create_query_sqlserver.sql
Show
Verified via Bamboo that the following scripts ran without errors and the primary key was set correctly.
crc_create_query_oracle.sql
crc_create_query_postgresql.sql
crc_create_query_sqlserver.sql
The table qt_privilege in the crc schema doesn’t have primary key. However, in the document, it’s asserted that the ‘PROTECTION_LABEL_CD’ is the primary key. It’s a little error, but it could give some hard times (when the ant command is used too many time, duplicate appears, and error pops up in the webclient). Not a big issue, but worth being noted
{"report":{"fcp":608.8999996185303,"ttfb":124.19999980926514,"pageVisibility":"visible","entityId":10783,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"503ef3bc-cd49-407f-a6a1-74a9ecb67d79","navigationType":0,"readyForUser":675.8000001907349,"redirectCount":0,"resourceLoadedEnd":396.8999996185303,"resourceLoadedStart":129.10000038146973,"resourceTiming":[{"duration":15.899999618530273,"initiatorType":"link","name":"https://community.i2b2.org/jira/s/7fd763ecdf5ed1f47fc4d22fa8382e97-CDN/4x9nqn/820011/16zrvj4/49fa3aa3d35a2cc689cbf274e66cc41a/_/download/contextbatch/css/_super/batch.css","startTime":129.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":129.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":145,"responseStart":0,"secureConnectionStart":0},{"duration":15.899999618530273,"initiatorType":"link","name":"https://community.i2b2.org/jira/s/898b8076c5e82f53cd816ca393e45a56-CDN/4x9nqn/820011/16zrvj4/41b71ca9fb0eed92dc73e9510f2744ee/_/download/contextbatch/css/project.issue.navigator,jira.view.issue,jira.global,atl.general,-_super/batch.css?jira.create.linked.issue=true&richediton=true&whisper-enabled=true","startTime":129.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":129.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":145.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":221.30000019073486,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/4c9c503fe98f210445831b0d7b0cdc33-CDN/4x9nqn/820011/16zrvj4/49fa3aa3d35a2cc689cbf274e66cc41a/_/download/contextbatch/js/_super/batch.js?locale=en-US","startTime":129.5,"connectEnd":165.10000038146973,"connectStart":145.89999961853027,"domainLookupEnd":145.89999961853027,"domainLookupStart":145.89999961853027,"fetchStart":129.5,"redirectEnd":0,"redirectStart":0,"requestStart":165.30000019073486,"responseEnd":350.80000019073486,"responseStart":193.30000019073486,"secureConnectionStart":155.39999961853027},{"duration":164.60000038146973,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/694e598c1ae48b0f96655173631cd247-CDN/4x9nqn/820011/16zrvj4/41b71ca9fb0eed92dc73e9510f2744ee/_/download/contextbatch/js/project.issue.navigator,jira.view.issue,jira.global,atl.general,-_super/batch.js?jira.create.linked.issue=true&locale=en-US&richediton=true&whisper-enabled=true","startTime":129.69999980926514,"connectEnd":165.19999980926514,"connectStart":145.80000019073486,"domainLookupEnd":145.80000019073486,"domainLookupStart":145.80000019073486,"fetchStart":129.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":165.30000019073486,"responseEnd":294.30000019073486,"responseStart":190.19999980926514,"secureConnectionStart":155.10000038146973},{"duration":58.59999942779541,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/53f54e0ac3f00bb56b136b4d2fff2853-CDN/4x9nqn/820011/16zrvj4/aae1242f5fc81cc6a5bb8bc963ccda29/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en-US","startTime":129.80000019073486,"connectEnd":165.5,"connectStart":146.5,"domainLookupEnd":146.5,"domainLookupStart":146.5,"fetchStart":129.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":165.60000038146973,"responseEnd":188.39999961853027,"responseStart":186.89999961853027,"secureConnectionStart":155.89999961853027},{"duration":58.89999961853027,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/4x9nqn/820011/16zrvj4/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":130,"connectEnd":170.69999980926514,"connectStart":147.39999961853027,"domainLookupEnd":147.39999961853027,"domainLookupStart":147.39999961853027,"fetchStart":130,"redirectEnd":0,"redirectStart":0,"requestStart":170.80000019073486,"responseEnd":188.89999961853027,"responseStart":187.60000038146973,"secureConnectionStart":157},{"duration":91.29999923706055,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/4x9nqn/820011/16zrvj4/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":130.10000038146973,"connectEnd":208,"connectStart":188.89999961853027,"domainLookupEnd":188.89999961853027,"domainLookupStart":188.89999961853027,"fetchStart":130.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":208.19999980926514,"responseEnd":221.39999961853027,"responseStart":220,"secureConnectionStart":198.10000038146973},{"duration":17.899999618530273,"initiatorType":"link","name":"https://community.i2b2.org/jira/s/30748292e4ca68be6947d7969829384b-CDN/4x9nqn/820011/16zrvj4/4f66da484ef7d95a2a604d3ab014374c/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":130.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":130.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":148.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":100.10000038146973,"initiatorType":"script","name":"https://community.i2b2.org/jira/rest/api/1.0/shortcuts/820011/a9e270f026ecabffc9a59343e5439391/shortcuts.js?context=issuenavigation&context=issueaction","startTime":130.5,"connectEnd":210.89999961853027,"connectStart":188.30000019073486,"domainLookupEnd":188.30000019073486,"domainLookupStart":188.30000019073486,"fetchStart":130.5,"redirectEnd":0,"redirectStart":0,"requestStart":211,"responseEnd":230.60000038146973,"responseStart":229.39999961853027,"secureConnectionStart":199.39999961853027},{"duration":4.800000190734863,"initiatorType":"link","name":"https://community.i2b2.org/jira/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/4x9nqn/820011/16zrvj4/efa42a25652b26dfd802540c024826b3/_/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":155.89999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":155.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":160.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":228.19999980926514,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/8087506fefd02b4096991c90836b49f6-CDN/4x9nqn/820011/16zrvj4/efa42a25652b26dfd802540c024826b3/_/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":156.10000038146973,"connectEnd":369.8999996185303,"connectStart":350.6000003814697,"domainLookupEnd":350.6000003814697,"domainLookupStart":350.6000003814697,"fetchStart":156.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":370,"responseEnd":384.30000019073486,"responseStart":382.6000003814697,"secureConnectionStart":360},{"duration":224.5,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/4x9nqn/820011/16zrvj4/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":166.30000019073486,"connectEnd":377.3999996185303,"connectStart":358.1000003814697,"domainLookupEnd":358.1000003814697,"domainLookupStart":358.1000003814697,"fetchStart":166.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":377.3999996185303,"responseEnd":390.80000019073486,"responseStart":389,"secureConnectionStart":367.5},{"duration":75.09999942779541,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/4x9nqn/820011/16zrvj4/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":321.80000019073486,"connectEnd":383.69999980926514,"connectStart":362.19999980926514,"domainLookupEnd":362.19999980926514,"domainLookupStart":362.19999980926514,"fetchStart":321.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":384.80000019073486,"responseEnd":396.8999996185303,"responseStart":395.69999980926514,"secureConnectionStart":371.69999980926514},{"duration":129.9000005722046,"initiatorType":"xmlhttprequest","name":"https://community.i2b2.org/jira/rest/webResources/1.0/resources","startTime":549.6999998092651,"connectEnd":663.6999998092651,"connectStart":644.1000003814697,"domainLookupEnd":644.1000003814697,"domainLookupStart":644.1000003814697,"fetchStart":549.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":664.1000003814697,"responseEnd":679.6000003814697,"responseStart":678.8999996185303,"secureConnectionStart":653.6999998092651},{"duration":54.19999980926514,"initiatorType":"script","name":"https://community.i2b2.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/4x9nqn/820011/16zrvj4/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-atl.general/batch.js?whisper-enabled=true","startTime":705.1999998092651,"connectEnd":746.1999998092651,"connectStart":726.8000001907349,"domainLookupEnd":726.8000001907349,"domainLookupStart":726.8000001907349,"fetchStart":705.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":746.5,"responseEnd":759.3999996185303,"responseStart":758.6000003814697,"secureConnectionStart":736.1999998092651},{"duration":51.09999942779541,"initiatorType":"iframe","name":"https://community.i2b2.org/jira/plugins/servlet/gadgets/ifr?container=atlassian&mid=0&country=US&lang=en&view=issuetab&view-params=%7B%22writable%22%3A%22false%22%7D&st=atlassian%3Ahrm6tBUUjy6OoewDBUI6Oxt2ZrTZhOuRSl5ejS82AUGdLRVpaL%2FIxqq6hkexXJqg9KHSdqo6JZA%2BxolVaALae6ey3mid57CzhwtG0inI73rkhu%2FabWEYprDcbrZmBiH01b8ODeOgORJZc3uwJtlfqu%2FqA%2BiH8juheYzVKZIm5dqOjwgSuEdkjdiHsCrDl4ET0E%2FvJOb%2FCevlYrpqof8sB4GGiFS8IQOn%2FUaWg5I8UOKtFckQsqqmO3RRdciE%2BkG2UzHwTB%2FCBUHQenpkgixT8QL2U0c%3D&up_isConfigured=true&up_isReallyConfigured=true&up_title=Activity+Stream&up_titleRequired=false&up_numofentries=20&up_refresh=false&up_maxProviderLabelCharacters=50&up_rules=%7B%22providers%22%3A%5B%7B%22provider%22%3A%22streams%22%2C%22rules%22%3A%5B%7B%22provider%22%3A%22streams%22%2C%22rule%22%3A%22issue-key%22%2C%22type%22%3A%22string%22%2C%22value%22%3A%22CORE-208%22%2C%22operator%22%3A%22is%22%7D%2C%7B%22provider%22%3A%22streams%22%2C%22rule%22%3A%22key%22%2C%22type%22%3A%22select%22%2C%22value%22%3A%5B%22CORE%22%5D%2C%22operator%22%3A%22is%22%7D%5D%7D%5D%7D&up_renderingContext=view-issue&up_keys=&up_itemKeys=&up_username=&url=https%3A%2F%2Fcommunity.i2b2.org%2Fjira%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.streams.streams-jira-plugin%2Fgadgets%2Factivitystream-gadget.xml&libs=auth-refresh#rpctoken=1205715788","startTime":710.6000003814697,"connectEnd":745.3000001907349,"connectStart":726.6000003814697,"domainLookupEnd":726.6000003814697,"domainLookupStart":726.6000003814697,"fetchStart":710.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":745.3999996185303,"responseEnd":761.6999998092651,"responseStart":760.8999996185303,"secureConnectionStart":735.3999996185303}],"fetchStart":0,"domainLookupStart":13,"domainLookupEnd":65,"connectStart":65,"connectEnd":96,"secureConnectionStart":74,"requestStart":96,"responseStart":124,"responseEnd":322,"domLoading":128,"domInteractive":726,"domContentLoadedEventStart":726,"domContentLoadedEventEnd":764,"domComplete":1087,"loadEventStart":1087,"loadEventEnd":1089,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":707.5},{"name":"bigPipe.sidebar-id.end","time":708.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":708.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":710.8000001907349},{"name":"activityTabFullyLoaded","time":772.6999998092651}],"measures":[],"correlationId":"1fe5d7cc50ec6f","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":208,"dbReadsTimeInMs":6,"dbConnsTimeInMs":11,"applicationHash":"0629dd8d260e3954ece49053e565d01dabe11609","experiments":[]}}