From d787fcb39da6109c332f17f23ec178af42cc3cb7 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Thu, 12 Sep 2024 08:50:21 -0600 Subject: [PATCH] Doc update --- docs/operations/data_migration.md | 9 +++++---- .../management/commands/create_federal_portfolio.py | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/operations/data_migration.md b/docs/operations/data_migration.md index 9bde4b695..44696aba6 100644 --- a/docs/operations/data_migration.md +++ b/docs/operations/data_migration.md @@ -870,10 +870,11 @@ This script takes the name of a `FederalAgency` (like 'AMTRAK') and does the fol Errors: 1. ValueError: Federal agency not found in database. -2. Logged Error: No suborganizations found for agency. -3. Logged Warning: No new suborganizations to add. -4. Logged Warning: No valid DomainRequest records to update. -5. Logged Warning: No valid DomainInformation records to update. +2. Logged warning: No senior official found for portfolio +3. Logged Error: No suborganizations found for portfolio. +4. Logged Warning: No new suborganizations to add. +5. Logged Warning: No valid DomainRequest records to update. +6. Logged Warning: No valid DomainInformation records to update. ### Running on sandboxes diff --git a/src/registrar/management/commands/create_federal_portfolio.py b/src/registrar/management/commands/create_federal_portfolio.py index 293050d03..d05a2911b 100644 --- a/src/registrar/management/commands/create_federal_portfolio.py +++ b/src/registrar/management/commands/create_federal_portfolio.py @@ -90,12 +90,12 @@ class Command(BaseCommand): TerminalHelper.colorful_logger(logger.info, TerminalColors.OKGREEN, message) if portfolio_args.get("senior_official"): - message = f"Added senior official '{portfolio_args['senior_official']}'." + message = f"Added senior official '{portfolio_args['senior_official']}'" TerminalHelper.colorful_logger(logger.info, TerminalColors.OKGREEN, message) else: message = ( f"No senior official added to portfolio '{portfolio}'. " - "None was returned for the reverse relation `FederalAgency.so_federal_agency.first()`." + "None was returned for the reverse relation `FederalAgency.so_federal_agency.first()`" ) TerminalHelper.colorful_logger(logger.info, TerminalColors.YELLOW, message) else: @@ -125,7 +125,7 @@ class Command(BaseCommand): TerminalHelper.colorful_logger(logger.info, TerminalColors.MAGENTA, message) if portfolio_args.get("senior_official"): - message = f"Added/modified senior official '{portfolio_args['senior_official']}'." + message = f"Added/modified senior official '{portfolio_args['senior_official']}'" TerminalHelper.colorful_logger(logger.info, TerminalColors.MAGENTA, message) return portfolio