8000 Remove reference cycle when query returns error. by fowczarek · Pull Request #18552 · saleor/saleor · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@fowczarek
Copy link
Member

I want to merge this change because it allows memory to be freed immediately without needing a deep garbage collection cycle when the API returns an error.

We don't create a bugfix in the original repository because GraphQL-core-legacy is not supported.

Port #18549

Impact

  • New migrations
  • New/Updated API fields or mutations
  • Deprecated API fields or mutations
  • Removed API types, fields, or mutations

Docs

  • Link to documentation:

Pull Request Checklist

  • Privileged queries and mutations are either absent or guarded by proper permission checks
  • Database queries are optimized and the number of queries is constant
  • Database migrations are either absent or optimized for zero downtime
  • The changes are covered by test cases
  • All new fields/inputs/mutations have proper labels added (ADDED_IN_X, PREVIEW_FEATURE, etc.)
  • All migrations have proper dependencies
  • All indexes are added concurrently in migrations
  • All RunSql and RunPython migrations have revert option defined

* Add tests for refference cycles in error handling

* Patch execution context

* Clear errors

* Patch ExecutionResult

* Adjust tests
@fowczarek fowczarek self-assigned this Nov 24, 2025
@fowczarek fowczarek added the 3.22 label Nov 24, 2025
@db-queries
Copy link
db-queries bot commented Nov 24, 2025

Here is the report for 0d58e6f (saleor:ENG-1059-fix-reference-cycles-when-query-returns-error-in-3.22)
Missing base report (efddd1c). The results couldn't be compared.

No differences were found.

@fowczarek fowczarek requested review from a team, maarcingebala and przlada November 24, 2025 11:18
@fowczarek fowczarek merged commit 2c6bba5 into 3.22 Nov 24, 2025
12 checks passed
@fowczarek fowczarek deleted the ENG-1059-fix-reference-cycles-when-query-returns-error-in-3.22 branch November 24, 2025 11:20
@fowczarek fowczarek mentioned this pull request Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

0