diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f218304047..bbcf3c5f3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ on: branches: - "develop" - "main" + - "AH/develop" jobs: # Currently GH Actions provides no simple method for "sharing" diff --git a/locale/en_US/LC_MESSAGES/django.mo b/locale/en_US/LC_MESSAGES/django.mo index b1760d5a3b..734dfa6446 100644 Binary files a/locale/en_US/LC_MESSAGES/django.mo and b/locale/en_US/LC_MESSAGES/django.mo differ diff --git a/locale/en_US/LC_MESSAGES/django.po b/locale/en_US/LC_MESSAGES/django.po index a7b1ee2601..322823787f 100644 --- a/locale/en_US/LC_MESSAGES/django.po +++ b/locale/en_US/LC_MESSAGES/django.po @@ -2596,6 +2596,9 @@ msgstr "Rename allows users to change the name of the underlying field shown in msgid "REVIEW YOUR DATA MAPPINGS" msgstr "REVIEW YOUR DATA MAPPINGS" +msgid "REVIEW_MATCHING_CRITERIA" +msgstr "Review your matching criteria on the Column Settings page before importing data for the first time. You will not be able to remove fields from the matching criteria after data is added to your organization." + msgid "Read more here." msgstr "Read more here." @@ -2940,6 +2943,9 @@ msgstr "STEP 1: Map Your Data" msgid "STEP 2: Review Your Data Mappings" msgstr "STEP 2: Review Your Data Mappings" +msgid "SUB_ORG_DEPRECATION" +msgstr "The Sub-Organization functionality is no longer recommended and will be deprecated soon. Visit the Access Level Tree page to define access levels to structure your organization's content." + msgid "SUGGEST_TO_VERIFY" msgstr "Please verify before continuing." diff --git a/locale/fr_CA/LC_MESSAGES/django.mo b/locale/fr_CA/LC_MESSAGES/django.mo index 188f87d83f..d69933376b 100644 Binary files a/locale/fr_CA/LC_MESSAGES/django.mo and b/locale/fr_CA/LC_MESSAGES/django.mo differ diff --git a/locale/fr_CA/LC_MESSAGES/django.po b/locale/fr_CA/LC_MESSAGES/django.po index 57ef37e0b4..a0ee62e9b2 100644 --- a/locale/fr_CA/LC_MESSAGES/django.po +++ b/locale/fr_CA/LC_MESSAGES/django.po @@ -2616,6 +2616,9 @@ msgstr "Renommer permet aux utilisateurs de modifier le nom du champ sous-jacent msgid "REVIEW YOUR DATA MAPPINGS" msgstr "EXAMINER VOS MAPPAGES DE DONNÉES" +msgid "REVIEW_MATCHING_CRITERIA" +msgstr "Vérifiez vos critères de correspondance sur la page Paramètres de colonne avant d'importer des données pour la première fois. Vous ne pourrez pas supprimer des champs des critères de correspondance une fois les données ajoutées à votre organisation." + msgid "Read more here." msgstr "Lire la suite ici." @@ -2964,6 +2967,9 @@ msgstr "ÉTAPE 1: Mappez vos données" msgid "STEP 2: Review Your Data Mappings" msgstr "ÉTAPE 2: Consultez vos mappages de données" +msgid "SUB_ORG_DEPRECATION" +msgstr "La fonctionnalité Sous-organisation n’est plus recommandée et sera bientôt obsolète. Visitez la page des niveaux d'accès pour définir les niveaux d'accès afin de structurer le contenu de votre organisation." + #, fuzzy msgid "SUGGEST_TO_VERIFY" msgstr "Veuillez vérifier les points suivants avant de continuer." diff --git a/seed/static/seed/js/controllers/create_sub_organization_modal_controller.js b/seed/static/seed/js/controllers/create_sub_organization_modal_controller.js index ef837270a9..c915cefd29 100644 --- a/seed/static/seed/js/controllers/create_sub_organization_modal_controller.js +++ b/seed/static/seed/js/controllers/create_sub_organization_modal_controller.js @@ -13,6 +13,8 @@ angular.module('BE.seed.controller.create_sub_organization_modal', []).controlle $scope.sub_org = {}; $scope.error_message = ''; + + $scope.org_id = organization.id; /** * creates a sub organization with an owner */ diff --git a/seed/static/seed/js/controllers/data_upload_modal_controller.js b/seed/static/seed/js/controllers/data_upload_modal_controller.js index 318e666401..8be0d49ee0 100644 --- a/seed/static/seed/js/controllers/data_upload_modal_controller.js +++ b/seed/static/seed/js/controllers/data_upload_modal_controller.js @@ -32,9 +32,11 @@ angular.module('BE.seed.controller.data_upload_modal', []).controller('data_uplo 'uploader_service', '$state', 'audit_template_service', + 'auth_service', 'dataset_service', 'mapping_service', 'matching_service', + 'organization_service', 'inventory_service', 'spinner_utility', 'step', @@ -54,9 +56,11 @@ angular.module('BE.seed.controller.data_upload_modal', []).controller('data_uplo uploader_service, $state, audit_template_service, + auth_service, dataset_service, mapping_service, matching_service, + organization_service, inventory_service, spinner_utility, step, @@ -91,7 +95,18 @@ angular.module('BE.seed.controller.data_upload_modal', []).controller('data_uplo * newly created data set * file: the file being upload file.filename is the file's name */ - $scope.organization = organization; + $scope.organization = organization + // it would be better to resolve these from the calling controller, but + // this modal is multi-purpose and called from all kinds of places + // get full organization payload (to get inventory count) + organization_service.get_organization(organization.id).then((data) => { + $scope.organization = data.organization; + }); + // get auth (to display column settings link) + auth_service.is_authorized(organization.id, ['requires_viewer', 'requires_owner']).then((data) => { + $scope.auth = data.auth; + }); + $scope.dataset = { name: '', disabled() { diff --git a/seed/static/seed/locales/en_US.json b/seed/static/seed/locales/en_US.json index 8b97d7179f..bf891a6d4d 100644 --- a/seed/static/seed/locales/en_US.json +++ b/seed/static/seed/locales/en_US.json @@ -844,6 +844,7 @@ "RENAME_COLUMN_TITLE": "Rename Column", "RENAME_SYS_LEVEL_COL": "Rename allows users to change the name of the underlying field shown in Column Name \/ Field Name. Renaming a field means that field will be changed in all the data for the organization.", "REVIEW YOUR DATA MAPPINGS": "REVIEW YOUR DATA MAPPINGS", + "REVIEW_MATCHING_CRITERIA": "Review your matching criteria on the Column Settings page before importing data for the first time. You will not be able to remove fields from the matching criteria after data is added to your organization.", "Read more here.": "Read more here.", "Really reset all passwords? This will sign you out of SEED.": "Really reset all passwords? This will sign you out of SEED.", "Recent Sale Date": "Recent Sale Date", @@ -957,6 +958,7 @@ "SHOWING_UNFILTERED_TAXLOTS": "Showing {start} to {end} of {total} tax lots", "STEP 1: Map Your Data": "STEP 1: Map Your Data", "STEP 2: Review Your Data Mappings": "STEP 2: Review Your Data Mappings", + "SUB_ORG_DEPRECATION": "The Sub-Organization functionality is no longer recommended and will be deprecated soon. Visit the Access Level Tree page to define access levels to structure your organization's content.", "SUGGEST_TO_VERIFY": "Please verify before continuing.", "SUGGEST_UPDATE_GEOCODE_COLS": "Update the geocoding column settings in your organization's column settings page.", "Salesforce": "Salesforce", diff --git a/seed/static/seed/locales/fr_CA.json b/seed/static/seed/locales/fr_CA.json index ac517dad19..2ead4f53a5 100644 --- a/seed/static/seed/locales/fr_CA.json +++ b/seed/static/seed/locales/fr_CA.json @@ -844,6 +844,7 @@ "RENAME_COLUMN_TITLE": "Renommer la Colonne", "RENAME_SYS_LEVEL_COL": "Renommer permet aux utilisateurs de modifier le nom du champ sous-jacent affiché dans Nom de colonne \/ Nom de champ. Renommer un champ signifie que ce champ sera modifié dans toutes les données de l'organisation.", "REVIEW YOUR DATA MAPPINGS": "EXAMINER VOS MAPPAGES DE DONNÉES", + "REVIEW_MATCHING_CRITERIA": "Vérifiez vos critères de correspondance sur la page Paramètres de colonne avant d'importer des données pour la première fois. Vous ne pourrez pas supprimer des champs des critères de correspondance une fois les données ajoutées à votre organisation.", "Read more here.": "Lire la suite ici.", "Really reset all passwords? This will sign you out of SEED.": "Réinitialiser tous les mots de passe? Cela vous déconnectera de SEED.", "Recent Sale Date": "Date de vente récente", @@ -957,6 +958,7 @@ "SHOWING_UNFILTERED_TAXLOTS": "Affichage {start} à {end} des {total} lots d'impôt en tout", "STEP 1: Map Your Data": "ÉTAPE 1: Mappez vos données", "STEP 2: Review Your Data Mappings": "ÉTAPE 2: Consultez vos mappages de données", + "SUB_ORG_DEPRECATION": "La fonctionnalité Sous-organisation n’est plus recommandée et sera bientôt obsolète. Visitez la page des niveaux d'accès pour définir les niveaux d'accès afin de structurer le contenu de votre organisation.", "SUGGEST_TO_VERIFY": "Veuillez vérifier les points suivants avant de continuer.", "SUGGEST_UPDATE_GEOCODE_COLS": "Mettez à jour les paramètres de colonne de géocodage dans la page des paramètres de colonne de votre organisation.", "Salesforce": "Salesforce", diff --git a/seed/static/seed/partials/create_sub_organization_modal.html b/seed/static/seed/partials/create_sub_organization_modal.html index e016f7c299..6aee4072b2 100644 --- a/seed/static/seed/partials/create_sub_organization_modal.html +++ b/seed/static/seed/partials/create_sub_organization_modal.html @@ -1,6 +1,11 @@ +
+ + SUB_ORG_DEPRECATION + Access Level Tree page +