From 82abdd317e8f8fcc1e5ffd4695f9708eea297cc1 Mon Sep 17 00:00:00 2001 From: Noelle Leigh <5957867+noelleleigh@users.noreply.github.com> Date: Mon, 31 Oct 2022 07:27:56 -0400 Subject: [PATCH 1/5] README: Add PyPI badge --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 6328c4f..feb18e7 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,13 @@ Federation support for ![Graphene Logo](http://graphene-python.org/favicon.png) [Graphene](http://graphene-python.org) following the [Federation specifications](https://www.apollographql.com/docs/apollo-server/federation/federation-spec/). +[![PyPI version][pypi-image]][pypi-url] [![Unit Tests Status][unit-tests-image]][unit-tests-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Integration Tests Status][integration-tests-image]][integration-tests-url] +[pypi-image]: https://badge.fury.io/py/graphene-federation.svg +[pypi-url]: https://pypi.org/project/graphene-federation/ [unit-tests-image]: https://github.com/graphql-python/graphene-federation/workflows/Unit%20Tests/badge.svg?branch=main [unit-tests-url]: https://github.com/graphql-python/graphene-federation/actions?query=workflow%3A"Unit+Tests" [coveralls-image]: https://coveralls.io/repos/github/graphql-python/graphene-federation/badge.svg?branch=main From 876bbb336011ae9a153624bd2fb11722bbf3e094 Mon Sep 17 00:00:00 2001 From: Noelle Leigh <5957867+noelleleigh@users.noreply.github.com> Date: Mon, 31 Oct 2022 07:28:19 -0400 Subject: [PATCH 2/5] README: Fix Apollo Federation spec URL --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index feb18e7..eba8b98 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # graphene-federation -Federation support for ![Graphene Logo](http://graphene-python.org/favicon.png) [Graphene](http://graphene-python.org) following the [Federation specifications](https://www.apollographql.com/docs/apollo-server/federation/federation-spec/). +Federation support for ![Graphene Logo](http://graphene-python.org/favicon.png) [Graphene](http://graphene-python.org) following the [Apollo Federation specifications](https://www.apollographql.com/docs/federation/subgraph-spec). [![PyPI version][pypi-image]][pypi-url] [![Unit Tests Status][unit-tests-image]][unit-tests-url] From 29321c830b8885cece5dae1b6c33f5e880ff4371 Mon Sep 17 00:00:00 2001 From: Noelle Leigh <5957867+noelleleigh@users.noreply.github.com> Date: Mon, 31 Oct 2022 07:30:01 -0400 Subject: [PATCH 3/5] README: Fix compound key URL --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eba8b98..3090aac 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ There is also a cool [example](https://github.com/preply/graphene-federation/iss ## Known issues 1. decorators will not work properly on fields with custom names for example `some_field = String(name='another_name')` -1. `@key` decorator will not work on [compound primary key](https://www.apollographql.com/docs/federation/entities/#defining-a-compound-primary-key) +1. `@key` decorator will not work on [compound primary key](https://www.apollographql.com/docs/federation/entities-advanced/#compound-keys) ------------------------ From c0295acbdbece2194def8dcaae0cc9f1facd3027 Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 5 Dec 2022 18:35:45 +0000 Subject: [PATCH 4/5] fix: raw string usage in regex (#7) Co-authored-by: Laurent Riviere --- graphene_federation/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_federation/service.py b/graphene_federation/service.py index 3c40da6..acfd29d 100644 --- a/graphene_federation/service.py +++ b/graphene_federation/service.py @@ -36,7 +36,7 @@ def convert_fields(schema: Schema, fields: list[str]) -> str: def field_to_string(field) -> str: str_field = print_fields(field) # Remove blocks added by `print_block` - block_match = re.match(" \{\n(?P.*)\n\}", str_field, flags=re.DOTALL) + block_match = re.match(r" \{\n(?P.*)\n\}", str_field, flags=re.DOTALL) if block_match: str_field = block_match.groups()[0] return str_field From 00befde9e386bc29f0782edd26dbbc73a1fe3d20 Mon Sep 17 00:00:00 2001 From: Erik Wrede Date: Mon, 5 Dec 2022 19:38:54 +0100 Subject: [PATCH 5/5] patch: release 3.0.2 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 86b2f74..845595a 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() -version = '3.0.1' +version = '3.0.2' tests_require = [ "pytest==7.1.2",