-
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: Stream S3 files directly to zip #2380
Conversation
Removed vultr server and associated DNS entries |
Hey @DafyddLlyr I think the code change looks good but I was struggling to figure out how to test this in the Pizza 🤔 I've got a submission service where I upload some files and send it to uniform which seems to be successful based on the network tab. Although when I look on the Hasura console for the pizza service I don't see anything in the uniform applications: I believe the files are uploaded to S3 but I'm trying to see the submission info so I can connect the application to uniform to an S3 bucket folder to check the files are uploaded successfully? |
Catching up on reviews - @Mike-Heneghan easier way to test this one might be to use "Send to email", which generates the same zip containing user-uploaded files from S3 that gets sent to Uniform! Here's how I'd do that:
In terms of your prior Uniform test, a couple things could have not been connecting here:
|
4d5806a
to
321b5cb
Compare
Thanks for the helpful comment above @jessicamcinchak 🙌 Testing of this has been a little on the backburner as publishing was failing due to a bug fixed earlier in the week. I've now rebased this which should make things simpler now. |
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.
Coming back to this one in hopes of merging before you're off next week!
I hit one issue in testing:
- I went through this flow: https://2380.planx.pizza/testing/upload-and-label-demo/preview
- I successfully got sent this download link: https://api.2380.planx.pizza/download-application-files/fc218103-895c-4355-b5c0-38192a725b87?email=jessica%40opensystemslab.io&localAuthority=testing
- But it throws this error
"Failed to download application files. Error: Cannot generate BOPS payload: Error: Cannot get flow 7e8f514e-e867-45f3-a1df-baf03190ca9c"
even though that flow does indeed exist on the pizza
Might just be a rebase issue? Sorry this one has sat for awhile, happy to make time to test again today if you can similarly re-create!
Thanks for the heads up - will also take another look here. No real rush to move this one forward but I'll investigate and fix and then @ you if I need another review 👍 |
@jessicamcinchak Finally got back to this one - sorry for the holdup. The issue was that the flow wasn't published yet on the Pizza. I published and then send to email worked as expected 👍 There's a small PR here which might make this slightly easier to work out in future - I keep on hitting this issue! theopensystemslab/planx-core#199 |
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.
Eeep sorry for silly mistake 🙈 working now, happy for this to go in!
No zero bother at all - I keep hitting the same issue! Appreciate the reviews this morning - sorry if me tagging these for review has bothered you on a day ay off 🙏 |
Small fix that might help resolve this issue which I keep hitting! theopensystemslab/planx-new#2380 (comment) No real rush to get this into `planx-new`, it can come along on the next update.
This reverts commit 96adf16.
* chore: Stream S3 files directly to zip (#2380) * fix: Remove /tmp prefix in zip files
What does this PR do?