-
Notifications
You must be signed in to change notification settings - Fork 2
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
chore: rename export zip to {flow-slug}-{session-id}.zip
#2893
Conversation
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.
Nice and simple! ✅
Update: Jumped the gun here sorry, didn't realise it was still in draft 🤦
Removed vultr server and associated DNS entries |
Zip is working as expected on pizza here, but invite to pay is broken - Can't spot where I've missed a session type update, going to switch tasks for a bit and come back with fresh eyes later. |
this.zip = new AdmZip(); | ||
// make a tmp directory to avoid file name collisions if simultaneous applications | ||
this.tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), sessionId)); | ||
this.filename = path.join(__dirname, `ripa-test-${sessionId}.zip`); | ||
this.filename = path.join(__dirname, `${flowSlug}-${sessionId}.zip`); |
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.
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.
dirname
only occurs on docker envs as I understand it (so local & pizzas), should be automatically omitted on staging / prod !
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.
eg http://api.editor.planx.dev/admin/session/d4d9249a-dc1e-4996-9bfc-15fd3adab242/zip returns plain ripa-test-{sessionId}.zip
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.
Perfect, thanks for clarifying! Makes sense considering we don't get this on staging / prod.
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.
- ITP tested ✅
- Send to email zip name tested ✅
All looking good!
When downloading zips via "Send to email", councils want to more clearly see which service a zip is associated with for reporting.
Relies on theopensystemslab/planx-core#328
Testing:
teams.submission_email
- confirm the zip is named as expected on download