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

feat: Add _requestedFiles key to Passport #2763

Merged
merged 7 commits into from
Feb 8, 2024
Merged

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Feb 6, 2024

Prior art - #2755

What does this PR do?

  • Adds a new passport variable - _requestedFile
  • Keeps this updated each time we pass through an Upload or UploadAndLabel component

To do

  • More test coverage
  • Capture files uploaded via DrawBoundary

Copy link

github-actions bot commented Feb 6, 2024

Removed vultr server and associated DNS entries

@@ -41,7 +41,7 @@ export const makeData = <T>(
props: any,
value: T,
overwriteKey?: string,
): {} | { data: Record<string, T> } => {
): Record<string, never> | { data: Record<string, T> } => {
Copy link
Contributor Author

@DafyddLlyr DafyddLlyr Feb 7, 2024

Choose a reason for hiding this comment

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

image

@@ -62,7 +62,7 @@ function Component(props: any) {
</InputRow>
<InputRow>
<Input
// required
required
Copy link
Member

Choose a reason for hiding this comment

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

I agree this should be correct behavior - but I wonder if this will break any discretionary submission services like building control forms or something? Hopefully not / easy enough to fix forward if we find it does I guess? I don't necessarily think we should be putting as much proactive effort into find/replace etc outside of "standard" services?

@DafyddLlyr DafyddLlyr force-pushed the dp/requested-files-v2 branch from b7b31fd to 5513cd9 Compare February 8, 2024 14:26
@DafyddLlyr DafyddLlyr force-pushed the dp/requested-files-v2 branch from 3f04d20 to f74f9da Compare February 8, 2024 16:40
@DafyddLlyr DafyddLlyr requested a review from a team February 8, 2024 16:40
@DafyddLlyr DafyddLlyr marked this pull request as ready for review February 8, 2024 16:40
@DafyddLlyr DafyddLlyr merged commit 4547e86 into main Feb 8, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/requested-files-v2 branch February 8, 2024 16:53
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