From 942492355c82a9cf2185dfa76559081bdc1cec2b Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Sat, 3 Feb 2024 10:40:03 +0100 Subject: [PATCH] [REF] upgrade_analysis: increase module description column in generated RST file to allow for very long module name --- upgrade_analysis/models/upgrade_analysis.py | 3 +-- .../static/src/module_coverage_template.rst.mako | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/upgrade_analysis/models/upgrade_analysis.py b/upgrade_analysis/models/upgrade_analysis.py index 926e69f1a..b1e0789a8 100644 --- a/upgrade_analysis/models/upgrade_analysis.py +++ b/upgrade_analysis/models/upgrade_analysis.py @@ -270,7 +270,6 @@ class UpgradeAnalysis(models.Model): except Exception as e: _logger.exception("Error generating noupdate changes: %s" % e) general_log += "ERROR: error when generating noupdate changes: %s\n" % e - try: self.generate_module_coverage_file(no_changes_modules) except Exception as e: @@ -575,7 +574,7 @@ class UpgradeAnalysis(models.Model): ) elif module in no_changes_modules: status += "No DB layout changes. " - module_descriptions[module_description.ljust(49, " ")] = status.ljust( + module_descriptions[module_description.ljust(51, " ")] = status.ljust( 49, " " ) diff --git a/upgrade_analysis/static/src/module_coverage_template.rst.mako b/upgrade_analysis/static/src/module_coverage_template.rst.mako index ab598ae4d..1f7efefc5 100644 --- a/upgrade_analysis/static/src/module_coverage_template.rst.mako +++ b/upgrade_analysis/static/src/module_coverage_template.rst.mako @@ -3,10 +3,10 @@ Module coverage ${start_version} -> ${end_version} .. include:: coverage_legend.rst -+-------------------------------------------------+----------------------+-------------------------------------------------+ -| Module | Status + Extra Information | -+=================================================+======================+=================================================+ ++---------------------------------------------------+----------------------+-------------------------------------------------+ +| Module | Status + Extra Information | ++===================================================+======================+=================================================+ % for module, extra_information in module_descriptions.items(): |${module}| |${extra_information}| -+-------------------------------------------------+----------------------+-------------------------------------------------+ ++---------------------------------------------------+----------------------+-------------------------------------------------+ % endfor