Altinn / altinn-pdf

Altinn platform microservice for generating PDFs
0 stars 1 forks source link

Create additional apps for testing of PDF #33

Closed SandGrainOne closed 2 years ago

SandGrainOne commented 2 years ago

Description

Update the selected apps with correct version of the template and have them deployed to the selected environment.

The goal with the apps should be to test the resulting PDF for UA support.

Additional Information

Test apps can currently be deployed to AT21 for TTD.

We decieded (16.08.2022) to initially use the following existing apps for testing:

NuGet packages with client code has been published with release 6.1.0-preview.0

There are 2 new required settings and 2 optional settings to choose from:

  1. PdfGeneratorSettings.ServiceEndpointUri (required) This should hold the Uri to the new PDF generator service endpoint. E.g: https://ttd.apps.at21.altinn.cloud/pdf
  2. PdfGeneratorSettings.AppPdfPageUriTemplate (required) Template for the URI The PDF generator should request for when generating PDF. Value: https://{hostname}/{appId}/#/instance/{instanceid} This was made a template to support dev. The value should be the same in all other environments.
  3. PdfGeneratorSettings.WaitForTime (optional, default is 5000 ms) A hard coded delay to allow the app to render a page before generating the PDF. This is ignored if WaitForSelector is defined.
  4. PdfGeneratorSettings.WaitForSelector (optional) Give puppeteer a specific html selector. Wait for the identified html element before generating the PDF. This overrides WaitForTime.

In App.cs add a call to the PdfService to generate the pdf.

Tasks

The selected apps are deployed to correct environment with updated code:

PDFs

UI components app https://ttd.apps.at21.altinn.cloud/ttd/pdf-test-ui-components

Reelle rettighetshavere https://ttd.apps.at21.altinn.cloud/ttd/pdf-test-rrh-innrapportering

Kjærestebesøk https://ttd.apps.at21.altinn.cloud/ttd/pdf-test-kjaerestebesok

acn-sbuad commented 2 years ago

Issue is missing some information. What else needs to be done except reference the new version of the nuget package?