Skip to content

feat(django-google-spanner): support Django 6.0 - #18128

Draft
sakthivelmanii wants to merge 16 commits into
mainfrom
add-django-6.0-support
Draft

feat(django-google-spanner): support Django 6.0#18128
sakthivelmanii wants to merge 16 commits into
mainfrom
add-django-6.0-support

Conversation

@sakthivelmanii

@sakthivelmanii sakthivelmanii commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #18053 🦕

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for Django 6.0, including dependency updates, tuple-casting for lookup parameters, an asynchronous autocommit setter, and a Spanner-specific JSON path compiler. The review feedback highlights critical improvements: resolving syntax, type, and SQL injection issues in compile_json_path by utilizing json.dumps; wrapping the async autocommit operation in self.execute_wrapper to align with Django standards; and fixing invalid shell syntax and compatibility issues in the new test suite script.

Comment thread packages/django-google-spanner/django_spanner/operations.py Outdated
Comment thread packages/django-google-spanner/django_spanner/base.py
Comment thread packages/django-google-spanner/django_test_suite_6.0.sh Outdated
…s ImportError, mockserver tests, and zizmor pin
"sqlparse >= 0.3.0",
"google-cloud-spanner >= 3.13.0",
"django >= 5.2, < 6.0",
"django >= 4.2, < 6.1",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to support django 4.2? If so, we should have a corresponding action like packages/django-google-spanner/django_test_suite_6.0.sh

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. We are no longer supporting 4.2. i will remove this. I am still working on this PR. Will do it before marking it ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(django-spanner): support Django 6.0

2 participants