MultiQC / MegaQC

Web application to collect and visualise data across multiple MultiQC runs.
http://megaqc.info/
GNU General Public License v3.0
95 stars 28 forks source link

MultiQC>=1.20 doesn't generate expected plot data dump (`config` and `datasets`) #518

Open fgvieira opened 8 months ago

fgvieira commented 8 months ago

Describe the bug

To Reproduce

Steps to reproduce the behavior:

  1. Upload any json to megaqc
  2. See error:
Traceback (most recent call last):
  File "lib/python3.11/site-packages/megaqc/scheduler.py", line 60, in upload_reports_job
    ret = handle_report_data(user, data)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "lib/python3.11/site-packages/megaqc/api/utils.py", line 202, in handle_report_data
    config = json.dumps(report_data["report_plot_data"][plot]["config"])
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'config'

Additional context

On MultiQC 1.20 the structure of the JSON file changed and there is no config under each plot.