Skip to content
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

fix: Convert Digital Planning payload to JSON file before upload #4054

Merged
merged 3 commits into from
Dec 9, 2024

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Dec 7, 2024

What does this PR do?

Comments

Trickier than expected! TypeScript isn't catching the mismatch between DigitalPlanningPayload and Express.Multer.File even when the type is imported and assigned. I think it's to do with the combination of the type complexity plus the Awaited<> utility type which has a depth limit I believe.

Next up is some tests here for the entire module (in another PR), will also check the Pizza to make this is working as expected once it's up.

@DafyddLlyr DafyddLlyr requested a review from a team December 7, 2024 09:59
@DafyddLlyr DafyddLlyr changed the title fix: Improve typechecking for file upload fix: Convert Digital Planning payload to JSON file before upload Dec 7, 2024
Copy link

github-actions bot commented Dec 7, 2024

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr marked this pull request as draft December 7, 2024 12:28
@DafyddLlyr DafyddLlyr force-pushed the dp/file-upload-typechecking branch from 80aa9a8 to ea7a7a3 Compare December 7, 2024 16:51
@DafyddLlyr DafyddLlyr marked this pull request as ready for review December 7, 2024 16:52
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this up 👍

Pizza working as expected & JSON file is populated: https://4054.planx.pizza/barnet/test/submissions-log

@DafyddLlyr DafyddLlyr merged commit f0234a8 into main Dec 9, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/file-upload-typechecking branch December 9, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants