Skip to content

Commit

Permalink
Merge pull request #460 from tartiflette/mra/release-1.3.0
Browse files Browse the repository at this point in the history
Release 1.3.0
  • Loading branch information
abusi committed Dec 8, 2020
2 parents b6f37d0 + 0bea41e commit 20cb0d6
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Released]

- [1.x.x]
- [1.3.x]
- [1.3.0](./changelogs/1.3.0.md) - 2020-12-08
- [1.2.x]
- [1.2.1](./changelogs/1.2.1.md) - 2020-05-06
- [1.2.0](./changelogs/1.2.0.md) - 2020-04-30
Expand Down
27 changes: 27 additions & 0 deletions changelogs/1.3.0.md
@@ -0,0 +1,27 @@
# [1.3.0] - 2020-12-08

## Added

- Setup a `CodeQL` analysis Github Action
- [ISSUE-457](https://github.com/dailymotion/tartiflette/issues/457) - Add a `coerce_list_concurrently` parameter to `create_engine`, `Engine.__init__` & `Engine.cook` to control whether or not output list should be coerced concurrently
- [ISSUE-457](https://github.com/dailymotion/tartiflette/issues/457) - Add a `concurrently` parameter to both `@Resolver` & `@Subscription` in order to control whether or not the output list of the decorated field should be coerced concurrently

## Fixed

- Fix link issue on `1.2.0` changelog (thanks [@mkniewallner](https://github.com/mkniewallner))
- Fix year reference for `1.2.0` changelog (thanks [@garyd203](https://github.com/garyd203))
- Improve documentation (thanks [@dkbarn](https://github.com/dkbarn))
- Fix `README.md` typo (thanks [@mazzi](https://github.com/mazzi))
- Add clarification on the breaking change on output list coercion introduced with the `1.2.0` version (thanks [@garyd203](https://github.com/garyd203))
- [ISSUE-457](https://github.com/dailymotion/tartiflette/issues/457) - Output list are now coerced concurrently by default (breaking the change made on `1.2.0`)

## Changed

- Upgrade `black` from `19.10b0` to `20.8b1`
- Upgrade `isort` from `4.3.21` to `5.6.4`
- Upgrade `lark-parser` from `0.8.5` to `0.11.1`
- Upgrade `pylint` from `2.5.2` to `2.6.0`
- Upgrade `pytest-asyncio` from `0.12.0` to `0.14.0`
- Upgrade `pytest-cov` from `2.8.1` to `2.10.1`
- Upgrade `pytest-xdist` from `1.32.0` to `2.1.0`
- Upgrade `pytest` from `5.4.1` to `6.1.2`
3 changes: 3 additions & 0 deletions docs/api/engine.md
Expand Up @@ -80,6 +80,7 @@ The `create_engine` function provides an advanced interface for initialization.
* `query_cache_decorator` _(Optional[Callable])_: callable that will replace the tartiflette default lru_cache decorator to cache query parsing
* `json_loader` _(Optional[Callable[[str], Dict[str, Any]]])_: a Callable that will replace python built-in `json.loads` when Tartiflette will transform the json-ast of the query into a dict useable by the execution algorithm. ([more detail here](#parameter-json_loader))
* `custom_default_arguments_coercer` _(Optional[Callable])_: callable that will replace the tartiflette `default_arguments_coercer`
* `coerce_list_concurrently` _(Optional[bool])_: determine whether or not output list are coerced concurrently by default

#### Parameter: `error_coercer`

Expand Down Expand Up @@ -365,6 +366,7 @@ async def cook(
query_cache_decorator: Optional[Callable] = UNDEFINED_VALUE,
json_loader: Optional[Callable[[str], Dict[str, Any]]] = None,
custom_default_arguments_coercer: Optional[Callable] = None,
coerce_list_concurrently: Optional[bool] = None,
schema_name: str = None,
) -> None:
pass
Expand All @@ -378,4 +380,5 @@ async def cook(
* `query_cache_decorator` _(Optional[Callable])_: callable that will replace the tartiflette default lru_cache decorator to cache query parsing
* `json_loader` _(Optional[Callable[[str], Dict[str, Any]]])_: a Callable that will replace python built-in `json.loads` when Tartiflette will transform the json-ast of the query into a dict useable by the execution algorithm. ([more detail here](#parameter-json_loader))
* `custom_default_arguments_coercer` _(Optional[Callable])_: callable that will replace the tartiflette `default_arguments_coercer`
* `coerce_list_concurrently` _(Optional[bool])_: determine whether or not output list are coerced concurrently by default
* `schema_name` _(str = "default")_: name of the schema represented by the provided SDL ([more detail here](./schema-registry.md))
1 change: 1 addition & 0 deletions docs/api/resolver.md
Expand Up @@ -21,6 +21,7 @@ async def my_hello_resolver(parent, args, context, info):
* `schema_name` _(str = "default")_: name of the schema to which link the resolver
* `type_resolver` _(Optional[Callable] = None)_: the callable to use to resolve the type of an abstract type
* `arguments_coercer` _(Optional[Callable] = None)_: callable to use to coerce field arguments
* `concurrently` _(Optional[bool] = None)_: determine whether or not the output list of the decorated field should be coerced concurrently

The `arguments_coercer` parameter is here to provide an easy way to override the default callable used internaly by Tartiflette to coerce the arguments of the field. It has the same behaviour as the `custom_default_arguments_coercer` parameter at engine initialisation but impact only the field.

Expand Down
1 change: 1 addition & 0 deletions docs/api/subscription.md
Expand Up @@ -96,6 +96,7 @@ async def subscribe_subscription_launch_and_wait_cooking_timer(
* `name` _(str)_: fully qualified field name to resolve
* `schema_name` _(str = "default")_: name of the schema to which link the subscription
* `arguments_coercer` _(Optional[Callable] = None)_: callable to use to coerce field arguments
* `concurrently` _(Optional[bool] = None)_: determine whether or not the output list of the decorated field should be coerced concurrently

The `arguments_coercer` parameter is here to provide an easy way to override the default callable used internaly by Tartiflette to coerce the arguments of the field. It has the same behaviour as the `custom_default_arguments_coercer` parameter at engine initialisation but impact only the field.

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -60,7 +60,7 @@ def run(self):

_BENCHMARK_REQUIRE = ["pytest-benchmark==3.2.3"]

_VERSION = "1.2.1"
_VERSION = "1.3.0"

_PACKAGES = find_packages(exclude=["tests*"])

Expand Down

0 comments on commit 20cb0d6

Please sign in to comment.