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

AF-157 don't add repeated data #310

Merged
merged 6 commits into from
May 16, 2018
Merged

AF-157 don't add repeated data #310

merged 6 commits into from
May 16, 2018

Conversation

toddbeckman-wf
Copy link
Contributor

Problem

FormData was getting added to the request twice.

Solution

Don't add it twice.

Testing Suggestion

  • CI does the thing

@toddbeckman-wf toddbeckman-wf requested a review from a team as a code owner May 8, 2018 17:45
@toddbeckman-wf toddbeckman-wf changed the title Af 157 don't add repeated data AF-157 don't add repeated data May 8, 2018
@aviary-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on HipChat: InfoSec Forum.

@@ -0,0 +1,70 @@
// Copyright 2018 Workiva Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's just put this directly in the test/unit/http/ dir instead of a browser/ subdir. There's already one other file that only runs in the browser and the @TestOn() annotation + the browser in the test file name communicates that requirement effectively.

Copy link
Contributor

@evanweible-wf evanweible-wf left a comment

Choose a reason for hiding this comment

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

Just the one comment, otherwise this looks great!


final FormDataBody body = await request.finalizeBody();
final List<Blob> blobs = body.formData.getAll(key);
expect(blobs.length, equals(1));
Copy link
Contributor

Choose a reason for hiding this comment

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

tests are failing on the dart2 dev channel because the return type for formData.getAll() is List<Object>, so the typing of List<Blob> fails strong mode.

Need to change this to something like:

final FormDataBody body = await request.finalizeBody();
expect(body.formData.getAll(key), hasLength(1));

@evanweible-wf
Copy link
Contributor

+10

  • CI passes

QA +1

  • Dev +1s
  • +10 tested
  • Rosie is happy

@Workiva/release-management-p

@rmconsole-wf rmconsole-wf merged commit e0ed129 into master May 16, 2018
@rmconsole2-wf rmconsole2-wf deleted the AF-157_repeated-data branch May 16, 2018 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants