Skip to content
This repository was archived by the owner on Mar 18, 2021. It is now read-only.

Jc/explicit query values - #148

Merged
itsjoeconway merged 8 commits into
1.0from
jc/explicit_query_values
Dec 6, 2016
Merged

itsjoeconway merged 8 commits into
1.0from
jc/explicit_query_values

Conversation

@itsjoeconway

Copy link
Copy Markdown
Contributor

This needs to be rebased against #147 once that is merged.

@httpquery parameters in HTTPController responder method will now only allow multiple keys in the query string if and only if the argument type is a List.

@itsjoeconway
itsjoeconway force-pushed the jc/explicit_query_values branch from 51330c3 to 20b0197 Compare December 6, 2016 18:30

@anachlas anachlas left a comment

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.

👍

Comment thread CHANGELOG.md
- BREAKING CHANGE: Added new `Response.contentType` property. Adding "Content-Type" to the headers of a `Response` no longer has any effect; use this property instead.
- `ManagedDataModel`s now scan all libraries for `ManagedObject<T>` subclasses to generate a data model. Use `ManagedDataModel.fromCurrentMirrorSystem` to create instances of `ManagedDataModel`.
- The *last* instantiated `ManagedContext` now becomes the `ManagedContext.defaultContext`; prior to this change, it was the first instantiated context. Added `ManagedContext.standalone` to opt out of setting the default context.
- @HTTPQuery parameters in HTTPController responder method will now only allow multiple keys in the query string if and only if the argument type is a List.

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.

This is awesome.

@itsjoeconway
itsjoeconway merged commit 54aec02 into 1.0 Dec 6, 2016
@itsjoeconway
itsjoeconway deleted the jc/explicit_query_values branch December 6, 2016 19:19
itsjoeconway added a commit that referenced this pull request Dec 7, 2016
* Fixing contentType behavior for Response

* Fix tests to use content-type

* Changing behavior for content type interpretation/handling for Response

* Fixed documentation

* Fixed docs, fixed style thing

* dartfmt

* Bump version number, change log

* WIP; clean up private/public

* Updated test/template projects to use import instead of part, changed data model builder to include lib dependencies

* Cleaning up template project

* Cleaned up API a bit, hid some things

* Moved isolate exception back to public to prevent from breaking existing code, marked as deprecated

* dartfmt

* Fixed type on app config

* Cleaned up example requestsink a smidgen

* Revert "Cleaned up example requestsink a smidgen"

This reverts commit 6255e4d.

* Fixing small thing in template sink

* Renaming some things

* Made a few static values const

* Fixing up some tests, test_all generator

* Updated some tests, made the last managedcontext the default context

* Removed unused method

* Added instructions for running tests and collecting coverage

* UPdated change log

* Using codecov and adding to travis

* Update CHANGELOG.md

* Fixed bug with isNotPresent in partial matcher. (#143)

* Fixed bug with isNotPresent in partial matcher.

* Added a test, caught another bug, fixed the bug.

* Check success case.

* pr feedback

* Jc/fix managed resolution (#147)

* Tests and fixes for template generation and data model generation

* Fixed some exit code stuff

* Updated changelog

* dartfmt

* Removed unused imports

* Jc/explicit query values (#148)

* Tests and fixes for template generation and data model generation

* Fixed some exit code stuff

* dartfmt

* Removed unused imports

* Disallow multiple query parameters of same key if arg type is not List in HTTPController, allow when is

* dartfmt

* update changelog

* Improve willSendResponse and tests

* Fixing some naming and ordering in template (#150)

* Fixing some naming and ordering in template

* Fixed test issue with 1.21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants