Skip to content

Options failing to fetch should block PDF generation #3842

@bjosttveit

Description

@bjosttveit

Description of the bug

If an option query fails, the PDF will just show the option value. Instead it should fail and let the user retry. Options are usually simple json files that rarely fail to fetch, however, apps can also implement option lists through code with any kind of external dependency which may fail for unkown reasons. In the browser normally this is not a huge issue, the layout will look a bit weird but the user can always refresh the page. But a PDF generated successfully is permanent, so we should not accept potentially saving incorrect data there.

#3840 (comment)

Steps To Reproduce

  1. Instantiate an app with options and fill it out
  2. Go to ?pdf=1
  3. Block the options request in browser dev tools
  4. Summary should show the option value (not label) and readyForPrint is present

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions