X Tutup
Skip to content

feat(http): serialize search parameters from request options#3020

Closed
caitp wants to merge 1 commit intoangular:masterfrom
caitp:issue-2417
Closed

feat(http): serialize search parameters from request options#3020
caitp wants to merge 1 commit intoangular:masterfrom
caitp:issue-2417

Conversation

@caitp
Copy link
Copy Markdown
Contributor

@caitp caitp commented Jul 13, 2015

WIP

Closes #2417

@jeffbcross
Copy link
Copy Markdown
Contributor

@caitp is there anything blocking this PR?

@caitp
Copy link
Copy Markdown
Contributor Author

caitp commented Jul 20, 2015

The test hasn't been passing yet, so that's one

@jeffbcross
Copy link
Copy Markdown
Contributor

@caitp I meant are you working on this, and is anything blocking you from finishing :)

@caitp
Copy link
Copy Markdown
Contributor Author

caitp commented Aug 5, 2015

@caitp I meant are you working on this, and is anything blocking you from finishing :)

@jeffbcross I've just pushed a new version which passes each unit test task locally, so this one is probably ready for review.

edit

"tests" are passing everywhere, but Dartanalyzer fails because the unused imports stuff. Is there any way to prevent those warnings from being emitted while still getting all the typeinfo benefits in TypeScript?

@caitp
Copy link
Copy Markdown
Contributor Author

caitp commented Aug 5, 2015

needs info from TypeScript/Dart-knowledgable people

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Trailing comma

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm surprised enforce-format and lint didn't complain about this

@naomiblack naomiblack added this to the alpha-35 milestone Aug 6, 2015
@jeffbcross jeffbcross added feature Label used to distinguish feature request from other issues action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews comp: data-access and removed state: WIP labels Aug 6, 2015
@jeffbcross
Copy link
Copy Markdown
Contributor

Left some comments on requested behavior changes. LMK if you disagree.

@caitp caitp force-pushed the issue-2417 branch 4 times, most recently from 8ceb463 to 7ff4120 Compare August 7, 2015 22:22
@caitp caitp assigned jeffbcross and unassigned caitp Aug 7, 2015
@caitp caitp added action: review The PR is still awaiting reviews from at least one requested reviewer and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Aug 10, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like this isn't used anywhere, and is also not implemented in JS facade. Please remove.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

there might be a few other bits of cleanup to do, do you see anything that looks more like a "this won't work or doesn't do what we want" kind of thing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

or if you can spot missing test coverage I'll add some more tests before checking in

@jeffbcross jeffbcross assigned caitp and unassigned jeffbcross Aug 10, 2015
@jeffbcross jeffbcross added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 10, 2015
@jeffbcross
Copy link
Copy Markdown
Contributor

Looks good with some cleanup and squashing.

@jeffbcross jeffbcross added pr_state: LGTM action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Aug 10, 2015
- Extends URLSearchParams API to include operations for combining
  different URLSearchParams objects:

  These new methods include:
  setAll(otherParams): performs `this.set(key, values[0])` for each
      key/value-list pair in `otherParams`

  appendAll(otherParams): performs `this.append(key, values)` for
      each key/value-list pair in `otherParams`

  replaceAll(otherParams): for each key/value-list pair in
      `otherParams`, replaces current set of values for `key` with
      a copy of the list of values.

- RequestOptions do not merge search params automatically (because
  there are multiple ways to do this). Instead, they replace any
  existing `search` field if `search` is provided. Explicit merging
  is required if merging is desirable.

- Some extra test coverage added.

Closes angular#2417
@caitp caitp added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Aug 10, 2015
@mary-poppins
Copy link
Copy Markdown

User @caitp does not have PR merging privlidges.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Aug 10, 2015
@jeffbcross
Copy link
Copy Markdown
Contributor

@caitp the merge label is special now. For whitelisted committers, it will put the PR in the presubmit queue as-is. When you're ready to merge it, you can just push to upstream presubmit-caitp-pr-3020

@tbosch tbosch added action: merge The PR is ready for merge by the caretaker and removed action: merge The PR is ready for merge by the caretaker labels Aug 10, 2015
@caitp caitp closed this in 77d3668 Aug 10, 2015
goderbauer pushed a commit to goderbauer/angular that referenced this pull request Aug 15, 2015
- Extends URLSearchParams API to include operations for combining
  different URLSearchParams objects:

  These new methods include:
  setAll(otherParams): performs `this.set(key, values[0])` for each
      key/value-list pair in `otherParams`

  appendAll(otherParams): performs `this.append(key, values)` for
      each key/value-list pair in `otherParams`

  replaceAll(otherParams): for each key/value-list pair in
      `otherParams`, replaces current set of values for `key` with
      a copy of the list of values.

- RequestOptions do not merge search params automatically (because
  there are multiple ways to do this). Instead, they replace any
  existing `search` field if `search` is provided. Explicit merging
  is required if merging is desirable.

- Some extra test coverage added.

Closes angular#2417
Closes angular#3020
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes feature Label used to distinguish feature request from other issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(http): implement support for headers and url params objects in http

6 participants

X Tutup