-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Spike] Generate PDF Certificates #625
[Spike] Generate PDF Certificates #625
Conversation
9415d99
to
532072e
Compare
a2a9411
to
ca411d5
Compare
ca411d5
to
1f62c85
Compare
4ffad25
to
aabf6ad
Compare
The review apps Access Your Teaching Qualifications & Check A Teacher's Record have been deleted. |
aabf6ad
to
737a288
Compare
737a288
to
a6cfb37
Compare
a6cfb37
to
3704790
Compare
e5f06a1
to
2badc65
Compare
2badc65
to
12b0588
Compare
c9c45a8
to
4d0bde2
Compare
4d0bde2
to
8ec8b12
Compare
8ec8b12
to
da419c5
Compare
da419c5
to
5151546
Compare
Grover turns the html output of the certificates#show action into a PDF response, but we don't want to expose HTML format as a valid response. So limit the route to Grover middleware requests.
5151546
to
7715629
Compare
Dockerfile
Outdated
|
||
# Open port 2222 for Azure SSH access | ||
EXPOSE 2222 | ||
>>>>>>> 5151546 (mend) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this line be here?
Dockerfile
Outdated
# SSH access specific to Azure | ||
# Install OpenSSH and set the password for root to "Docker!". | ||
RUN apk add --no-cache openssh && echo "root:Docker!" | chpasswd | ||
|
||
# Copy the Azure specific sshd_config file to the /etc/ssh/ directory | ||
RUN ssh-keygen -A && mkdir -p /var/run/sshd | ||
COPY azure/.sshd_config /etc/ssh/sshd_config | ||
|
||
# Open port 2222 for Azure SSH access | ||
EXPOSE 2222 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure any of these lines are required any more.
7715629
to
63fc0a9
Compare
institution. The holder of this certificate is a qualified teacher and has obtained the required<br/> | ||
qualifications and completed the necessary training for the profession of school teacher in England.</p> | ||
<p> </p> | ||
<p class="text">Date Induction Completed: <strong><%= qualification.details.periods.first.end_date.to_date.to_fs(:long_uk) %></strong></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Induction periods are going away from the API very shortly; we should use the dates on the top-level induction property
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed now
63fc0a9
to
216ba81
Compare
Context
Users download their PDF certificate from AYTQ.
The certificate is currently generated in the API which, given this is a frontend concern, isn’t ideal architecturally and adds complexity to the API and infrastructure.
Changes proposed in this pull request
This PR is a proof of concept for Certificate PDF generation. It covers the basic use case of generating a QTS Certificate.
TODO:
Guidance to review
Link to Trello card
https://trello.com/c/gyZSM5bs/1980-spike-generate-pdf-certificates-in-aytq
See https://trello.com/c/xdaplb8l/2022-implement-aytq-certificate-pdf-generation for implementation story
Checklist