Skip to content

[FEAT] Support upto Federation v2.7 #27

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

Merged
merged 39 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
13faef1
Merge pull request #11 from graphql-python/main
abhinand-c Jun 13, 2023
24071dc
Bug Fix: Avoid schema rebuilding if provided as argument
arunsureshkumar Dec 10, 2023
cadcb11
Bug Fix: Typing
arunsureshkumar Dec 10, 2023
ccd7d89
Fix: Lint Error
arunsureshkumar Dec 10, 2023
681455a
Bug Fix: build_schema
arunsureshkumar Dec 10, 2023
d8509cc
Bug Fix: build_schema
arunsureshkumar Dec 10, 2023
d00547a
fix(SDL): Cleans type annotation spacing and removed extra spacing
abhinand-c Dec 29, 2023
c76e9a5
feat(utils): Add helper function for cleaning schema and removing red…
abhinand-c Dec 29, 2023
26d5d85
fix(tests): Refactor code using dedent and clean_schema helper, uses …
abhinand-c Dec 29, 2023
859ce3b
style(Lint): Format using black
abhinand-c Dec 29, 2023
11cf30d
feat(federation): Support for specifying specific federation version
abhinand-c Dec 29, 2023
90811f1
feat(Compose Directive): Add support for Compose Directive, and allow…
abhinand-c Jan 1, 2024
666e5ce
fix(Schema): Entities recursion error fixed
abhinand-c Jan 3, 2024
70109a9
fix: black styling
mak626 Jan 5, 2024
059dc4b
fix: when @requires is used, resolvers receive dict of fields instead…
mak626 Jan 5, 2024
fe3ce00
fix: graphene-federation does not work without directives in federati…
mak626 Jan 5, 2024
6f26780
fix: schema spacing errors
mak626 Jan 7, 2024
c404530
fix: @requires type resolution errors
mak626 Jan 8, 2024
8639fea
fix: enum types not allowed in @key
mak626 Jan 8, 2024
a25e2a3
feat: support @external on OBJECT type
mak626 Jan 10, 2024
ca4fac8
feat: add support for federation-v2.3 using graphene-directives
mak626 Jan 13, 2024
9210be6
deprecate: extends
mak626 Jan 14, 2024
1cd59b8
add: support upto 2.6 spec
mak626 Jan 14, 2024
feb2a59
refact: is_non_field check
mak626 Jan 15, 2024
53f71eb
refact: relative imports to absolute imports
mak626 Jan 16, 2024
8953909
add: validators for @provides
mak626 Jan 16, 2024
3008549
chore: make dev-setup
mak626 Jan 16, 2024
528a4f5
docs: add documentation
mak626 Jan 16, 2024
18ae1d3
support: custom field names
mak626 Jan 16, 2024
db3b015
docs: update readme
mak626 Jan 16, 2024
7c16a4a
docs: add rover support upto 2.5v issue
mak626 Jan 16, 2024
cc03581
refact: add description for scalars
mak626 Jan 16, 2024
7eb319b
fix: coveralls testing suite
mak626 Jan 16, 2024
436eb88
refact: FederationDirective -> ComposableDirective
mak626 Jan 18, 2024
e4a69ed
deprecated: enable_federation_2 in favour of federation_version
mak626 Jan 19, 2024
99904a6
feat: add support for federation v2.7
mak626 Mar 8, 2024
06c5e1e
feat: Added type conversion when using @requires
mak626 Mar 22, 2024
bee1ded
fix: incorrect @sharable definition in federation v2.2
mak626 Apr 22, 2024
9fc3391
fix: @sharable is applied multiple times on PageInfo in multithreaded…
mak626 Apr 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Unit Tests
on: [push, pull_request]

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v1
Expand All @@ -21,10 +21,25 @@ jobs:
python -m pip install --upgrade pip
pip install -e ".[test]"
- name: Run Unit Tests
run: py.test graphene_federation --cov=graphene_federation -vv
- name: Upload Coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: py.test tests --cov=graphene_federation -vv
- name: Upload coverage
run: |
pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true

coveralls:
name: Indicate completion to coveralls.io
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ integration-tests: ## Run integration tests
# -------------------------

dev-setup: ## Install development dependencies
docker-compose up -d && docker-compose exec graphene_federation bash
docker-compose up --build -d
.PHONY: dev-setup

tests: ## Run unit tests
docker-compose run graphene_federation py.test graphene_federation --cov=graphene_federation -vv
docker-compose run graphene_federation py.test tests --cov=graphene_federation -vv
.PHONY: tests

check-style: ## Run linting
Expand Down
Loading
Loading