From 344e5e2c6640b810faba5f28bb16fd54e4044be3 Mon Sep 17 00:00:00 2001 From: Mike Juniper Date: Wed, 27 Sep 2023 10:11:25 -0600 Subject: [PATCH] Revert "13.17.x patch (#1238)" (#1239) This reverts commit 58f160bef1e654b3a5bd9d0cc538aaf5e9c3a876. --- .github/workflows/release.yml | 1 - package-lock.json | 48 ++++++++++++++-------- packages/common/src/sites/HubSite.ts | 2 +- packages/common/test/sites/HubSite.test.ts | 5 +-- 4 files changed, 32 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 97cc80f4e54..c0e095252a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,6 @@ on: - beta # - alpha disabled to allow push to alpha then merge to master w/o incurring a release - next - - [0-9]+.[0-9]+.x # Dont run if it's just markdown or doc files paths-ignore: - "**.md" diff --git a/package-lock.json b/package-lock.json index 222565a3d4b..bbb6cb8c3e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22644,9 +22644,10 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._baseindexof": { "version": "3.1.0", - "extraneous": true, + "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._baseuniq": { "version": "4.6.0", @@ -22661,21 +22662,24 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._bindcallback": { "version": "3.0.1", - "extraneous": true, + "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._cacheindexof": { "version": "3.0.2", - "extraneous": true, + "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._createcache": { "version": "3.1.2", - "extraneous": true, + "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "lodash._getnative": "^3.0.0" } @@ -22689,9 +22693,10 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._getnative": { "version": "3.9.1", - "extraneous": true, + "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._root": { "version": "3.0.1", @@ -22709,9 +22714,10 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash.restparam": { "version": "3.6.1", - "extraneous": true, + "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash.union": { "version": "4.6.0", @@ -64966,7 +64972,7 @@ }, "packages/common": { "name": "@esri/hub-common", - "version": "13.17.3", + "version": "13.16.0", "license": "Apache-2.0", "dependencies": { "abab": "^2.0.5", @@ -83376,7 +83382,8 @@ "lodash._baseindexof": { "version": "3.1.0", "bundled": true, - "extraneous": true + "dev": true, + "peer": true }, "lodash._baseuniq": { "version": "4.6.0", @@ -83391,17 +83398,20 @@ "lodash._bindcallback": { "version": "3.0.1", "bundled": true, - "extraneous": true + "dev": true, + "peer": true }, "lodash._cacheindexof": { "version": "3.0.2", "bundled": true, - "extraneous": true + "dev": true, + "peer": true }, "lodash._createcache": { "version": "3.1.2", "bundled": true, - "extraneous": true, + "dev": true, + "peer": true, "requires": { "lodash._getnative": "^3.0.0" } @@ -83415,7 +83425,8 @@ "lodash._getnative": { "version": "3.9.1", "bundled": true, - "extraneous": true + "dev": true, + "peer": true }, "lodash._root": { "version": "3.0.1", @@ -83432,7 +83443,8 @@ "lodash.restparam": { "version": "3.6.1", "bundled": true, - "extraneous": true + "dev": true, + "peer": true }, "lodash.union": { "version": "4.6.0", diff --git a/packages/common/src/sites/HubSite.ts b/packages/common/src/sites/HubSite.ts index 64224c5dfeb..54442ec8baa 100644 --- a/packages/common/src/sites/HubSite.ts +++ b/packages/common/src/sites/HubSite.ts @@ -142,7 +142,7 @@ export class HubSite ): IHubSite { // ensure we have the orgUrlKey if (!partialSite.orgUrlKey) { - partialSite.orgUrlKey = context.portal?.urlKey; + partialSite.orgUrlKey = context.portal.urlKey; } // extend the partial over the defaults const pojo = { ...DEFAULT_SITE, ...partialSite } as IHubSite; diff --git a/packages/common/test/sites/HubSite.test.ts b/packages/common/test/sites/HubSite.test.ts index e583af16407..66cbb363e83 100644 --- a/packages/common/test/sites/HubSite.test.ts +++ b/packages/common/test/sites/HubSite.test.ts @@ -52,10 +52,7 @@ describe("HubSite Class:", () => { describe("static methods:", () => { it("loads from minimal json", () => { const createSpy = spyOn(HubSitesModule, "createSite"); - const chk = HubSite.fromJson( - { name: "Test Site" }, - unauthdCtxMgr.context - ); + const chk = HubSite.fromJson({ name: "Test Site" }, authdCtxMgr.context); expect(createSpy).not.toHaveBeenCalled(); expect(chk.toJson().name).toEqual("Test Site");