Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fgvieira opened this issue Feb 15, 2024 · 0 comments · May be fixed by #519
Open

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

fgvieira opened this issue Feb 15, 2024 · 0 comments · May be fixed by #519
Assignees
Labels

Comments

@fgvieira
Copy link

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.

@fgvieira fgvieira added the bug label Feb 15, 2024
@vladsavelyev vladsavelyev changed the title megaqc upload broken on MultiQC>=1.20 MultiQC>=1.20 doesn't generate expected plot data dump (config and datasets) Feb 15, 2024
@vladsavelyev vladsavelyev self-assigned this Feb 15, 2024
@vladsavelyev vladsavelyev linked a pull request Feb 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants