Commit 8b5e1e7
Federation v2 support added (#4)
* Federation v2 support added
* Minor fix in link
* Minor fix in @provides
* Minor fix in @keys
* Revert patch in @keys
* Remove Print
* add override @OverRide to @link
* fix @link
* fix @link
* fix @link
* Test case passed
* Add @key (multi) support
* Fix Test Cases
* Fix Test Cases
* Fix Lint Error
* Update README.md
* Fix Lint Error
* Multi fields support @extend
* Federation v2 support added
* Minor fix in link
* Minor fix in @provides
* Minor fix in @keys
* Revert patch in @keys
* Remove Print
* add override @OverRide to @link
* fix @link
* fix @link
* fix @link
* Test case passed
* Add @key (multi) support
* Fix Test Cases
* Fix Test Cases
* Fix Lint Error
* Update README.md
* Fix Lint Error
* Multi fields support @extend
* Fix Lint error
* mark PageInfo @Shareable
* Refactor: @OverRide directive argument renamed to from_
* Add: resolvable argument to @key directive
* WIP: Toggle for federation v2
* Fix: correct resolvable attribute of entity
* Fix: correct entity set building
Add: federation v2 arg to test cases
* Fix: resolvable argument addition to schema
* Refactor: Correct docstrings
* Add: enable_federation_2 to examples
* Add: test case for compound keys
Refactor: Docstring and checks in inaccessible directive
* Fix: Lint issues
* Fix: Remove duplicated definition of User type in test_key
* Add: Compound key validation
* Add: test for compound keys
* Docs: Correct known issues in readme as compound keys are now working
* Fix: lint
* Update graphene_federation/shareable.py
fix documentation
Co-authored-by: Patrick Arminio <[email protected]>
* Update graphene_federation/inaccessible.py
remove the usage of builtin
Co-authored-by: Patrick Arminio <[email protected]>
* Fix: Correct output comments in examples
* Fix: Use graphene_type._meta.fields for getting valid fields in type
* Fix: Add resolvable argument only for federation v2
* Refactor: Rename variable Type to type_
* Doc: Correct comment
* Remove: unused _shareable list in shareable.py
* Lint: service.py
* Add: utility function get_attributed_fields
* Add: tests for federation v1
* LInt: fix lint error
* Fix: optimise imports
* Change: implementation of utility function is_valid_compound_key optimised
* Change: combined logic for adding _inaccessible attribute to fields and types
* Change: Compound key validation logic using graphql core parse()
* Fix: Auto camelcase field names if enabled in schema
* Add: Advanced test cases for Compound keys
* Lint test_key.py
* Support @inaccessible on graphene Interface
* Fix: Lint Error
* Fix: Gateway Dockerfile build error
* Add Support: @inaccessible & @Shareable to graphene.Union
* Update: Dependencies, Dockerfile
Fix: Lint Error
Passed: Test Cases
* Add: Test case for @Shareable & @inaccessible
* Fix: Lint Error
---------
Co-authored-by: Arun Suresh Kumar <[email protected]>
Co-authored-by: Adarsh Divakaran <[email protected]>
Co-authored-by: Patrick Arminio <[email protected]>1 parent a68d491 commit 8b5e1e7
File tree
44 files changed
+3439
-7520
lines changed- examples
- graphene_federation
- tests
- integration_tests
- gateway
- service_a
- service_b
- service_c
- service_d
- tests/tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+3439
-7520
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
12 | 27 | | |
13 | 28 | | |
14 | 29 | | |
| |||
24 | 39 | | |
25 | 40 | | |
26 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
27 | 50 | | |
28 | 51 | | |
29 | 52 | | |
| |||
83 | 106 | | |
84 | 107 | | |
85 | 108 | | |
86 | | - | |
| 109 | + | |
87 | 110 | | |
88 | 111 | | |
89 | 112 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 113 | | |
94 | | - | |
95 | | - | |
96 | 114 | | |
97 | | - | |
| 115 | + | |
98 | 116 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
104 | 130 | | |
105 | | - | |
| 131 | + | |
| 132 | + | |
106 | 133 | | |
107 | | - | |
| 134 | + | |
108 | 135 | | |
109 | 136 | | |
0 commit comments