Skip to content

Commit b587fbd

Browse files
authored
Fix Super Admin Org Filter (canada-ca#2395)
1 parent e615cc0 commit b587fbd

4 files changed

Lines changed: 10 additions & 10 deletions

api-js/src/organization/loaders/__tests__/load-organization-connections-by-domain-id.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,7 @@ describe('given the load organizations connection function', () => {
22732273
},
22742274
orgDetails: {
22752275
en: {
2276-
slug: 'sa',
2276+
slug: 'super-admin',
22772277
acronym: 'SA',
22782278
name: 'Super Admin',
22792279
zone: 'zone sa',
@@ -2283,7 +2283,7 @@ describe('given the load organizations connection function', () => {
22832283
city: 'city two',
22842284
},
22852285
fr: {
2286-
slug: 'sa',
2286+
slug: 'super-admin',
22872287
acronym: 'SA',
22882288
name: 'Super Admin',
22892289
zone: 'zone sa',
@@ -4529,7 +4529,7 @@ describe('given the load organizations connection function', () => {
45294529
},
45304530
orgDetails: {
45314531
en: {
4532-
slug: 'sa',
4532+
slug: 'super-admin',
45334533
acronym: 'SA',
45344534
name: 'Super Admin',
45354535
zone: 'zone sa',
@@ -4539,7 +4539,7 @@ describe('given the load organizations connection function', () => {
45394539
city: 'city two',
45404540
},
45414541
fr: {
4542-
slug: 'sa',
4542+
slug: 'super-admin',
45434543
acronym: 'SA',
45444544
name: 'Super Admin',
45454545
zone: 'zone sa',

api-js/src/organization/loaders/__tests__/load-organization-connections-by-user-id.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,7 +2312,7 @@ describe('given the load organization connections by user id function', () => {
23122312
},
23132313
orgDetails: {
23142314
en: {
2315-
slug: 'sa',
2315+
slug: 'super-admin',
23162316
acronym: 'SA',
23172317
name: 'Super Admin Org',
23182318
zone: 'zone sa',
@@ -2322,7 +2322,7 @@ describe('given the load organization connections by user id function', () => {
23222322
city: 'city sa',
23232323
},
23242324
fr: {
2325-
slug: 'sa',
2325+
slug: 'super-admin',
23262326
acronym: 'SA',
23272327
name: 'Super Admin Org',
23282328
zone: 'zone sa',
@@ -4635,7 +4635,7 @@ describe('given the load organization connections by user id function', () => {
46354635
},
46364636
orgDetails: {
46374637
en: {
4638-
slug: 'sa',
4638+
slug: 'super-admin',
46394639
acronym: 'SA',
46404640
name: 'Super Admin Org',
46414641
zone: 'zone sa',
@@ -4645,7 +4645,7 @@ describe('given the load organization connections by user id function', () => {
46454645
city: 'city sa',
46464646
},
46474647
fr: {
4648-
slug: 'sa',
4648+
slug: 'super-admin',
46494649
acronym: 'SA',
46504650
name: 'Super Admin Org',
46514651
zone: 'zone sa',

api-js/src/organization/loaders/load-organization-connections-by-domain-id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export const loadOrgConnectionsByDomainId = ({
371371

372372
let includeSuperAdminOrgQuery = aql``
373373
if (!includeSuperAdminOrg) {
374-
includeSuperAdminOrgQuery = aql`FILTER org.orgDetails.en.slug != "sa" OR org.orgDetails.fr.slug != "sa"`
374+
includeSuperAdminOrgQuery = aql`FILTER org.orgDetails.en.slug != "super-admin" OR org.orgDetails.fr.slug != "super-admin"`
375375
}
376376

377377
let orgKeysQuery

api-js/src/organization/loaders/load-organization-connections-by-user-id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ export const loadOrgConnectionsByUserId = ({
370370

371371
let includeSuperAdminOrgQuery = aql``
372372
if (!includeSuperAdminOrg) {
373-
includeSuperAdminOrgQuery = aql`FILTER org.orgDetails.en.slug != "sa" OR org.orgDetails.fr.slug != "sa"`
373+
includeSuperAdminOrgQuery = aql`FILTER org.orgDetails.en.slug != "super-admin" OR org.orgDetails.fr.slug != "super-admin"`
374374
}
375375

376376
let orgKeysQuery

0 commit comments

Comments
 (0)