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

Pipeline: Create PDF when HTML report is created #426

Open
10 tasks
rhodges opened this issue Mar 29, 2021 · 0 comments
Open
10 tasks

Pipeline: Create PDF when HTML report is created #426

rhodges opened this issue Mar 29, 2021 · 0 comments

Comments

@rhodges
Copy link
Member

rhodges commented Mar 29, 2021

If a user chooses to download a .PDF report, there is currently a long wait for the file to be created.

We can speed this up by triggering the creation the .PDFs when the report is loaded.

  • On report load, check if the .PDF exists or is currently being created ('running')
    • The report model should track:
      • Status of .PDF creation ('pending', 'running', 'complete')
      • Date of last attempt to create .PDF (to detect 'hung' processes)
  • If file does not exist and status is not 'running' (or 'run date' is over 30 minutes old):
    • Ensure any required data (like map images) are created and ready
    • Create 'full report' .pdf
  • Remove any logic that triggers .PDF creation when users click the full-report 'download' button
  • Single-section reports (see Allow users to download individual sections of the report #425 ) should be snappy without pre-rendering since the images were all created for the 'full-report'
@rhodges rhodges added this to the LandMapper v2 Phase 2 milestone Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant