You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Intermediate commit, not functional.
* Don't abort context retrieval on falsy path elements.
* Removed all implicit language contexts.
* Contextual language negotiation.
* Enforcing graphql language negotiation through config overrides.
* Fixing language negotiator.
* Fixed negotiation.
* Ignore language cache contexts.
* Added upgrade instructions for languages.
* Docs fix.
* Fix to also work without language module enabled.
* Fixed wrong return, has to be yield.
* Added core 8.5 tests.
* Docs fix.
* Moved contextual language to service.
* Travis debug.
* Removed travis debug.
* Renamed test class according to file.
* More tests and resulting fixes.
* Simplified language context.
* Explicit callable execution.
* More fine grained tests.
* Test negotiator initialization result.
* Test cleanup.
* Test disable negotiator fix.
* Debugging ...
* Debugging ...
* Debugging ...
* Debugging ...
* Check negotiator instance.
* Changed module initialization order.
* Depending on language module.
* Revert "Depending on language module."
This reverts commit f8df099
* Revert "Changed module initialization order."
This reverts commit bbaa77f
* Proper service provider classname.
* Properly injecting the language context.
* Annotation style fixes.
* Revert "Properly injecting the language context."
This reverts commit c358b53
* Real setter injection.
* Moved property to top.
* Use language cache contexts to conditionally set the graphql language context.
* Enabled multilingual features for all tests to catch potential context leaks.
* Ignore language contexts when creating the cache key.
* Reproducing leaking translation context.
* Add language_content cache context to RouteEntity since the access
handler emits it for some reason.
* Fixed exception expectation.
Copy file name to clipboardexpand all lines: doc/upgrade/beta6.md
+27
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,33 @@
2
2
## Schema changes
3
3
These changes affect you if you are using the schema automatically generated by the `graphql_core` module.
4
4
5
+
6
+
### Language handling
7
+
8
+
Multilingual queries changed drastically. The endpoints language negotiation is ignored entirely, instead all language handling is left to the query and its arguments. A couple of fields accept a "language" argument, and whenever this argument is filled explicitly, it's value will be inherited to subsequent occurrences. The `route` field will set this context implicitly from the paths language prefix.
9
+
10
+
```graphql
11
+
query {
12
+
route(path: "/node/1") {
13
+
...onEntityCanonicalUrl {
14
+
entity {
15
+
# Will emit the default language.
16
+
entityLabel
17
+
}
18
+
}
19
+
}
20
+
route(path: "/fr/node/1") {
21
+
...onEntityCanonicalUrl {
22
+
entity {
23
+
# Will emit the french translation.
24
+
entityLabel
25
+
}
26
+
}
27
+
}
28
+
}
29
+
30
+
```
31
+
5
32
### Url Interfaces
6
33
The type structure of the `Url` object changed. While before there have been just the `InternalUrl` and `ExternalUrl` types, the `InternalUrl` has become an interface that can resolve to different Url types, depending on the underlying route. The `DefaultInternalUrl` has the fields for context resolving and other generic rout information. The `EntityCanonicalUrl` has access to the underlying entity.
0 commit comments