Repository navigation
feat: a handover pack for applying to a prepared job yourself - #69
Merged
Merged
Conversation
Sending can stop at a site's emailed-code check (Catapult, on Greenhouse), so the
user finishes in their own browser. Putting the files together by hand each time
is slow; now each autopilot run with documents has a "Handover pack" button.
GET /autopilot/runs/{id}/pack (your own runs only) returns a ZIP:
- the CV and cover letter under the names autopilot uploads them as
(Timothy_Ojebiyi_CV.pdf), not the run-id or company names the CV/letter
buttons save;
- "<Company> - answers.txt": the job and its link, why it was held, what to
upload, each question the form asked with its answer ("left for you to answer"
when blank), and the letter as text for a form that wants it pasted.
It's 404 when the run's PDFs are gone. browser_agent.upload_name (was
_upload_name) now serves both.
Tests: the pack's files, names and sheet; 404 without its PDFs; out of another
user's reach; the e2e smoke test downloads it under the API's name. Catapult's
real run gives both PDFs and a sheet with its 8 questions and the letter text.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Sending can stop at a job site's emailed-code check: Catapult, on Greenhouse, asked for a code "to confirm you're a human" (#67). Then the user finishes in their own browser. Putting the files and answers together by hand each time is slow, so each prepared job now comes with everything needed in one download.
What changed
Backend
GET /autopilot/runs/{id}/pack, for your own runs only, returns a ZIP namedWindrush - <Company> - <Job title>.zip:Timothy_Ojebiyi_CV.pdf,Timothy_Ojebiyi_Cover_Letter.pdf);<Company> - answers.txt, with the job and its link, why it was held, what to upload, each question the form asked with its answer ("left for you to answer" when blank), and the letter as text for a form that wants it pasted.autopilot.handover_pack.browser_agent.upload_name(was_upload_name) now serves both the browser and the pack.Frontend
downloadDocumentanddownloadPackshare onesavehelper.Tests
tsc --noEmitand lint clean.After deploy
Rebuild both containers with
docker compose up -d --build api frontend.