diff --git a/README.md b/README.md index 6afe49737c..700ebf1a87 100644 --- a/README.md +++ b/README.md @@ -50,4 +50,4 @@ Make sure `yarn` is installed on your local machine. For more information, check The Education Data Architecture technology (“EDA”) is an open-source package licensed by Salesforce.org (“SFDO”) under the BSD-3 Clause License, found at https://opensource.org/licenses/BSD-3-Clause. ANY MASTER SUBSCRIPTION AGREEMENT YOU OR YOUR ENTITY MAY HAVE WITH SFDO DOES NOT APPLY TO YOUR USE OF EDA. EDA IS PROVIDED “AS IS” AND AS AVAILABLE, AND SFDO MAKES NO WARRANTY OF ANY KIND REGARDING EDA, WHETHER EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, FREEDOM FROM DEFECTS OR NON-INFRINGEMENT, TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW. SFDO WILL HAVE NO LIABILITY ARISING OUT OF OR RELATED TO YOUR USE OF EDA FOR ANY DIRECT DAMAGES OR FOR ANY LOST PROFITS, REVENUES, GOODWILL OR INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL, EXEMPLARY, COVER, BUSINESS INTERRUPTION OR PUNITIVE DAMAGES, WHETHER AN ACTION IS IN CONTRACT OR TORT AND REGARDLESS OF THE THEORY OF LIABILITY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR IF A REMEDY OTHERWISE FAILS OF ITS ESSENTIAL PURPOSE. THE FOREGOING DISCLAIMER WILL NOT APPLY TO THE EXTENT PROHIBITED BY LAW. SFDO DISCLAIMS ALL LIABILITY AND INDEMNIFICATION OBLIGATIONS FOR ANY HARM OR DAMAGES CAUSED BY ANY THIRD-PARTY HOSTING PROVIDERS. -(Release 242) \ No newline at end of file +(Release 244) \ No newline at end of file diff --git a/cumulusci.yml b/cumulusci.yml index 66373751bc..91d959007b 100644 --- a/cumulusci.yml +++ b/cumulusci.yml @@ -231,7 +231,7 @@ tasks: description: "Create a user with no access to Education Cloud components" class_path: cumulusci.tasks.sfdx.SFDXOrgTask options: - command: "force:user:create -a no_access --definitionfile datasets/dev/users/user-def_no-access.json" + command: "force:user:create -a no_access --definitionfile datasets/dev_data/users/user-def_no-access.json" create_tenant_secret: group: "EDA: Shield Platform Encryption" diff --git a/datasets/dev/users/user-def_no-access.json b/datasets/dev_data/users/user-def_no-access.json similarity index 100% rename from datasets/dev/users/user-def_no-access.json rename to datasets/dev_data/users/user-def_no-access.json diff --git a/force-app/main/default/classes/STG_Base_CTRL.cls b/force-app/main/default/classes/STG_Base_CTRL.cls index 718ac42a91..0354f72ff8 100644 --- a/force-app/main/default/classes/STG_Base_CTRL.cls +++ b/force-app/main/default/classes/STG_Base_CTRL.cls @@ -65,6 +65,11 @@ public with sharing class STG_Base_CTRL { return UTIL_CustomSettingsFacade.getAutoCreateSettings(); } + @AuraEnabled + public static String getNamespace() { + return UTIL_Namespace.getNamespace(); + } + /******************************************************************************************************* * @description Saves the Hierarchy Settings passed from the client. * @param hierarchySettings The Hierarchy_Settings__c record to upsert. diff --git a/force-app/main/default/classes/STG_Base_CTRL_TEST.cls b/force-app/main/default/classes/STG_Base_CTRL_TEST.cls index f1833253f0..4e37599dc4 100644 --- a/force-app/main/default/classes/STG_Base_CTRL_TEST.cls +++ b/force-app/main/default/classes/STG_Base_CTRL_TEST.cls @@ -348,4 +348,14 @@ private class STG_Base_CTRL_TEST { Id apexJobId = STG_Base_CTRL.executeRefreshAdminAccountBatch(); System.assertNotEquals(null, apexJobId); } + + /********************************************************************************************************* + * @description Tests the namespace retrieval + */ + @isTest + private static void testNamespace() { + String[] parts = String.valueOf(STG_Base_CTRL.class).split('\\.', 2); + String testNamespace = parts.size() == 2 ? parts[0] : ''; + Assert.areEqual(testNamespace, STG_Base_CTRL.getNamespace()); + } } diff --git a/force-app/main/default/pages/STG_Settings.page b/force-app/main/default/pages/STG_Settings.page index 6b972970e4..182f6b81b8 100644 --- a/force-app/main/default/pages/STG_Settings.page +++ b/force-app/main/default/pages/STG_Settings.page @@ -1,31 +1,22 @@ - -
-
+