instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
strawberry-graphql__strawberry-django__805 | strawberry-graphql/strawberry-django | 805 | defect | f9ca00836c23da0ea7f3e362e5c0d91663155ad8 | 4aca7e05f0e3aea24e603048757557febf5dc464 | feat: add support for strawberry.Maybe type in mutations and filter processing | ## Description
This PR adds support for the `strawberry.Maybe` type in the Django filter processing code, addressing issue #753.
## Changes
- Updated `resolve_value()` function in `strawberry_django/filters.py` to detect and handle `strawberry.Maybe` instances
- Added comprehensive test coverage for Maybe typ... | diff --git a/strawberry_django/filters.py b/strawberry_django/filters.py
index 60d193a02..88bb4485c 100644
--- a/strawberry_django/filters.py
+++ b/strawberry_django/filters.py
@@ -122,6 +122,19 @@ def resolve_value(value: Any) -> Any:
if isinstance(value, list):
return [resolve_value(v) for v in value]
... | 7 | 6 | 0 | [{"id": "G0", "claim": "Add a test with a list containing nested Maybe instances, such as [Maybe(value=Maybe(value=\"foo\")), Maybe(value=None)], to verify resolve_value correctly handles nested Maybes.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Con... | null |
strawberry-graphql__strawberry-django__813 | strawberry-graphql/strawberry-django | 813 | defect | 315c706d826f6f1bbd76a7925577d4b6388a156b | 414b1443aedf8f89d1c7b082427cfccb2d286cb3 | Comprehensively document ecommerce example with production patterns and testing | ## Comprehensive Review and Improvements to E-commerce Example
Based on thorough review against modern Python/Django best practices and Strawberry Django documentation (including PR #810 updates), this PR implements significant improvements to make the example more educational and production-ready.
### ✅ Completed Im... | diff --git a/examples/ecommerce_app/README.md b/examples/ecommerce_app/README.md
index 8938caca1..a2533fa31 100644
--- a/examples/ecommerce_app/README.md
+++ b/examples/ecommerce_app/README.md
@@ -1,20 +1,34 @@
# E-commerce Example
-An example GraphQL API demonstrating Strawberry Django features and best practices t... | 4 | 3 | 1 | [{"id": "G0", "claim": "A hardcoded username/password was detected in examples/ecommerce_app/tests/conftest.py and should be investigated and remediated.", "category": "security", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Import the models directly at module level instead ... | null |
strawberry-graphql__strawberry-django__829 | strawberry-graphql/strawberry-django | 829 | defect | dd8e8a442b929725b21ad2b69e69cc1880aea0b7 | c1182af3c1209e1f1a06d019822ec0a46034f15d | feat: Add string-based lookups for UUID fields | ## Description
Fix filters for UUID fields.
## Types of Changes
- [x] Core
- [x] Bugfix
- [ ] New feature
- [x] Enhancement/optimization
- [ ] Documentation
## Issues Fixed or Closed by This PR
* Unable to filter by part of UUID, appears exception that UUID is expected when when filter `contains` or... | diff --git a/strawberry_django/fields/filter_types.py b/strawberry_django/fields/filter_types.py
index bd6e290ab..fb2499c4b 100644
--- a/strawberry_django/fields/filter_types.py
+++ b/strawberry_django/fields/filter_types.py
@@ -82,6 +82,37 @@ class FilterLookup(BaseFilterLookup[T]):
)
+@strawberry.input
+clas... | 4 | 1 | 0 | [{"id": "G0", "claim": "By making StrFilterLookup inherit from BaseFilterLookup instead of FilterLookup, the PR drops existing lookups like exact, inList, comparisons and isnull for str and uuid.UUID fields; it should inherit from FilterLookup[T] and only add the string-specific fields to avoid the regression.", "categ... | null |
strawberry-graphql__strawberry-django__847 | strawberry-graphql/strawberry-django | 847 | defect | 92a0f83921b6677f43e012145ca022a46fffa752 | 0b5efb7dededf203796cba50c2bf0a8f2291bbbc | feat: implement pagination max limit setting | Fix #846
## Summary by Sourcery
Introduce a configurable maximum pagination limit and ensure it is enforced across offset and window pagination.
New Features:
- Add PAGINATION_MAX_LIMIT setting to cap the number of records clients can request via pagination.
- Support maximum pagination limits in both offset-based a... | diff --git a/docs/guide/pagination.md b/docs/guide/pagination.md
index b1b1717ab..d4ad702b3 100644
--- a/docs/guide/pagination.md
+++ b/docs/guide/pagination.md
@@ -69,6 +69,27 @@ The default limit for pagination is set to `100`. This can be changed in the
[strawberry django settings](./settings.md) to increase or dec... | 3 | 3 | 2 | [{"id": "G0", "claim": "The parametrized cases for test_pagination_max_limit always pass a limit (including null), so the UNSET/default-path — where the new apply() logic uses PAGINATION_DEFAULT_LIMIT and then enforces PAGINATION_MAX_LIMIT — is never covered; add a case that omits the limit argument entirely with PAGIN... | null |
strawberry-graphql__strawberry-django__848 | strawberry-graphql/strawberry-django | 848 | defect | e6a2ea9b77a4c6045175206763d91d3cf095ab84 | 0d2e8ee2b84f6be505a40f483744087651394700 | fix: sync pageInfo.limit with effective pagination limit | Related to #846
## Summary by Sourcery
Align pagination metadata with the effective limit applied and clarify limit handling defaults.
Bug Fixes:
- Ensure pageInfo.limit reflects the effective pagination limit after applying defaults and max caps instead of the raw requested value.
- Treat null pagination limits con... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 000000000..c8b4558ea
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,39 @@
+---
+release-type: patch
+---
+
+Pagination `pageInfo.limit` now returns the actual limit applied (after defaults and max caps), not the raw request value.
+
+For example, with `PAGINATI... | 5 | 4 | 0 | [{"id": "G0", "claim": "The new test_page_info_reflects_effective_limit parametrization should add rows covering None with both max_limit and default_limit unset, UNSET without a default (with and without max), and negative requested limits, to pin down _get_effective_limit's contract.", "category": "testing", "verdict... | null |
strawberry-graphql__strawberry-django__854 | strawberry-graphql/strawberry-django | 854 | defect | 00ce174453c1029fa1efb449083995a65fcb4e50 | f4dfab7c64557f7df4a0ed642b73e791194d0640 | fix: forward args to offset paginated extensions | Ensure offset pagination passes pagination/order/filters through the extension chain and safely strips unsupported args from resolvers so extensions can inspect inputs consistently with connection fields.
Fix #853
## Summary by Sourcery
Ensure offset-paginated Django fields forward pagination, ordering, and filter... | diff --git a/strawberry_django/fields/field.py b/strawberry_django/fields/field.py
index 5295f7de7..b570a891e 100644
--- a/strawberry_django/fields/field.py
+++ b/strawberry_django/fields/field.py
@@ -149,8 +149,8 @@ def __copy__(self) -> Self:
return new_field
@cached_property
- def _need_remove_fil... | 2 | 2 | 1 | [{"id": "G0", "claim": "In the offset-paginated resolve implementation, pagination, order, and filters should not already be present in kwargs before being passed explicitly to next_, since a future call site that includes these keys in **kwargs may cause a conflict or TypeError.", "category": "correctness", "verdict":... | null |
strawberry-graphql__strawberry-django__866 | strawberry-graphql/strawberry-django | 866 | defect | c47a875ff558385d05ea83fd1e21f9efcab6dc4b | d19d0456551b976e3cb03a21332f8aebe3fb98f1 | fix(schema): ensure Info type resolution for strawberry-graphql >=0.296.0 | Fixes #865
<!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Types of Changes
<!--- ... | diff --git a/strawberry_django/auth/mutations.py b/strawberry_django/auth/mutations.py
index 444bdef3d..2aa123ab7 100644
--- a/strawberry_django/auth/mutations.py
+++ b/strawberry_django/auth/mutations.py
@@ -8,6 +8,7 @@
from django.contrib import auth
from django.contrib.auth.password_validation import validate_pass... | 1 | 1 | 0 | [{"id": "G0", "claim": "Create a RELEASE.md file so the pull request can be released when merged.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strawberry-graphql__strawberry-django__870 | strawberry-graphql/strawberry-django | 870 | defect | 9b1655fbaf361ada93add2a5d8e9ed778af9bd3c | bb13309abbaf66fdef765d43638fd37620e16aae | feat: support strawberry-graphql 0.307.0+ | ## Summary
- Replace removed `graphiql` parameter with `graphql_ide` in example app (removed in strawberry 0.292.0)
- Replace removed `LazyType["Name", "module"]` bracket syntax with `Annotated["Name", strawberry.lazy("module")]` in test schema (removed in 0.304.0)
- Replace removed `EnumDefinition` alias with `Strawb... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 000000000..9f0b6314e
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,7 @@
+---
+release type: patch
+---
+
+Add support for strawberry-graphql 0.307.x.
+
+Also, the deprecated `asserts_errors` parameter on `AsyncTestClient.query()` has been removed. Use `assert_... | 1 | 1 | 1 | [{"id": "G0", "claim": "The release note states that the deprecated `asserts_errors` parameter was removed from `AsyncTestClient.query()` only, but the changes also removed it from `GraphQLTestClient.query()` in tests/utils.py, so the note should be updated to accurately cover all affected test client `query()` methods... | null |
strawberry-graphql__strawberry-django__872 | strawberry-graphql/strawberry-django | 872 | defect | 364e618f9f3bedaf2437fa25c82bf2a380c848c4 | dcdaa2970c6e777a0433ee828893e289c75b5ea9 | Pass `Info` instead of `GraphQLResolveInfo` to optimizer callables | The documentation says that `Info` is passed, but this was no the case.
## Description
In some optimizing functions either an instance of `StrawberryField` as well as `GraphQLResolveInfo` are available. The PR adjust the code so when callable is passed to `prefetch_related` or `annotated` it is executed with `Inf... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 000000000..6807afd8e
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+Pass `Info` instead of `GraphQLResolveInfo` to callables provided in `prefetch_related` and `annotate` arguments of `strawberry_djanog.field`.
diff --git a/strawber... | 6 | 5 | 1 | [{"id": "G0", "claim": "Using `f_info.python_name` instead of the field's `python_name` in `_get_hints_from_model_property` is likely incorrect and may break model property lookup, because `python_name` comes from the `StrawberryField` and may not exist or differ on the `Info` object.", "category": "correctness", "verd... | null |
strawberry-graphql__strawberry-django__874 | strawberry-graphql/strawberry-django | 874 | defect | 6a8baaca81df97a44bdc37000088362f2570af29 | 5f2a4b673167663c75b30cd62d7ed099ee340f5d | feat: ensure FK field in .only() for user-provided Prefetch with optimize() | ## Summary
- When `optimize()` is called on a queryset inside a user-provided `Prefetch`, the `only` optimization excludes the FK field Django needs to match prefetched rows back to parent objects, causing N+1 queries.
- Adds FK field injection in `_apply_prefetch_related()` for all finalized Prefetch objects that hav... | diff --git a/strawberry_django/optimizer.py b/strawberry_django/optimizer.py
index 50c1e8f44..fc68d6eb7 100644
--- a/strawberry_django/optimizer.py
+++ b/strawberry_django/optimizer.py
@@ -368,6 +368,55 @@ def _apply_prefetch_related(
True,
)
+ if config.enable_only:
+ ... | 4 | 1 | 1 | [{"id": "G0", "claim": "Deriving fk_attname from relation.remote_field can be incorrect for forward FKs and some relation types, so only() may include an accessor name instead of a real column; the reviewer asks to restrict the block to reverse relations and derive the FK column from the concrete field's attname.", "ca... | null |
strawberry-graphql__strawberry-django__876 | strawberry-graphql/strawberry-django | 876 | defect | 35ee16b6a2a501709c17809a05992ab63fcf5535 | 000193320e1202a5e3508f97834284c50d307f33 | feat: add skip_queryset_filter to filter_field() for virtual fields | ## Summary
- Adds `skip_queryset_filter: bool = False` parameter to `filter_field()` that prevents the field from being applied as a Q object during filter processing
- The field remains in the GraphQL input type and is accessible via `self.<field>` in custom filter methods
- Prevents `_process_type()` from conver... | diff --git a/strawberry_django/fields/filter_order.py b/strawberry_django/fields/filter_order.py
index 7e484f031..6e036f716 100644
--- a/strawberry_django/fields/filter_order.py
+++ b/strawberry_django/fields/filter_order.py
@@ -35,6 +35,7 @@
OBJECT_ORDER_NAME: Final[str] = "order"
WITH_NONE_META: Final[str] = "WITH_... | 2 | 1 | 1 | [{"id": "G0", "claim": "SKIP_FILTER_META appears to be referenced from type.py and filters.py without new imports in the diff; double-check that those modules import the constant from fields.filter_order to avoid a NameError at runtime.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "in... | null |
strawberry-graphql__strawberry-django__880 | strawberry-graphql/strawberry-django | 880 | defect | 8eb8cc2370ae5ae8e73af9e767f1e724217be70a | a0eae14d0afc2aea0d99ffdc718cf22a6621f0ce | fix: FK _id fields in inputs now work with mutations.create() | ## Summary
- When an input type uses the FK column name (e.g. `color_id: auto`) instead of the relation name (`color: auto`), `mutations.create()` would fail with a validation error because `prepare_create_update()` didn't recognize `_id` field names
- Added FK attname mapping in `prepare_create_update()` that pass... | diff --git a/strawberry_django/mutations/resolvers.py b/strawberry_django/mutations/resolvers.py
index e4cbcde49..363b7edd4 100644
--- a/strawberry_django/mutations/resolvers.py
+++ b/strawberry_django/mutations/resolvers.py
@@ -255,6 +255,15 @@ def prepare_create_update(
"""
model = instance.__class__
f... | 6 | 4 | 2 | [{"id": "G0", "claim": "Consider including OneToOneField (and possibly other FK-like relations with attname) in the fk_attname_fields handling, not just ForeignKey, so _id handling is consistent across relation types.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
strawberry-graphql__strawberry-django__891 | strawberry-graphql/strawberry-django | 891 | defect | fce52e4c9b36b3d8e39dc88ee5e9349da1f87ea5 | 0ca1c6dd7cf06c78c564aef09aeda1477bbd7395 | feat: make StrFilterLookup work without type parameter | ## Summary
- Make `StrFilterLookup` a concrete type by inheriting `BaseFilterLookup[str]` instead of `BaseFilterLookup[T]`, so it can be used as bare `StrFilterLookup` in filter type annotations without triggering a `TypeError`
- Add `__class_getitem__` that returns `cls` so the `lookups=True` automatic path (`StrFilt... | diff --git a/strawberry_django/fields/filter_types.py b/strawberry_django/fields/filter_types.py
index bfcc730c1..902b4678d 100644
--- a/strawberry_django/fields/filter_types.py
+++ b/strawberry_django/fields/filter_types.py
@@ -94,9 +94,9 @@ def __class_getitem__(cls, item: Any) -> Any:
return super().__class... | 3 | 1 | 1 | [{"id": "G0", "claim": "Dropping the explicit name=\"FilterLookup\" from the @strawberry.input decorator renames the GraphQL input type from FilterLookup to StrFilterLookup, which may be a breaking schema change for existing clients; keep the explicit name (or an alias type) to preserve the public schema.", "category":... | null |
strawberry-graphql__strawberry-django__93 | strawberry-graphql/strawberry-django | 93 | defect | 674c7b914611e0cc798d0b9480a207220b2d3433 | f0cad7621b53aea77428ab64213b61cb4858591f | Caching Extensions using Django Cache | Implementations of Strawberry's `ParserCache` and `ValidationCache`, but using Django's cache instead of the `functools.lru_cache`
This is blocked by upgrading `strawberry-graphql` to `>=0.98.0`, since that will get us access to `graphql-core@3.2.0`, which fixes this issue https://github.com/graphql-python/graphql-c... | diff --git a/strawberry_django/extensions/__init__.py b/strawberry_django/extensions/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/strawberry_django/extensions/django_cache_base.py b/strawberry_django/extensions/django_cache_base.py
new file mode 100644
index 000000000..5b7831946
--- /dev/nul... | 4 | 4 | 1 | [{"id": "G0", "claim": "The parsing cache seems unlikely to be useful (parsing should already be faster than fetching an external resource), so only the validation cache should be kept and the parser cache dropped.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c... | null |
strawberry-graphql__strawberry__1002 | strawberry-graphql/strawberry | 1,002 | defect | 10af5aaf7265b1a3231654650149a5c25b8a836d | c237834c89bcb89bdec83fd2bd78e58e0691f5f4 | Refactor subscription implementation | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your change... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..8502f494c6
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,5 @@
+release type: patch
+
+This release fixes that the ASGI subscription implementation did not handle
+disconnecting clients properly. Additionally, the ASGI implementation has been
+inter... | 2 | 2 | 0 | [{"id": "G0", "claim": "The RELEASE.md changelog entry should be reworded to \"This release fixes the ASGI subscription implementation by handling disconnecting clients properly.\" followed by the refactoring sentence.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
strawberry-graphql__strawberry__1114 | strawberry-graphql/strawberry | 1,114 | defect | b113d3d6f6093e5cc6c19637b3a6afc02b7106ff | f2286a1e5874b779e38ed7cbaea5d9ebc035d165 | Make use of the uvicorn reload feature | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your change... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..8f451511e04
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,5 @@
+Release type: patch
+
+This release refactors the reload feature of the inbuilt debug server. The refactor
+made the debug server more responsive and allowed us to remove `hupper` fro... | 2 | 2 | 1 | [{"id": "G0", "claim": "The RELEASE.md wording should be 'built-in debug server' instead of 'inbuilt debug server', as suggested via the review suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A test should be written that checks t... | null |
strawberry-graphql__strawberry__1254 | strawberry-graphql/strawberry | 1,254 | defect | a97c96ffee9aeecbfeeec723a989f022187dc178 | 1c74740eb2cafcaf16333daae43e6794db8c754b | feat(interface): input type cannot inherit an interface type |
<!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
```python
@strawberry.int... | diff --git a/strawberry/exceptions.py b/strawberry/exceptions.py
index ce8cb8eafeb..b1b20d4f99e 100644
--- a/strawberry/exceptions.py
+++ b/strawberry/exceptions.py
@@ -176,3 +176,13 @@ def __init__(self, field_name: str, argument_name: str, argument_type: str):
message = f'Argument "{argument_name}" on field ... | 5 | 4 | 0 | [{"id": "G0", "claim": "The new tests in tests/schema/test_interface.py should also cover the actual messages of the raised errors, not just the exception type.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The f-string expressions in the new InvalidSu... | null |
strawberry-graphql__strawberry__1467 | strawberry-graphql/strawberry | 1,467 | defect | a37c0a7fdca8d0ab5e3fb9b1c8b839003b10f4c9 | 7eedb0b367e8456b8ffa36821289ebec00918c9e | Make the annotation parser aware about _Unset | ## Description
The PR makes the annotation parser aware of the `_Unset` class type inside the Union with None to allow for strict argument typing and still correctly work with strawberry's type generation.
### Why is this change needed
When specifying a union field arg like this the following:
```python
na... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..9422fcc7fe
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+This release fixes a bug in the annotation parser that prevents using strict typinh for Optional arguments which have their default set to UNSET.
diff --git a/str... | 4 | 2 | 0 | [{"id": "G0", "claim": "The new exhaustive-typing tests in tests/schema/test_arguments.py should be narrowed in scope and moved to sit with the other annotation type-resolving tests instead of going all the way to query execution.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
strawberry-graphql__strawberry__1684 | strawberry-graphql/strawberry | 1,684 | defect | 00d7e49707e382deee247fbe23e7c0a567a5bb1a | 90e222e6a377af01608c44b72673917db703ed79 | Make `strawberry.Private` compatible with PEP-563 | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
This commit Closes #1586 b... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..b792117b0e0
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,41 @@
+Release type: patch
+
+Add support for postponed evaluation of annotations
+([PEP-563](https://www.python.org/dev/peps/pep-0563/)) to `strawberry.Private`
+annotated fields.
+
+## Ex... | 6 | 5 | 2 | [{"id": "G0", "claim": "The new `_get_thunk_mapping` method needs a brief docstring documenting what it does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`_get_thunk_mapping` should pull `name_converter`/`field_converter` from `self` instead of... | null |
strawberry-graphql__strawberry__1766 | strawberry-graphql/strawberry | 1,766 | defect | f872b6ca235e54b378ebd47932bba13ad2bab525 | 521afcdaa604e1061285e9c0e81cd3f2e8daed5b | Add link from GraphQL types to Strawberry types | ## Description
I'm toying with strawberry internals, and I often need to find the links between `GraphQLType`s and their strawberry definitions.
For now I have been using `Schema.get_type_by_name(graphql_type.name)` and similar funcions, but it feels a bit clumsy.
Instead, this PR takes advantage of `GraphQLNa... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..bdb11751fd
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,9 @@
+Release type: minor
+
+Add link from GraphQL types to Strawberry types
+
+It is now straightforward to retrieve the strawberry definition that originated any GraphQL definition in the s... | 2 | 2 | 0 | [{"id": "G0", "claim": "Avoid constructing the federation query type with **kwargs-style syntax (GraphQLObjectType(**query_type_kwargs)) because it breaks type-checking; the reviewer later proposed using copy() with GraphQLObjectType.__copy__ instead.", "category": "design", "verdict": "supported", "priority": "P2", "s... | null |
strawberry-graphql__strawberry__1792 | strawberry-graphql/strawberry | 1,792 | defect | c775fd1ca0c4114f2d35dce5325576d677369b8d | 75898b939edc3a7094389102c79986e94bef7a18 | Unify single-response-requests with streaming requests on `graphql-transport-ws` |
<!--- Provide a general summary of your changes in the title above. -->
(replaces closed #1739)
Various problems with single-response-requests existed as a result of their having a separate control
path from streaming requests. Single-response-requests are really just special cases of streaming requests
that d... | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d42e96d0bc..0a3122246f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -45,7 +45,7 @@ repos:
- id: check-toml
- repo: https://github.com/psf/black
- rev: 22.1.0
+ rev: 22.3.0
hooks:
- id: black
... | 4 | 2 | 0 | [{"id": "G0", "claim": "The black version bump should be moved to a separate PR and run on all files.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The double-nested try blocks should be split into multiple methods or functions.", "category": "... | null |
strawberry-graphql__strawberry__2415 | strawberry-graphql/strawberry | 2,415 | defect | 9f403a8417d37d65b470a938d9186c73af907743 | 4649b21e34f97a47b11f32acb9eee977b3db84c8 | Fix: copy field metadata for pydantic | Adds to PR strawberry-graphql/strawberry#2190
See https://github.com/strawberry-graphql/strawberry/pull/2190#issuecomment-1358333300
<!--- Provide a general summary of your changes in the title above. -->
The addition of the `metadata` attribute for fields isn't handled for Pydantic support. This ensures that ... | diff --git a/strawberry/experimental/pydantic/object_type.py b/strawberry/experimental/pydantic/object_type.py
index ae44f93f7e6..71020e49167 100644
--- a/strawberry/experimental/pydantic/object_type.py
+++ b/strawberry/experimental/pydantic/object_type.py
@@ -92,6 +92,7 @@ def _build_dataclass_creation_fields(
... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add a RELEASE.md file describing this change, as the repository's release process requires.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the three-line RELEASE.md description with the clearer sentence: \"This rele... | null |
strawberry-graphql__strawberry__2431 | strawberry-graphql/strawberry | 2,431 | defect | feacc0f186458d138ba0231a006317cadb0b7753 | 8f9443ccd23ca79fff6d744be5263b78e394cea6 | Delay checking for query until after extensions get a chance to run | This moves the `MissingQueryError` to be raised inside `execute` or `execute_sync`, rather than within the individual view classes.
## Description
This allows an extension to insert a query during the request hook, which I've used to build a persisted query extension.
I thought about trying to design a gene... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..40cec31291
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,27 @@
+Release type: minor
+
+Support persisted query implementation via extensions.
+
+View/controller implementations no longer return HTTP 400 if no query is present
+in the request, but w... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test for the extension so the new behaviour of letting an extension set the query on the execution context is not broken in future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__2486 | strawberry-graphql/strawberry | 2,486 | defect | 67b79edc58ab41d50a053efd9e10f9c920395c2d | 6b2a6a860b3f92c415da70b11fba2d3d59dd4038 | [pre-commit.ci] pre-commit autoupdate | <!--pre-commit.ci start-->
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.225 → v0.0.230](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.225...v0.0.230)
<!--pre-commit.ci end--> | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 27042249d4..9a86d0be00 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -6,7 +6,7 @@ repos:
exclude: ^tests/codegen/snapshots/python/
- repo: https://github.com/charliermarsh/ruff-pre-commit
- rev: v0.0.225
+ r... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ruff rule that rewrote the raise statements (ValueError/Exception to TypeError) should probably be disabled instead of applied.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__2570 | strawberry-graphql/strawberry | 2,570 | defect | 3711ab5e37c947cd0a45e5e9b9d3fc48559eb9db | 160c3fbf1840793cc34448d38678cfb7d33ec147 | refactor: Permissions using Field Extensions | - feat: add field extension support
- fix: revert imports broken by pycharm
- [pre-commit.ci] auto fixes from pre-commit.com hooks
- fix: match error message on test
- chore: refactor & add RELEASE.md
- chore: make mypy happy
- feat(draft): add permission extension
<!--- Provide a general summary of your chang... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..bebb9da2935
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,36 @@
+release type: minor
+
+Adds support for a custom field using the approach specified in issue [#2168](abc).
+Field Extensions may be used to change the way how fields work and what th... | 8 | 4 | 1 | [{"id": "G0", "claim": "Checking permissions with await_maybe is expensive because of inspect.isawaitable, so non-async permissions could be wrapped into async functions during __init__ to cache them.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
strawberry-graphql__strawberry__2580 | strawberry-graphql/strawberry | 2,580 | defect | 3430d8579b59437d05d66eb997286e777f915757 | e70b8ae81c32aee278fd5e7b6e256ba90f584669 | feat: new input_mutation field | This is the input mutation functionality that I removed from the [relay implementation PR](https://github.com/strawberry-graphql/strawberry/pulls) | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..3e9d223779
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,52 @@
+Release type: minor
+
+This release adds `strawberry.input_mutation` as a way to make it easier to create
+mutations that receive a single input type called `input`, while still being ... | 10 | 9 | 3 | [{"id": "G0", "claim": "The RELEASE.md example should use `@strawberry.input_mutation`, not the `@relay.input_mutation` left over from the relay PR.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The same functionality could be achieved with the n... | null |
strawberry-graphql__strawberry__2632 | strawberry-graphql/strawberry | 2,632 | defect | 548d6124536d46de05e35232c3bce9ba1890971c | 380213e6bf8ee94448409cd52bbc3876424c62d5 | support convert directive arguement to lists | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your change... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..29f9d2975b
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+directive arguement support list type and looking up from variable
diff --git a/strawberry/extensions/directives.py b/strawberry/extensions/directives.py
index 64... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new RELEASE.md entry should be rewritten as a minor release note with the suggested wording and code example instead of the patch-type note with the typo'd one-liner.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__2744 | strawberry-graphql/strawberry | 2,744 | defect | 6ab609af636a0e2f45bcd130fb24568c97d09965 | 1abdb4fa0c412c7b5737befad0cb0cf8add8a15e | feat: support lazy references with forward references | This should make resolving `Annotated[SomeType, strawberry.lazy("some.module")]` work when using `from __future__ import annotations`.
This also means that it is important for supporting python 3.12, which will work with future annotations by default.
Fix #2504
| diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..02589f776c
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,22 @@
+Release type: minor
+
+This release adds support for properly resolving lazy references
+when using forward refs.
+
+For example, this code should now work without any issues:
+
+```py... | 4 | 3 | 1 | [{"id": "G0", "claim": "Use `eval` instead of `exec` to evaluate the annotated args of a lazy forward reference, as dynamically exec'ing built-up code makes the reviewer uneasy.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `_annotated_re` pattern's... | null |
strawberry-graphql__strawberry__2782 | strawberry-graphql/strawberry | 2,782 | defect | 4519c399d3407ae321c4abfbbd4d4cbc7978816a | dcedd58a7242803b0b862b9c065c0fac04c06606 | 2772 match annotations in pydantic schema | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
Changed the implementation... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..16f9e5693b
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+Fixing a bug in experimental.pydantic whereby Optional type annotations weren't exactly aligned between strawberry type and pydantic model.
diff --git a/strawberr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The release notes sentence should be reworded to read \"This release fixes a bug in experimental.pydantic whereby `Optional` type annotations weren't exactly aligned between strawberry type and pydantic model.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "i... | null |
strawberry-graphql__strawberry__2831 | strawberry-graphql/strawberry | 2,831 | defect | 13f6a4dfcfe8ad97d917aaf855b4d959cac240bb | a8d2e0c60db9599780b7365b9dc1648f1e269c69 | Allow a mutation query to utilize object arguments in codegen | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
The current codegen chokes... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..a5a1b7098f4
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,6 @@
+Release type: patch
+
+This release fixes a bug where codegen would fail on mutations that have object arguments in the query.
+
+Additionally, it does a topological sort of the types... | 1 | 1 | 0 | [{"id": "G0", "claim": "The generated class name in the Python codegen test snapshot should be capitalized (AddBlogPostsResultAddBlogPostsPosts instead of addBlogPostsResultAddBlogPostsPosts).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__2875 | strawberry-graphql/strawberry | 2,875 | defect | dc53db423f8dd796a401f962a1171a3eac8a7f95 | 80201284519e6e432703ff09241e23fb165e5935 | Plumb the GraphQL typename through to clients if known. | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
Issue #2874 does a pretty ... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..2b0e93bdb4e
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,5 @@
+Release type: patch
+
+This release gives codegen clients the ability to inquire about the `__typename`
+of a `GraphQLObjectType`. This information can be used to automatically selec... | 3 | 3 | 0 | [{"id": "G0", "claim": "RELEASE.md should declare the release type as minor rather than patch because this pull request adds a new feature.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code should use getattr instead of contextlib.suppress(A... | null |
strawberry-graphql__strawberry__2886 | strawberry-graphql/strawberry | 2,886 | defect | 3487d191e647daacc208b4ebe6ded29554cf6ef1 | a234ee1ef07e18039e2f477683a9f8adffd977f2 | Upgrade command | This PR introduces an upgrade command, it works like this:
```
strawberry upgrade annotated-union .
```
In future we'll allow to run all codemods at once 😊 | diff --git a/pyproject.toml b/pyproject.toml
index 1aa8bbb199..598f48400b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -338,6 +338,7 @@ src = ["strawberry", "tests"]
"tests/federation/printer/*" = ["E501"]
"tests/test_printer/test_basic.py" = ["E501"]
"tests/pyright/test_federation.py" = ["E501"]
+"tests/code... | 6 | 5 | 1 | [{"id": "G0", "claim": "The upgrade command still needs the ability to pass multiple paths (it currently accepts only a single path).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The codemod only matches strawberry.union(...) attribute calls; it should... | null |
strawberry-graphql__strawberry__2911 | strawberry-graphql/strawberry | 2,911 | defect | be5f8c60c94eb3962d94fbcd71338e1084d17c15 | 0fbf48d3c3b9953affe745a1406d30bd6a0a3ffc | Allow codegen to process multiple query files in a single command | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
#2828 hopefully does a goo... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..8f4c4352093
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,22 @@
+Release type: minor
+
+`strawberry codegen` can now operate on multiple input query files.
+The previous behavior of naming the file `types.js` and `types.py`
+for the builtin `types... | 4 | 3 | 1 | [{"id": "G0", "claim": "The backwards-compatibility shenanigans in `_load_plugins` (injecting `query`/`query_file` into plugin `__init__` by parameter name plus the `hasattr` fallback) should be dropped, since it is fine to break compatibility for custom plugins and note it in the breaking-changes file.", "category": "... | null |
strawberry-graphql__strawberry__2989 | strawberry-graphql/strawberry | 2,989 | defect | 5c68c7e4773776d8974b76c823b01053d1f0395b | d2718c359fdea19e791aaebd236504e334829557 | Add support for returning interfaces directly in resolvers | This PR add support for returning interfaces directly inside resolvers, for example:
```python
@strawberry.interface
class Node:
id: strawberry.ID
@classmethod
def resolve_type(cls, obj: Any, *args: Any, **kwargs: Any) -> str:
return "Video" if obj.id == "1" else "Image"
@strawberry.... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..39cb65e139
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,33 @@
+Release type: minor
+
+This release adds support for returning interfaces directly in resolvers:
+
+```python
+@strawberry.interface
+class Node:
+ id: strawberry.ID
+
+ @classme... | 1 | 1 | 0 | [{"id": "G0", "claim": "Move the possible_types calculation out of the is_type_of closure so it is not repeatedly calculated on every call.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__3006 | strawberry-graphql/strawberry | 3,006 | defect | 2c41d7ef6e5b62ea9e499cb0747d297415dc7993 | c3e7c3667b4959d1fd6244b7344e9f1ab7a7ae6e | Allow null payload in ws | We were rejecting payloads that had an explicit null value, while they are supported in the Protocol:
https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md#connectionack | diff --git a/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py b/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py
index 90c41e7e93..7207cd0dc1 100644
--- a/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py
+++ b/strawberry/subscriptions/protocols/graphql_transport_... | 4 | 2 | 0 | [{"id": "G0", "claim": "In test_close_twice, the author asks bellini666 whether setting the payload to 1 to force a close is the right approach, flagging it with a TODO.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should make it more specific ... | null |
strawberry-graphql__strawberry__3033 | strawberry-graphql/strawberry | 3,033 | defect | 4eb629ebc99f1ddfa82fa7ff0f2f369f1d3b5112 | 05ac30b13d62d9733759578ed950d5321ab5f162 | feat: add output file for `export-schema` | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
See #3032 for motivation
... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..d35e3c8702
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: minor
+
+Adds a new flag to `export-schema` command, `--output`, which allows the user to specify the output file. If unset (current behavior), the command will continue t... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add `-o` as a short version of the `--output` option.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two-line write block can be replaced by the single call `Path(output).write_text(schema_text)`.", "category": "maintainabilit... | null |
strawberry-graphql__strawberry__3050 | strawberry-graphql/strawberry | 3,050 | defect | 579a1d04fb561ebe2f3fbf0023f3401842e200f7 | b7162baef513f31ac0320f11d80324011b1a79e8 | Handle UNSET values in the strawberry schema. | The codegen currently chokes on `strawberry.UNSET` default values. This PR updates the codegen to stop raising an exception and instead pass a `GraphQLNullValue(value=UNSET)` to the plugins. The default python plugin writes a `None` as the default value because there really isn't a well understood concept of `UNSET` ... | diff --git a/strawberry/codegen/plugins/python.py b/strawberry/codegen/plugins/python.py
index 3ad598b857b..41b17d45437 100644
--- a/strawberry/codegen/plugins/python.py
+++ b/strawberry/codegen/plugins/python.py
@@ -10,6 +10,7 @@
GraphQLEnum,
GraphQLEnumValue,
GraphQLList,
+ GraphQLNullValue,
Gr... | 2 | 1 | 0 | [{"id": "G0", "claim": "The pull request needs a RELEASE.md changelog file before merge.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The generated TypeScript type should perhaps use `null` instead of `undefined` for the UNSET-defaulted `age` fi... | null |
strawberry-graphql__strawberry__3093 | strawberry-graphql/strawberry | 3,093 | defect | 2b9a87b91bd17165dfe65dc074c06392df9f2cb2 | 013becf194083c17f07356ffc3b3d9d1c6cb46bb | Remove deprecated `ignore` argument from `QueryDepthLimiter` | ## Description
This change removes the deprecated `ignore` argument from the `QueryDepthLimiter` extension.
## Types of Changes
- [ ] Core
- [ ] Bugfix
- [ ] New feature
- [X] Enhancement/optimization
- [ ] Documentation
## Checklist
- [X] My code follows the code style of this project.
- [X] My c... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..011b45f529
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+Only raise deprecation warning in QueryDepthLimiter if `ignore` parameter is passed in.
diff --git a/strawberry/extensions/query_depth_limiter.py b/strawberry/ext... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `else:` branch wrapping `if ignore is not None:` that the pull request adds should be written as an `elif`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The deprecated `ignore` argument, deprecated for a while now, ... | null |
strawberry-graphql__strawberry__3101 | strawberry-graphql/strawberry | 3,101 | defect | 1171e7fc1ce14455571b8e062a321389a9ea8b43 | c2764263dca36503025fcb896fb3cd5446c0a988 | Add support for more builtin pydantic v2 types | # Description
Previously when using Pydantic v2 there were several builtin pydantic types that were not supported like `EmailStr` or `PostgresDsn`. In this PR, I am adding support for several of these built in types. I am also enabling the tests for these fields within the pydantic test suite.
# Types of Changes
... | diff --git a/strawberry/experimental/pydantic/fields.py b/strawberry/experimental/pydantic/fields.py
index c85d1c3852..381fe440d0 100644
--- a/strawberry/experimental/pydantic/fields.py
+++ b/strawberry/experimental/pydantic/fields.py
@@ -4,6 +4,7 @@
from uuid import UUID
import pydantic
+import pydantic_core
from... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request should add a release file (RELEASE.md) describing the change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__3109 | strawberry-graphql/strawberry | 3,109 | defect | 1171e7fc1ce14455571b8e062a321389a9ea8b43 | 713175dfbd3bfafa1a4cca3ab4a378a7e7dfaf49 | Fix pydantic with nested annotated type annotations | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your change... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..6f5338914be
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,17 @@
+Release type: patch
+
+Fix generation of input based on pydantic models using nested `Annotated` type annotations:
+
+```python
+import strawberry
+from pydantic import BaseModel
+
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "Annotated should be imported from typing_extensions instead of using the added try/except ImportError fallback that assigns Annotated = () on old Pythons.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__3239 | strawberry-graphql/strawberry | 3,239 | defect | edebcb31dc75e85fbfa34fa66c71c1bbba78a688 | 5fa94ccd98115a6f9f4a8d32481a93b88c1ab9ed | Add extensions support to federation.field | ## Description
Adds an optional `extensions` parameter to `strawberry.federation.field`, with default value `None`. The key is passed through to `strawberry.field`, so the functionality is exactly as described [here](https://strawberry.rocks/docs/guides/field-extensions).
Example:
```python
strawberry.federation.fiel... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..1755130736
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,9 @@
+Release type: minor
+
+Adds an optional `extensions` parameter to `strawberry.federation.field`, with default value `None`. The key is passed through to `strawberry.field`, so the funct... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add the reviewer's suggested `# pragma: no cover` comment to the unused `hello` query resolver in tests/schema/extensions/test_input_mutation_federation.py.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__3241 | strawberry-graphql/strawberry | 3,241 | defect | edebcb31dc75e85fbfa34fa66c71c1bbba78a688 | e145979e61fbf51f8ad62a3e7493d3b9cb79aab5 | Fix _RESOLVER_TYPE for async functions | ## Description
Fixes generic type arguments for Coroutine in RESOLVER_TYPE. The given types are incorrect: It is `Coroutine[YieldType, SendType, ReturnType]`.
This allows catching when the return type of an async resolver is incompatible with the field type. For example:
```python
async def resolver_func() ->... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..71529b6f23
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: minor
+
+Fixes type-checking for async resolver functions when used as `strawberry.field(resolver=resolver_func)`.
diff --git a/strawberry/field.py b/strawberry/field.py
i... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request's change to _RESOLVER_TYPE causes mypy test failures that the author needs maintainer help to investigate.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Passing a dynamically created async resolver field int... | null |
strawberry-graphql__strawberry__3388 | strawberry-graphql/strawberry | 3,388 | defect | be9a2d53ccadf018b6754d131dda4ed76476a8d9 | cc4fbef345bb7ebcf9373f02707a26cbce6e2d14 | Unpack list type when looking up namespaces | ## Description
The namespace resolver does not check for lists, meaning a type definition of `List[Annotated[MyType, strawberry.lazy("my.module")]]` throws `strawberry.exceptions.unresolved_field_type.UnresolvedFieldTypeError`
## Types of Changes
<!--- What types of changes does your pull request introduce? Pu... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..0e84f9801e
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+Fixes an issue where lazy annotations raised an error when used together with a List
diff --git a/strawberry/utils/typing.py b/strawberry/utils/typing.py
index f0... | 4 | 3 | 1 | [{"id": "G0", "claim": "The `cast(ast.Tuple, expr_slice)` statement has no effect because its result is neither assigned nor used, and should be removed or actually used for type checking.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new b... | null |
strawberry-graphql__strawberry__3417 | strawberry-graphql/strawberry | 3,417 | defect | 22838db26389c28450820e0f0e9771e015403e8c | dbe6b2539f812b5d991df1733ec58320279e1ec6 | Add support for federation in schema codegen | Pretty much the title, it could be made more solid, but I think
it is pretty good for most use cases
| diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..08088cbf2b
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,45 @@
+Release type: minor
+
+This release adds support for Apollo Federation in the schema codegen. Now you
+can convert a schema like this:
+
+```graphql
+extend schema
+ @link(url: "https... | 10 | 2 | 0 | [{"id": "G0", "claim": "Consider extending _sanitize_argument to handle data types beyond strings and booleans (e.g. integers, lists) if future requirements need them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Ensure _get_field_value still ... | null |
strawberry-graphql__strawberry__3426 | strawberry-graphql/strawberry | 3,426 | defect | 905b02e41dccf85d304489a3606783d38a6fd1e8 | 1bc7055a27a9bbc283d8dcd15c038b72b58b08b3 | feature/pydantic 1 and 2 | Closes #3425 | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..9377ce2161
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,6 @@
+Release type: minor
+
+This release adds support for using both Pydantic v1 and v2, when importing from
+`pydantic.v1`.
+
+This is automatically detected and the correct version is used... | 12 | 1 | 0 | [{"id": "G0", "claim": "The purpose of the `_missing_type` and `is_v1` attributes added to CompatModelField should be documented.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Negative test cases where the schema should fail (e.g. invalid types o... | null |
strawberry-graphql__strawberry__3442 | strawberry-graphql/strawberry | 3,442 | defect | 0c5bc4b1ee74ffbec4519987c2576353d220d8f2 | fdfa09c811116d222d5200dd4c9ac34d31525dbb | Add support for using FastAPI APIRouter arguments in GraphQLRouter | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
Add the ability to pass ad... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..d11ed0973d
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,28 @@
+Release type: minor
+
+This release adds support for using FastAPI APIRouter arguments in GraphQLRouter.
+
+Now you have the opportunity to specify parameters such as `tags`, `route_cl... | 6 | 2 | 1 | [{"id": "G0", "claim": "GraphQLRouter's __init__ should copy the APIRouter arguments currently available (default, on_startup, on_shutdown, and the rest) as explicit named parameters, keeping **kwargs only for future options, to improve the developer experience.", "category": "design", "verdict": "supported", "priority... | null |
strawberry-graphql__strawberry__3452 | strawberry-graphql/strawberry | 3,452 | defect | 292b771c98ba7fc2c5e10c7fe9eacaa98f7f23ce | af0bc53eee9488cd0a61b88cec9fca215ddc8cf6 | Fix GET requests with content_type headers | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
Currently, if you perform ... | diff --git a/release.md b/release.md
new file mode 100644
index 0000000000..2af9384648
--- /dev/null
+++ b/release.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+This change fixes GET request queries returning a 400 if a content_type header is supplied
\ No newline at end of file
diff --git a/strawberry/http/async_base_vie... | 2 | 1 | 1 | [{"id": "G0", "claim": "Merging the pull request will degrade performance by 26.72% on the test_execute_basic benchmark, and the bot asks the author to fix the performance issues or acknowledge them on CodSpeed.", "category": "performance", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
strawberry-graphql__strawberry__3483 | strawberry-graphql/strawberry | 3,483 | defect | 17f05a7af3caded5d8a93bdf1310845bb11251cd | ba5e9ef7dc1391e693bd2ee514aa32b00cdab220 | fix(datadog): Fix datadog `AssertionError` upon empty query | ## Description
This PR fixes the `AssertionError` that was raised by the Datadog extension in case there was no query in the current execution context.
## Changes
The change I made was to add `query_missing` as the `operation_type` tag and `resource` in that case. This will also make it easier to look for logs of ... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..7a1bece3d2
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,11 @@
+Release type: patch
+
+Fix `AssertionError` caused by the `DatadogTracingExtension` whenever the query is unavailable.
+
+The bug in question was reported by issue [#3150](https://gith... | 2 | 1 | 0 | [{"id": "G0", "claim": "The generic term 'invalid' used for the resource name and operation_type when the query is missing should be replaced with a more specific term like 'query_absent'/'query_missing' to make logs and metrics more identifiable.", "category": "maintainability", "verdict": "supported", "priority": "P2... | null |
strawberry-graphql__strawberry__3511 | strawberry-graphql/strawberry | 3,511 | defect | 61f9e3a1baf557dab7ce14f6104f74cdebeafd76 | 0604f8121c85e019b65ced94b8efd1e60e61cc7e | Fix unclear error when missing dependencies | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your change... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..0b0f808a4bc
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,6 @@
+Release type: minor
+
+When calling the CLI without all the necessary dependencies installed,
+a `MissingOptionalDependenciesError` will be raised instead of a
+`ModuleNotFoundError`.... | 10 | 5 | 0 | [{"id": "G0", "claim": "It would be useful to log the original ModuleNotFoundError before raising the MissingOptionalDependenciesError to aid debugging.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "MissingOptionalDependenciesError should have a ... | null |
strawberry-graphql__strawberry__3515 | strawberry-graphql/strawberry | 3,515 | defect | a7fc70aad310086ee47cbb07164d2abcde68293c | 5cfac3ce6dd82dd2b435d3df543e84670ed0323d | Add support for generic unions |
## Description
This PR merges union types in `strawberry.schema.schema_converter.GraphQLCoreCoverter:from_union`. This allows creating a more stable interface, as a union can be created between a TypeVar and an annotated union. In the examples in #3393, this changes `SomeTypeByIdNotFoundError` => `SomeTypeByIdResu... | diff --git a/strawberry/schema/schema_converter.py b/strawberry/schema/schema_converter.py
index de8e2f61d0..91c795eaff 100644
--- a/strawberry/schema/schema_converter.py
+++ b/strawberry/schema/schema_converter.py
@@ -856,9 +856,13 @@ def from_union(self, union: StrawberryUnion) -> GraphQLUnionType:
if ... | 3 | 3 | 0 | [{"id": "G0", "claim": "Add a comment explaining why GraphQLUnionType needs special handling (merging its child types) in from_union.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Expand the vague 'merge child types' comment to say that the child... | null |
strawberry-graphql__strawberry__3525 | strawberry-graphql/strawberry | 3,525 | defect | 5ee16f5a088fecbe43eef9bcbfd30ed72d394ddd | a9e90453bb2479d43ddcb485c8246f65d455e102 | Implement federation fields and types using strawberry | - **Add tests for federation schema**
- **Implement federation fields and types using strawberry**
Closes #3521 #3522
| diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..3e88f24b43
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,28 @@
+Release type: minor
+
+This release refactors our Federation integration to create types using
+Strawberry directly, instead of using low level types from GraphQL-core.
+
+The only use... | 7 | 3 | 0 | [{"id": "G0", "claim": "The NewType import is used only once, to define FederationAny, so consider whether a simpler approach could be taken instead of NewType.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The expression [*list(types), Federat... | null |
strawberry-graphql__strawberry__3530 | strawberry-graphql/strawberry | 3,530 | defect | 2c90ef6d561b35726f57685f8cb327bc078e9e34 | 08bfdd2d373410131d0e93f9dc1136440e9e04d2 | feat(relay): Separate slice metadata to a separate function to allow reusage | This will allow for custom connections to reuse this logic that is quite complex.
| diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..c2802a2940e
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,11 @@
+Release type: minor
+
+This release separates the `relay.ListConnection` logic that calculates the
+slice of the nodes into a separate function.
+
+This allows for easier reuse of th... | 7 | 1 | 0 | [{"id": "G0", "claim": "The call to get_slice_metadata could raise exceptions such as TypeError or ValueError, so it might be beneficial to wrap it in a try-except block to handle them gracefully.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The s... | null |
strawberry-graphql__strawberry__3533 | strawberry-graphql/strawberry | 3,533 | defect | d3b6b3f764380bd730d01e30b91f55a3bd22a263 | 420bf039dfd7f8bdd32816fccd57cf017d145516 | Improved error message when supplying GlobalID with invalid or unknown type name component | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
Improves the error generat... | diff --git a/strawberry/relay/types.py b/strawberry/relay/types.py
index deea4920c1..334933185e 100644
--- a/strawberry/relay/types.py
+++ b/strawberry/relay/types.py
@@ -220,14 +220,22 @@ def resolve_type(self, info: Info) -> Type[Node]:
"""
type_def = info.schema.get_type_by_name(self.type_name)
-... | 4 | 1 | 0 | [{"id": "G0", "claim": "The new GlobalIDValueError message could include more details about the type that was received, such as the actual type of type_def, to help debugging.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "type_def should be che... | null |
strawberry-graphql__strawberry__3570 | strawberry-graphql/strawberry | 3,570 | defect | f15bcc77f833464fa4685b1e6e618e7a789cee8c | e6596190305c27ac57e3d069817c2c513b522c76 | gql-core 3.3 | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your changes in de... | diff --git a/poetry.lock b/poetry.lock
index 17a5ce0bc5..d165f47a06 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -1,4 +1,4 @@
-# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand.
+# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
[[pack... | 2 | 2 | 2 | [{"id": "G0", "claim": "Test both graphql-core 3.2 and 3.3 in the nox test sessions.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Most of the tests won't pass under graphql-core 3.3 due to the formatter change; the author asks how to overcome this.", ... | null |
strawberry-graphql__strawberry__3633 | strawberry-graphql/strawberry | 3,633 | defect | 13bd97b8697929ec82a7fd95bdb9c17ccedaddf5 | 7fe2c18370a43d0dd609749f4384c9015e7148e8 | Let legacy ws clients know about invalid data frames | Starting with this PR, we will let legacy WS clients know when they send data frames (e.g., binary instead of text data frames) that are not supported by the protocol instead of simply ignoring them.
## Description
While working on unifying all WebSocket implementations, I noticed that our implementation of the l... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..ee1488b1591
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,6 @@
+Release type: patch
+
+Starting with this release, clients using the legacy graphql-ws subprotocol will receive an error when they try to send binary data frames.
+Before, binary data... | 5 | 3 | 1 | [{"id": "G0", "claim": "The original error message (str(e)) should be logged for debugging purposes instead of being discarded when the user-facing reason was replaced with a fixed string.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rewri... | null |
strawberry-graphql__strawberry__3672 | strawberry-graphql/strawberry | 3,672 | defect | daec2360c0fffec10c60e7de27334170aa230937 | c885868edde619602cd703f2dedbea7b40276ea8 | Remove the deprecated sentry tracing extension | ## Description
After a one-year deprecation period, this PR removes the `SentryTracingExtension` provided by Strawberry in favor of the official Sentry SDK integration.
We might need to coordinate this with Sentry. It looks like their integration will assume Strawberry is not installed at all when our (deprecated... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..7aef45f4d0b
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,8 @@
+Release type: minor
+
+After a year-long deprecation period, the `SentryTracingExtension` has been
+removed in favor of the official Sentry SDK integration.
+
+To migrate, remove the ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The removal warning in docs/extensions/sentry-tracing.md should add a brief note on the benefits of migrating to the official Sentry SDK integration.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The validate-tweet CI chec... | null |
strawberry-graphql__strawberry__3674 | strawberry-graphql/strawberry | 3,674 | defect | 56172dc6ccd8d0a0b3ba6e13c9363d7b42afe33f | 80df22ebb30eb621bc37135bbf9b38feefc085e2 | Fix interfaces with duplicate directives | ## Description
Directives are added multiple times leading to VSC errors like `The directive "@featuresRequired" can only be used once at this location.`

Another option to fix this would be to make field.directives a `s... | diff --git a/strawberry/permission.py b/strawberry/permission.py
index b52fdce102..47a4c0a94f 100644
--- a/strawberry/permission.py
+++ b/strawberry/permission.py
@@ -158,9 +158,12 @@ def __init__(
def apply(self, field: StrawberryField) -> None:
"""Applies all of the permission directives to the schema a... | 4 | 4 | 2 | [{"id": "G0", "claim": "Include the test for the directive-deduplication fix in this PR so the bug cannot resurface unnoticed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider whether user-facing documentation needs updating to reflect this fix, ... | null |
strawberry-graphql__strawberry__3716 | strawberry-graphql/strawberry | 3,716 | defect | 2e4e3cc75b6f646464a30956f88925f02fff2ef3 | f8d4c182eb7639fcc20a2322e1222fa37c25aa9a | make sure _span_holder is reset | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
This PR addresses a bug wh... | diff --git a/strawberry/extensions/tracing/opentelemetry.py b/strawberry/extensions/tracing/opentelemetry.py
index 285c2e5f92..133f3a373b 100644
--- a/strawberry/extensions/tracing/opentelemetry.py
+++ b/strawberry/extensions/tracing/opentelemetry.py
@@ -37,7 +37,7 @@
class OpenTelemetryExtension(SchemaExtension):
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request is missing a RELEASE.md file and the contributor should add one (with a release type of patch, minor or major) so the automated GitHub/PyPI release can run.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__3778 | strawberry-graphql/strawberry | 3,778 | defect | 2af374359e9722980f5bc15b0d7158c8d54367b6 | d7953e9939356b9adf0bb452ff108fca6fd71306 | Fix cleanup logic in graphql_ws protocol handler | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
Ensure all tasks are cance... | diff --git a/strawberry/subscriptions/protocols/graphql_ws/handlers.py b/strawberry/subscriptions/protocols/graphql_ws/handlers.py
index 8722618fedd..cbe15a5f4f6 100644
--- a/strawberry/subscriptions/protocols/graphql_ws/handlers.py
+++ b/strawberry/subscriptions/protocols/graphql_ws/handlers.py
@@ -76,8 +76,7 @@ async... | 4 | 1 | 1 | [{"id": "G0", "claim": "Add a test case where multiple subscriptions are active and the client disconnects unexpectedly, to ensure the cleanup logic correctly handles multiple active subscriptions.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider... | null |
strawberry-graphql__strawberry__3794 | strawberry-graphql/strawberry | 3,794 | defect | 951e56c5885cb9516ac53118b389d3b2cb47c52f | 04a773a02ee6a64c22eeffc4fc9ff0e694c7aa5a | Support ddtrace v3 | In ddtrace v2.19 both Span and tracer moved locations: https://github.com/DataDog/dd-trace-py/pull/11941 and as of v3 the old import of `ddtrace import Span, tracer` no longer exist.
Not sure what strawberry's policy on pulling in these changes are, as they will break users on old ddtrace versions, however in order... | diff --git a/strawberry/extensions/tracing/datadog.py b/strawberry/extensions/tracing/datadog.py
index 1269dfdfd8..37d69e7f90 100644
--- a/strawberry/extensions/tracing/datadog.py
+++ b/strawberry/extensions/tracing/datadog.py
@@ -5,7 +5,7 @@
from inspect import isawaitable
from typing import TYPE_CHECKING, Any, Call... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should keep older ddtrace releases working (e.g. by using ddtrace as a conditional dependency) instead of unconditionally importing from ddtrace.trace, so both v2 and v3 are supported.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__3797 | strawberry-graphql/strawberry | 3,797 | defect | 80a5d14bf44798517221577dbe70d5882c66e440 | 4465f2ade42f64fe5c108f24f2815ea0be78a2c4 | (feat) cli: export schema from callable | ## Description
Add support for exporting schema created by a callable:
```bash
strawberry export-schema package.module:create_schema
```
when
```python
def create_schema():
return strawberry.Schema(query=Query)
```
## Types of Changes
- [ ] Core
- [ ] Bugfix
- [x] New feature
- [ ] Enh... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..05c03320d78
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,16 @@
+Release type: minor
+
+This release adds support for exporting schema created by a callable:
+
+```bash
+strawberry export-schema package.module:create_schema
+```
+
+when
+
+```pyth... | 3 | 1 | 0 | [{"id": "G0", "claim": "Invoking the schema_symbol callable without error handling may lead to an unhandled exception; wrap the invocation in try/except and report the error gracefully.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new callable... | null |
strawberry-graphql__strawberry__3798 | strawberry-graphql/strawberry | 3,798 | defect | 80a5d14bf44798517221577dbe70d5882c66e440 | 0072e2d5bc8733a0eb025d1992f3f180673c94b1 | add support for including pydantic computed fields | Adds the ability to include pydantic computed fields when using `pydantic.type` decorator.
## Description
Fixes https://github.com/strawberry-graphql/strawberry/issues/3607
Reserves backwards compatibility by only enabling this behavior with a bool flag.
## Types of Changes
<!--- What types of changes do... | diff --git a/strawberry/experimental/pydantic/_compat.py b/strawberry/experimental/pydantic/_compat.py
index cf64d06322..6660232ac2 100644
--- a/strawberry/experimental/pydantic/_compat.py
+++ b/strawberry/experimental/pydantic/_compat.py
@@ -12,7 +12,7 @@
from strawberry.experimental.pydantic.exceptions import Unsupp... | 5 | 1 | 0 | [{"id": "G0", "claim": "Add an explicit test verifying the negative case where include_computed=False: the computed field is not included in the schema and is not resolvable.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Extract the shared CompatModelF... | null |
strawberry-graphql__strawberry__3812 | strawberry-graphql/strawberry | 3,812 | defect | 7d4ba102e11e7872a4fe37fc6677c212d2d50d83 | 9027fb3748f71419536143be38ffb0da697100fc | Change pydantic conversion to not load field data unless requested | <!--- Provide a general summary of your changes in the title above. -->
Changes the Pydantic model conversion so that it doesn't retrieve data for fields that aren't going to be used.
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wra... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..dca1f336aa
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+Change pydantic conversion to not load field data unless requested
diff --git a/strawberry/experimental/pydantic/conversion.py b/strawberry/experimental/pydantic/... | 2 | 1 | 1 | [{"id": "G0", "claim": "It would be helpful to add a test case that specifically demonstrates the performance improvement from this change.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be nice to have some test to check the behaviour of the con... | null |
strawberry-graphql__strawberry__3830 | strawberry-graphql/strawberry | 3,830 | defect | c7910e0a16761c335b5c7edbd2aa49fb2ad7206f | ef7947d040282446a8da05f2ab14dbc114637720 | opentelementry: allow passing a custom tracer provider | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
Passing a custom TracerPro... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..dc41b8a8e1
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+Allow passing in a custom `TracerProvider` to the `OpenTelemetryExtension`.
diff --git a/docs/extensions/opentelemetry.md b/docs/extensions/opentelemetry.md
index... | 4 | 1 | 0 | [{"id": "G0", "claim": "In the sync span-holder test, the new tracer-provider lines instantiate OpenTelemetryExtension instead of OpenTelemetryExtensionSync, so the sync extension's tracer_provider handling is not what gets tested (verify whether this is intentional).", "category": "testing", "verdict": "uncertain", "p... | null |
strawberry-graphql__strawberry__3859 | strawberry-graphql/strawberry | 3,859 | defect | 6596b29c168b58f81485ea10b1d57ac08ee97548 | b5df7740ad70dc26e5f6b02ca70453e8142ee21b | Better implementation of GlobalID = ID | WIP, this could actually become a new feature once implemented properly.
Closes #3854
## Summary by Sourcery
Enable seamless use of both GlobalID and ID scalars in the same schema by unifying their conversion and registration, and validate behavior through updated tests.
Enhancements:
- Allow mixing GlobalID and ID... | diff --git a/strawberry/relay/types.py b/strawberry/relay/types.py
index 445e1c4997..9ef5b3b3c2 100644
--- a/strawberry/relay/types.py
+++ b/strawberry/relay/types.py
@@ -28,6 +28,8 @@
from typing_extensions import Literal, Self, TypeAlias, get_args, get_origin
from strawberry.relay.exceptions import NodeIDAnnotati... | 4 | 1 | 0 | [{"id": "G0", "claim": "The unused _mapped_scalar helper (and the _StrawberryMappedScalar wrapper it returns) is not used by the current implementation and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The legacy GlobalID sup... | null |
strawberry-graphql__strawberry__3860 | strawberry-graphql/strawberry | 3,860 | defect | 1edd9bb7ebeae8e7009191d04381a3b82b6fb829 | b2a1b17c195bcca9deaabce10554815d8ab500e5 | Quart subscription support | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your change... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..4b93bb08f1
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: minor
+
+This release adds support for GraphQL over WebSocket transport protocols to the Quart integration.
diff --git a/docs/general/subscriptions.md b/docs/general/subsc... | 11 | 3 | 1 | [{"id": "G0", "claim": "The new Quart example in docs/general/subscriptions.md calls `app.app.add_url_rule`, a duplicated `app` that should be `app.add_url_rule`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The doc example's route registration ... | null |
strawberry-graphql__strawberry__3866 | strawberry-graphql/strawberry | 3,866 | defect | 15681333c17897dc5a4c484e3c52e8981d0fcb70 | d6698eb3162134599b884d8cbec9b021529967b5 | fix: always get last multipart separator from queue when streaming | <!--- Provide a general summary of your changes in the title above. -->
This PR fixes an issue with GraphQL multipart subscriptions where the final boundary marker (`--graphql--`) could sometimes be missed due to a race condition between task completion and message handling. See screenshot below.
<img width="1653... | diff --git a/strawberry/http/async_base_view.py b/strawberry/http/async_base_view.py
index 72ad62956f..2a388592bf 100644
--- a/strawberry/http/async_base_view.py
+++ b/strawberry/http/async_base_view.py
@@ -372,7 +372,9 @@ def encode_multipart_data(self, data: Any, separator: str) -> str:
)
def _stream_... | 4 | 4 | 3 | [{"id": "G0", "claim": "Reading the queue with a `queue.empty()` check followed by a single `get_nowait()` can race and miss queued items such as a delayed final separator; the queue should be read with a blocking `get()` or with `get_nowait()` wrapped in try/except `QueueEmpty`.", "category": "correctness", "verdict":... | null |
strawberry-graphql__strawberry__3878 | strawberry-graphql/strawberry | 3,878 | defect | f08f5eff1ad4051c14e85cd0b0cde02d43a03c13 | 9bff59f7caef45eacb9d9ce74155911ac2afcca4 | Add operation extensions to `ExecutionContext` | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
Adds GraphQL v3.3 operation extensions to th... | diff --git a/strawberry/schema/schema.py b/strawberry/schema/schema.py
index dcaf20526b..42fad8b638 100644
--- a/strawberry/schema/schema.py
+++ b/strawberry/schema/schema.py
@@ -412,6 +412,7 @@ def _create_execution_context(
context_value: Optional[Any] = None,
root_value: Optional[Any] = None,
... | 3 | 1 | 1 | [{"id": "G0", "claim": "Passing the mutable operation_extensions dict would break the @lru_cache on _create_execution_context with a TypeError, so make the argument hashable or exclude it from the cache key.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cla... | null |
strawberry-graphql__strawberry__3882 | strawberry-graphql/strawberry | 3,882 | defect | 552d61adc5fe6b8098e8499ac78761bf4936fec5 | 5c88a955974d41ac2707ca1fea63679c99296388 | Fix get_operation_type is buggy if the first definition is a fragment with the same name as the operation | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your change... | diff --git a/strawberry/utils/operation.py b/strawberry/utils/operation.py
index 8f7a4f3e07..6d301fcb11 100644
--- a/strawberry/utils/operation.py
+++ b/strawberry/utils/operation.py
@@ -27,7 +27,8 @@ def get_operation_type(
if operation_name:
for d in graphql_document.definitions:
- d = cast... | 5 | 3 | 0 | [{"id": "G0", "claim": "Please add a test for documents containing only fragment definitions to document what get_operation_type does for that input.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The else branch still casts the first definition even if... | null |
strawberry-graphql__strawberry__3885 | strawberry-graphql/strawberry | 3,885 | defect | 552d61adc5fe6b8098e8499ac78761bf4936fec5 | 67978005c8860e87d4f9f9761b0b20eba3b6b879 | Fix create type implicitly required field resolvers | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your change... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..89be7188213
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,14 @@
+Release type: patch
+
+This release fixes that the `create_type` tool asked users to pass a `name` for
+fields without resolvers even when a `name` was already provided.
+
+The follo... | 4 | 2 | 1 | [{"id": "G0", "claim": "The ValueError message raised when a field has no name could be worded more clearly to say that either a python_name or a graphql_name is accepted.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The name-only test case shou... | null |
strawberry-graphql__strawberry__3895 | strawberry-graphql/strawberry | 3,895 | defect | e5e058f4af1542144a68b12a6ed8c25ed34b5cda | d61b699b0491043c9c033fecf3fccf896e75c42c | Add disable introspection extension | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your change... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..946ad044c8
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,28 @@
+Release type: minor
+
+This release features a dedicated extension to disable introspection queries.
+Disabling introspection queries was already possible using the
+`AddValidationRule... | 3 | 2 | 1 | [{"id": "G0", "claim": "A test should be added confirming that non-introspection queries (e.g., querying a regular field) still resolve normally when the DisableIntrospection extension is enabled.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The RELEA... | null |
strawberry-graphql__strawberry__3896 | strawberry-graphql/strawberry | 3,896 | defect | e5e058f4af1542144a68b12a6ed8c25ed34b5cda | 8a0ef2a1d41bd4d76c36537e610ba478296df34a | Modify export_schema cli to include an extra EOF newline when --output option is provided | <!--- Provide a general summary of your changes in the title above. -->
Modify export_schema cli to include an extra EOF newline when `--output` option is provided. This makes reviewing new schema files in github.com slightly easier.
<!--- This template is entirely optional and can be removed, but is here to help... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..a2292dc754
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+This release modifies export-schema cli to include an EOF newline if --output option is provided. This allows better review in github.com for the generated schema... | 1 | 1 | 1 | [{"id": "G0", "claim": "The export_schema CLI should specify encoding='utf-8' when writing the schema to the --output file, to avoid inconsistencies across different systems.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__3920 | strawberry-graphql/strawberry | 3,920 | defect | 8a019ce1021755ba34cecd57beb7da7ca0f79d5c | 99a1a307e3f362173031047b73fa188405ca12f5 | fix: support lists in maybe annotation | This PR fixes the issue reported in #3889. StrawberryMaybe was missing a StrawberryAnnotation wrapped around the inner type of the Maybe generic. Hence, lists would not be converted to StrawberryList.
fixes #3889
## Summary by Sourcery
Fix handling of list types in StrawberryMaybe annotations by resolving the i... | diff --git a/strawberry/annotation.py b/strawberry/annotation.py
index 89208c3f8f..f35e7d6825 100644
--- a/strawberry/annotation.py
+++ b/strawberry/annotation.py
@@ -145,7 +145,8 @@ def _resolve(self) -> Union[StrawberryType, type]:
return evaled_type
if self._is_list(evaled_type):
r... | 4 | 4 | 0 | [{"id": "G0", "claim": "The 'return StrawberryMaybe(of_type=type_of)' after 'return self.create_maybe(evaled_type)' in _resolve is unreachable dead code and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'evaled_type' para... | null |
strawberry-graphql__strawberry__3932 | strawberry-graphql/strawberry | 3,932 | defect | 1a63f5090e6f2bc5f8f2ca144ea33c118d3d3502 | bf778693e5f1c264c4301cb253fbb0a19a4f92e5 | Fix invalid variables parameters were not handled | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your change... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..10c0cc9f00
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,6 @@
+Release type: patch
+
+In this release, we updated Strawberry to gracefully handle requests containing
+an invalid `variables` parameter. Previously, such requests could result in
+inte... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment in tests/http/test_query.py has a typographical error: \"errors messages\" should be \"error messages\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__3944 | strawberry-graphql/strawberry | 3,944 | defect | 74c2cefea57f1a4e22fbf1d586d86bdca9f1e711 | 7e283efe54590726c04881dc5a88c9f9c105defd | fix: name conversion for lazy types | <!--- Provide a general summary of your changes in the title above. -->
Fixes `NameConverter` to properly handle a case when a lazy type is passed to a generic.
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like ... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..1ebeaff118
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+This release fixes NameConverter to properly handle lazy types.
diff --git a/strawberry/schema/name_converter.py b/strawberry/schema/name_converter.py
index 9d965... | 2 | 1 | 1 | [{"id": "G0", "claim": "The commented-out test_lazy_type_with_different_name_in_generic should be removed or enabled rather than left disabled, so the scenario it covers is actually validated.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests should ... | null |
strawberry-graphql__strawberry__3987 | strawberry-graphql/strawberry | 3,987 | defect | 58ea8c9a8d880ecdf86629bc8e521ae305fd4d10 | bd1cfcf305fa0e891df686f4a0e3c2dd655e7a11 | ensure mask errors supports strawberry execution result dataclass | ensures mask errors supports strawberry execution result dataclass
<!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up ... | diff --git a/strawberry/extensions/mask_errors.py b/strawberry/extensions/mask_errors.py
index c2ecb0a707..481f515979 100644
--- a/strawberry/extensions/mask_errors.py
+++ b/strawberry/extensions/mask_errors.py
@@ -1,10 +1,11 @@
-from collections.abc import Iterator
-from typing import Any, Callable
+from collections.a... | 3 | 2 | 0 | [{"id": "G0", "claim": "The test file imports asyncio more than once (inside the test functions), and both imports should be moved to the top of the file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The async tests should be marked with pytes... | null |
strawberry-graphql__strawberry__4002 | strawberry-graphql/strawberry | 4,002 | defect | 19ecb92ad11d3b51f12abb86f8604b29c35aadc4 | b0b9dbbd7045dd0a56b248a168b52a30f0a03143 | fix: improve multipart subscription boundary and protocol validation | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
Improved multipart subscri... | diff --git a/strawberry/http/base.py b/strawberry/http/base.py
index d95d9e0b30..03421e64f7 100644
--- a/strawberry/http/base.py
+++ b/strawberry/http/base.py
@@ -78,13 +78,12 @@ def graphql_ide_html(self) -> str:
def _is_multipart_subscriptions(
self, content_type: str, params: dict[str, str]
) -> b... | 4 | 1 | 1 | [{"id": "G0", "claim": "The Django version checks introduced in the tests compare raw version strings lexicographically (e.g. \"3.10\" would sort before \"3.2\"), which can mis-order versions, so they should compare version tuples instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ... | null |
strawberry-graphql__strawberry__4054 | strawberry-graphql/strawberry | 4,054 | defect | bdb57b5e4b59e79c252f2ea7104bdf6fb1c0639a | 2ffd9e40b4f8ed013d5a1dc295eaa7c718054661 | Update encode_json type hint to str | bytes | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
<!--- Describe your change... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..92ad3dd9ef
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+Change `strawberry.http.base.BaseView.encode_json()` type hint to `str | bytes` and adjust dependent code appropriately.
diff --git a/docs/integrations/aiohttp.md... | 6 | 4 | 3 | [{"id": "G0", "claim": "In encode_multipart_data, when encode_json returns bytes, Content-Length is computed on the bytes while the body is the decoded string, which can diverge for non-ASCII payloads; the length should be computed on the exact string being sent or the encoding enforced consistently.", "category": "cor... | null |
strawberry-graphql__strawberry__4059 | strawberry-graphql/strawberry | 4,059 | defect | c03892c357b8b6dd633650f8bbc6fcb183dae0ce | bbe863a9eee837df4a6e7d7c24d2982a6df04b86 | Add support for defining fields using Annotated | ## Summary by Sourcery
Add support for configuring Strawberry fields via typing.Annotated metadata and surface a clear error when multiple field configurations are provided.
New Features:
- Allow GraphQL fields on object and input types to be defined and configured using typing.Annotated with strawberry.field metadat... | diff --git a/docs/errors/multiple-strawberry-fields.md b/docs/errors/multiple-strawberry-fields.md
new file mode 100644
index 00000000000..6bd73919ea8
--- /dev/null
+++ b/docs/errors/multiple-strawberry-fields.md
@@ -0,0 +1,58 @@
+---
+title: Multiple Strawberry Fields Error
+---
+
+# Multiple Strawberry Fields Error
+... | 8 | 4 | 1 | [{"id": "G0", "claim": "The error documentation should say the error is \"raised\" instead of \"thrown\", to match Python-idiomatic terminology.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When an Annotated field's metadata contains a Strawberr... | null |
strawberry-graphql__strawberry__4071 | strawberry-graphql/strawberry | 4,071 | defect | 23f8c505bd254cd75d2ff31395c3d60b551749c7 | aebe0b6d2d8b2fdc83e35b877161c18d5573f8cd | Support using enum values in the GraphQL schema | Currently, Strawberry exposes the enum name in GraphQL.
This PR adds the option to use the enum values instead.
## Why
I'm wrapping an existing OpenAPI service in GraphQL. There are tons of enums generated by the OpenAPI client that I want to reuse instead of writing again (also, they change often). They gener... | diff --git a/docs/types/enums.md b/docs/types/enums.md
index badddb702cf..92b3bed1c22 100644
--- a/docs/types/enums.md
+++ b/docs/types/enums.md
@@ -135,7 +135,8 @@ Here is result of executed query:
<Note>
GraphQL types are not a map of name: value, like in python enums. Strawberry
-uses the name of the members of ... | 7 | 5 | 1 | [{"id": "G0", "claim": "The new docs sentence reads \"Strawberry default to using...\"; it should use \"defaults\" for subject-verb agreement.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When use_enum_values=True the GraphQL name is taken direc... | null |
strawberry-graphql__strawberry__4084 | strawberry-graphql/strawberry | 4,084 | defect | 3bde027227c0b77724170ee13cca34f284cc7109 | 1031e474ea276845cee550606cecf2553de94701 | Fix `Maybe` usage with `Annotated` and explicit field definition | This PR continues work from #3985, adding unit-test and fixing code review comment, which in turns fixes two issues from #3962. @jacobmoshipco created the fix, while I've rebased that changes and covered with unit tests.
<!--- Provide a general summary of your changes in the title above. -->
<!--- This template i... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..13ce74fb35
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+Fixed two bugs where using `strawberry.Maybe` wrapped in `Annotated` or using explicit field definition would raise a `TypeError` about "missing 1 required keywor... | 2 | 2 | 0 | [{"id": "G0", "claim": "In the RELEASE.md note, add the article \"an\" before \"explicit field definition\" for grammatical correctness.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Split the long RELEASE.md sentence into two paragraphs by addin... | null |
strawberry-graphql__strawberry__4145 | strawberry-graphql/strawberry | 4,145 | defect | 7f638774a5ff814de459435cfd7b7bcaf7e5d207 | 133d841e8936d5c8a8d491ce793449992737337e | fix: Fix lazy type resolution with relative imports | Fix #4142
## Summary by Sourcery
Fix lazy type resolution to correctly handle relative imports and avoid duplicate type definitions when resolving types from the main module.
Bug Fixes:
- Ensure lazy type resolution compares against the fully resolved module name, including when using relative imports, to prevent du... | diff --git a/strawberry/types/lazy_type.py b/strawberry/types/lazy_type.py
index 502d132d91e..6c566de4097 100644
--- a/strawberry/types/lazy_type.py
+++ b/strawberry/types/lazy_type.py
@@ -1,4 +1,5 @@
import importlib
+import importlib.util
import inspect
import sys
import warnings
@@ -60,12 +61,19 @@ def __or__(se... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a test exercising the new full_module_name / __main__ resolution behavior with a relative import: inject a fake __main__ in sys.modules with a __spec__ whose name equals importlib.util.resolve_name(\".test_lazy_type_cache\", \"tests.types\"), resolve LazyType(\"UserFilter\", \".test_lazy_typ... | null |
strawberry-graphql__strawberry__4181 | strawberry-graphql/strawberry | 4,181 | defect | 5f668c0f19e2f0fdc5e1b5b029d369c977e577b5 | d5ad9d085167534b8e38c01c08cca05022cd3230 | fix: ApolloTracingExtension resolvers field not populated on subsequent requests | Fix async execute to use cached _async_extensions instead of get_extensions(), which was creating new extension instances while the middleware manager retained the old ones. Also clear _resolver_stats at the start of each operation since extensions are now reused across requests.
Closes #3656
## Summary by Sourcery... | diff --git a/strawberry/extensions/tracing/apollo.py b/strawberry/extensions/tracing/apollo.py
index 559e4c12e14..4d2834f8056 100644
--- a/strawberry/extensions/tracing/apollo.py
+++ b/strawberry/extensions/tracing/apollo.py
@@ -87,6 +87,7 @@ def __init__(self, execution_context: ExecutionContext) -> None:
sel... | 4 | 2 | 0 | [{"id": "G0", "claim": "In Schema.execute, using self._async_extensions directly assumes it has already been initialised, so consider falling back to get_extensions() or raising a clear error when _async_extensions is None to avoid a hard-to-debug AttributeError on first use.", "category": "correctness", "verdict": "un... | null |
strawberry-graphql__strawberry__4186 | strawberry-graphql/strawberry | 4,186 | defect | 2421e236579a5df16d9a908bf520ac0a10e0f89c | 55787ae5bfd0b7bbc0567b6ed2d5a04f902a77ca | chore(test): looser types for test client responses | To make it easier to make assertions against test data I propose loosening the types of `Response`'s `data` and `extensions` fields to prevent type issues such as this when accessing nested fields:
```
error[not-subscriptable]: Cannot subscript object of type `object` with no `__getitem__` method
|
345 | ... | diff --git a/strawberry/test/client.py b/strawberry/test/client.py
index 27c0633000..b4aa3815c7 100644
--- a/strawberry/test/client.py
+++ b/strawberry/test/client.py
@@ -16,8 +16,8 @@
@dataclass
class Response:
errors: list[GraphQLFormattedError] | None
- data: dict[str, object] | None
- extensions: dict[... | 2 | 2 | 1 | [{"id": "G0", "claim": "Use a recursive JsonValue/GraphQLData type alias (e.g. Mapping[str, JSONValue]) instead of Any for Response.data and Response.extensions, so callers can still index into nested structures without losing all type information.", "category": "design", "verdict": "supported", "priority": "P2", "scop... | null |
strawberry-graphql__strawberry__4192 | strawberry-graphql/strawberry | 4,192 | defect | c2cfe0f4c697820612274931758b56813590d6f0 | 8eeb07074f6c983fd13f1a41a43b64ecb664a086 | fix(schema-codegen): ensure types are generated before their references | <!--- Provide a general summary of your changes in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
## Description
### Problem
`schema-cod... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..e810336ffb6
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,9 @@
+Release type: patch
+
+Fix schema-codegen emit order so types that implement interfaces (or are referenced by other types) are generated before types that reference them. Previously, ... | 3 | 2 | 0 | [{"id": "G0", "claim": "Creating the Schema Definition with dependencies=list(definitions.keys()) while storing it at definitions[\"Schema\"] makes the Schema node depend on itself, so TopologicalSorter will raise CycleError whenever a schema definition exists.", "category": "correctness", "verdict": "uncertain", "prio... | null |
strawberry-graphql__strawberry__4193 | strawberry-graphql/strawberry | 4,193 | defect | ed455a96ff6a9faad6a2fb5b2ef8f2c689eaae6e | 804ceb3fa38a782937ee63feccbf139f21635e1e | fix: false-positive DuplicatedTypeName for same-origin types | - Add `origin is origin` identity check in `is_same_type_definition` so that two different `StrawberryObjectDefinition` instances sharing the same origin class are recognized as the same type
- Prevents false-positive `DuplicatedTypeName` when third-party decorators (e.g. strawberry-django's `filter_type`) re-process ... | diff --git a/strawberry/schema/schema_converter.py b/strawberry/schema/schema_converter.py
index ef219978a6d..6d9ff7db1a3 100644
--- a/strawberry/schema/schema_converter.py
+++ b/strawberry/schema/schema_converter.py
@@ -1045,10 +1045,16 @@ def is_same_type_definition(
second_type_definition: StrawberryObjectD... | 2 | 2 | 1 | [{"id": "G0", "claim": "The added same-origin regression test only asserts the helper method directly and never exercises the real schema-conversion path, so it would keep passing even if DuplicatedTypeName were still raised in the real failure mode; the reviewers ask that the test force both definitions through schema... | null |
strawberry-graphql__strawberry__4196 | strawberry-graphql/strawberry | 4,196 | defect | 756f2141920f0a3412113e53afa534744c2132f3 | 62a266a578c7ed9525ad382a73d6fe873e822c41 | Refactor federation functions to share federation params TypedDicts and processing functions | ## Summary
- Add `strawberry.federation.params` module with `FederationFieldParams`, `FederationInterfaceParams`, and `FederationTypeParams` TypedDicts consumable via `Unpack[...]`
- Extract `process_federation_field_directives()` and `process_federation_type_directives()` from inline logic in `field.py` and `objec... | diff --git a/strawberry/federation/field.py b/strawberry/federation/field.py
index c0dfa282cf..6579a861b1 100644
--- a/strawberry/federation/field.py
+++ b/strawberry/federation/field.py
@@ -9,9 +9,6 @@
)
from strawberry.types.field import field as base_field
-from strawberry.types.unset import UNSET
-
-from .types... | 8 | 4 | 1 | [{"id": "G0", "claim": "The new helpers' `if policy:` guard skips adding a Policy directive when an explicitly empty `policy=[]` is passed, which the reviewer says is a behavior change from the prior `if policy is not None:` guard and could break callers that intentionally pass an empty policy list; consider switching ... | null |
strawberry-graphql__strawberry__4208 | strawberry-graphql/strawberry | 4,208 | defect | 9c3bced169a54bf433490c5a27ecfbe163e50f2c | 5b76f880d4251dd8f405fd7647042a83d44af94f | [pre-commit.ci] pre-commit autoupdate | <!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.14...v0.15.0)
<!--pre-commit.ci end--> | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 79740b8e70..1420984b29 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.14.14
+ rev: v0.15.0
hooks:
- id: ruff-format
... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request is missing the RELEASE.md file the repository's release automation expects, so a release will be made as soon as it is merged; a RELEASE.md stating the release type should be added.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, ... | null |
strawberry-graphql__strawberry__4216 | strawberry-graphql/strawberry | 4,216 | defect | 9c3bced169a54bf433490c5a27ecfbe163e50f2c | 5f9207f764dee85531c0fcf0d8a55643fd5cb54e | Remove deprecated `channel_listen` method | ## Description
Remove the deprecated `channel_listen` method from the Channels integration, deprecated since [0.193.0](https://github.com/strawberry-graphql/strawberry/releases/tag/0.193.0).
### Migration guide
**Before (deprecated):**
```python
async for message in info.context["ws"].channel_listen("my_channel"):
... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..38ebaab869
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,18 @@
+Release type: minor
+
+Remove deprecated `channel_listen` method from the Channels integration, deprecated since [0.193.0](https://github.com/strawberry-graphql/strawberry/releases/tag... | 1 | 1 | 0 | [{"id": "G0", "claim": "The renamed test `test_listen_to_channel_group_twice` is missing the `@pytest.mark.django_db` decorator that all other `ws`-based tests in the file have, and it should be added since the test is being renamed anyway.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pr... | null |
strawberry-graphql__strawberry__4220 | strawberry-graphql/strawberry | 4,220 | defect | 9c3bced169a54bf433490c5a27ecfbe163e50f2c | ef67ab963b612b753cb22baf9c140d50eef4adb8 | Remove deprecated `types` parameter from `strawberry.union()` | ## Description
Remove the deprecated `types` parameter from `strawberry.union()`, deprecated since [0.191.0](https://github.com/strawberry-graphql/strawberry/releases/tag/0.191.0).
You can run `strawberry upgrade annotated-union <path>` to automatically migrate your code.
### Migration guide
**Before (deprecated):*... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..fbf522b644
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,22 @@
+Release type: minor
+
+Remove deprecated `types` parameter from `strawberry.union()`, deprecated since [0.191.0](https://github.com/strawberry-graphql/strawberry/releases/tag/0.191.0).... | 1 | 1 | 0 | [{"id": "G0", "claim": "Reduce the double space before 'GraphQL' to a single space in the description line of the federation `union()` docstring.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}] | null |
strawberry-graphql__strawberry__4223 | strawberry-graphql/strawberry | 4,223 | defect | 9c3bced169a54bf433490c5a27ecfbe163e50f2c | 27d9f566555e4f581d92685c02f77d307543c6c3 | Remove deprecated `fields` parameter from Pydantic decorators | ## Description
Remove the deprecated `fields` parameter from Pydantic decorators (`@strawberry.experimental.pydantic.type` and `@strawberry.experimental.pydantic.error_type`), deprecated since [0.82.0](https://github.com/strawberry-graphql/strawberry/releases/tag/0.82.0).
### Migration guide
**Before (deprecated):**... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..652fb7425a
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,20 @@
+Release type: minor
+
+Remove deprecated `fields` parameter from Pydantic decorators, deprecated since [0.82.0](https://github.com/strawberry-graphql/strawberry/releases/tag/0.82.0).
+... | 3 | 1 | 1 | [{"id": "G0", "claim": "docs/types/exceptions.md (line 86) still contains a code example using the now-removed `fields` parameter, which will no longer work after this PR and should be updated to use `strawberry.auto` annotations instead.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope":... | null |
strawberry-graphql__strawberry__4226 | strawberry-graphql/strawberry | 4,226 | defect | 9c3bced169a54bf433490c5a27ecfbe163e50f2c | 2e285246348b2a8125b9acc5c38d0aebd44b9715 | Remove deprecated extension legacy hooks | ## Description
Remove deprecated extension legacy hooks (`on_request_start`, `on_request_end`, `on_validation_start`, `on_validation_end`, `on_parsing_start`, `on_parsing_end`), deprecated since [0.159.0](https://github.com/strawberry-graphql/strawberry/releases/tag/0.159.0).
### Migration guide
**Before (deprecated... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..3663f41d8d
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,22 @@
+Release type: minor
+
+Remove deprecated extension legacy hooks (`on_request_start`, `on_request_end`, `on_validation_start`, `on_validation_end`, `on_parsing_start`, `on_parsing_end`)... | 1 | 1 | 0 | [{"id": "G0", "claim": "The RELEASE.md sentence should reorder the phrase \"deprecated extension legacy hooks\" to \"deprecated legacy extension hooks\" (or \"legacy extension hooks\") for clarity.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
strawberry-graphql__strawberry__4256 | strawberry-graphql/strawberry | 4,256 | defect | 2e308b5d195ba6e9cdd00b556ff3869b600be260 | 2b888d1ad5329f9e0d38b2f0752629b300566b05 | Fix: ExecutionResult not always present in execution context during concurrent requests | ## Summary
- Fix `execution_context.result` being `None` or belonging to a wrong request when multiple async requests execute concurrently (e.g. via `asyncio.gather`)
- Create fresh extension instances and middleware manager per async `execute()` and `subscribe()` call instead of reusing cached ones
- Add regression t... | diff --git a/strawberry/schema/schema.py b/strawberry/schema/schema.py
index 53a8641940..d2af2e3574 100644
--- a/strawberry/schema/schema.py
+++ b/strawberry/schema/schema.py
@@ -383,10 +383,6 @@ def get_extensions(self, sync: bool = False) -> list[SchemaExtension]:
def _sync_extensions(self) -> list[SchemaExtensi... | 3 | 3 | 1 | [{"id": "G0", "claim": "Since the change affects both execute and subscribe, add an async regression test that runs multiple concurrent schema.subscribe(...) calls with an extension like RecordResultExtension and asserts execution_context.result is set for each subscription.", "category": "testing", "verdict": "support... | null |
strawberry-graphql__strawberry__4267 | strawberry-graphql/strawberry | 4,267 | defect | 2c9bc4b018eab1e8928a2494521c9dfc179bd538 | e6ca453163b9d0d426677c0b410dde9882c4dcfa | fix: prevent async iterable detection for sync execution in gql-core 3.3 | ## Summary
graphql-core 3.3 added an `is_async_iterable` parameter to `execute()`. When not provided, it defaults to a check that returns `True` for any object with `__aiter__` — including Django QuerySets.
This causes `execute()` to return a coroutine instead of an `ExecutionResult` during sync execution, which then... | diff --git a/strawberry/schema/schema.py b/strawberry/schema/schema.py
index c2f81489f10..165b971ed40 100644
--- a/strawberry/schema/schema.py
+++ b/strawberry/schema/schema.py
@@ -1,5 +1,6 @@
from __future__ import annotations
+import inspect as _inspect
import warnings
from asyncio import ensure_future
from col... | 4 | 2 | 1 | [{"id": "G0", "claim": "The `lambda _x: False` should be extracted into a named module-level function (e.g. `_never_async_iterable`) to avoid recreating it on each call and make the intent clearer.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
strawberry-graphql__strawberry__4271 | strawberry-graphql/strawberry | 4,271 | defect | e0764c2d8e04776256d5658e5a668b6c1fb80c6e | 75f7a70081a9cb2df3a5a77f0f9f27681e32d190 | fix: handle ApolloTracingExtension crash on invalid queries | ## Description
Fixes #3060
`ApolloTracingExtension` raises an `AttributeError` (`'ApolloTracingExtension' object has no attribute 'end_time'`) when an invalid query (e.g., `{ node() }`) is executed. This happens because `get_results()` is called from within the operation context—before the `on_operation` generator re... | diff --git a/strawberry/extensions/tracing/apollo.py b/strawberry/extensions/tracing/apollo.py
index 4d2834f805..2179c71972 100644
--- a/strawberry/extensions/tracing/apollo.py
+++ b/strawberry/extensions/tracing/apollo.py
@@ -85,24 +85,39 @@ class ApolloTracingExtension(SchemaExtension):
def __init__(self, execut... | 2 | 1 | 0 | [{"id": "G0", "claim": "In `__init__`, the timestamp should be initialized through the `now()` helper instead of calling `time.perf_counter_ns()` directly, so all timing sources stay consistent and overridable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
strawberry-graphql__strawberry__4289 | strawberry-graphql/strawberry | 4,289 | defect | 0764a66e9808c71c0f9eee068d2df32d95026f4b | 2e50844f914584b65fe6d98bff75eecdd57c149e | feat: add `query` property to `Info` class | ## Description
Add a `query` property to `strawberry.Info` that exposes the full GraphQL document string sent in the request, accessible from any resolver via `info.query`.
This addresses #1146 where users had to resort to framework-specific workarounds like `info.context["request"]._json["query"]` to access the que... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..a675a210de
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,31 @@
+Release type: minor
+
+Add `query` property to `Info` class, allowing resolvers to access the GraphQL query string being executed via `info.query`.
+
+Example usage:
+
+```python
+impo... | 3 | 2 | 2 | [{"id": "G0", "claim": "The `Info.query` docstring and user-facing docs describe it as \"the query being executed\", but `operation.loc.source.body` returns the entire GraphQL document, so the docstring and docs table should be updated to state that it exposes the full request document.", "category": "documentation", "... | null |
strawberry-graphql__strawberry__4292 | strawberry-graphql/strawberry | 4,292 | defect | 3c882cbd84fb3bf083fa5e19af25151d4bda7228 | df3473dd60c51c305fc615e2c54aa134dc63162e | fix: restore minimal mypy plugin for pydantic types | ## Summary
- Restores the strawberry mypy plugin with minimal support for `strawberry.experimental.pydantic` types
- The plugin synthesises `__init__`, `to_pydantic()` and `from_pydantic()` on pydantic-decorated classes so mypy can see them
- Updates docs to reflect the required plugin configuration
Fixes #4280
## T... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 00000000000..9d528a86be9
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,10 @@
+Release type: patch
+
+The strawberry mypy plugin has been restored with minimal support for
+`strawberry.experimental.pydantic` types. If you use pydantic integration,
+add the plug... | 9 | 8 | 3 | [{"id": "G0", "claim": "InvalidNodeTypeException sets self.message but calls super().__init__() without it, leaving e.args empty while __str__ shows the message, which can break tooling or callers that inspect args; the message should be passed to the base Exception.", "category": "correctness", "verdict": "supported",... | null |
strawberry-graphql__strawberry__4320 | strawberry-graphql/strawberry | 4,320 | defect | 82b0a9ce98a4c708f3909122f84b98a619d86fed | ac5a42ebaefa555c4a541e03b3d29b7f7bdad201 | fix: asdict handling for Some and UNSET | <!--- Provide a general summary of your changes in the title above. -->
Adds handling for `Some` and `UNSET` field values in `strawberry.asdict`.
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..c62dc6914e
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: minor
+
+`strawberry.asdict` now recursively unwraps `Some()` container values and removes keys with the `UNSET` value.
diff --git a/docs/guides/convert-to-dictionary.md b... | 8 | 7 | 3 | [{"id": "G0", "claim": "UNSET values nested inside lists and tuples are preserved in the asdict output because only dict values are filtered, so UNSET can appear in the resulting structure; the filtering should be extended to sequence containers.", "category": "correctness", "verdict": "supported", "priority": "P1", "s... | null |
strawberry-graphql__strawberry__4321 | strawberry-graphql/strawberry | 4,321 | defect | 0329e45bb975325c81bdf647bc4b8f3e9436dbf1 | 1f6d620a53df02a55d5e131dd2a93635eb13ce5e | Preserve Annotated metadata on optional union types | Fixes the issue where the optional union type definition would ignore annotation metadata added with typing.Annotated (Annotated metadata on union types was lost when the union included None).
## Description
When using, for example:
```python
Annotated[A | B | None, strawberry.union("C")]
```
the None branch ... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..220804de32
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,54 @@
+Release type: patch
+
+Fix #3993: Optional Union fails to set correct name/description
+
+### Description
+Fixes the issue where the optional union type definition would ignore annotat... | 11 | 11 | 1 | [{"id": "G0", "claim": "The inline comment `# Annotated is already imported at file top` is redundant noise and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `if args:` truthiness check treats None and [] identically, so ... | null |
strawberry-graphql__strawberry__4344 | strawberry-graphql/strawberry | 4,344 | defect | 2ae907167e10e499c927e67ac48d18eaa6b1f7d0 | 3eac6c5e6c8b14eb31bd2bf7c7ff8ff2b1965262 | Fix WebSocket connection_init bypass and add subscription limit per connection | This release fixes two security vulnerabilities in the WebSocket subscription
handlers (CVE-2026-35526, CVE-2026-35523).
**CVE-2026-35526 - Authentication bypass in `graphql-ws`**: The legacy
`graphql-ws` protocol handler didn't verify that the `connection_init`
handshake was completed before accepting `start` me... | diff --git a/RELEASE.md b/RELEASE.md
index f2ea8a2c69..983dc630fa 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -1,37 +1,28 @@
-Release type: minor
+Release type: patch
-This release adds support for defining fields using the `Annotated` syntax. This provides an
-alternative way to specify field metadata alongside the ... | 6 | 4 | 1 | [{"id": "G0", "claim": "Add a test that fills subscriptions to the limit and then sends a start with an already-used operation ID, verifying the reuse does not raise \"Subscription limit reached\" and the new subscription receives data.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.