Skip to content

chore: complete migration of django-google-spanner to librarian#16748

Draft
jskeet wants to merge 1 commit intogoogleapis:mainfrom
jskeet:enable-django
Draft

chore: complete migration of django-google-spanner to librarian#16748
jskeet wants to merge 1 commit intogoogleapis:mainfrom
jskeet:enable-django

Conversation

@jskeet
Copy link
Copy Markdown
Contributor

@jskeet jskeet commented Apr 21, 2026

The README.rst change is just using a full copy of the parent README.rst instead of an include. (That is then consistent with all other packages.)

The README.rst change is just using a full copy of the parent
README.rst instead of an include. (That is then consistent with all
other packages.)
@jskeet jskeet requested a review from ohmayr April 21, 2026 11:32
@jskeet jskeet requested review from a team as code owners April 21, 2026 11:32
Copy link
Copy Markdown
Contributor

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

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 enables generation for the django-google-spanner library, updates its repository metadata, and replaces the documentation include with a comprehensive README. Review feedback identifies several syntax issues in the new documentation, including incorrect reStructuredText link formatting, the use of Markdown link syntax instead of RST, and a lowercase boolean literal in a Python code example.

<https://docs.djangoproject.com/en/3.2/>`_, and `Django 4.2
<https://docs.djangoproject.com/en/4.2/>`_.
Both versions are long-term support (LTS) releases for the
`Django project<https://www.djangoproject.com/download/#supported-versions>_`.
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.

medium

The reStructuredText link syntax is incorrect. It is missing a space before the opening angle bracket for the link text. Additionally, using a double underscore __ is preferred for anonymous inline links to match the style used elsewhere in this file.

Suggested change
`Django project<https://www.djangoproject.com/download/#supported-versions>_`.
Django project <https://www.djangoproject.com/download/#supported-versions>__.

'PROJECT': '$PROJECT',
'INSTANCE': '$INSTANCE',
'NAME': '$DATABASE',
'RANDOM_ID_GENERATION_ENABLED': false,
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.

medium

In Python, the boolean literal for false is False (capitalized). Since this is inside a .. code:: python block, it should follow Python syntax.

Suggested change
'RANDOM_ID_GENERATION_ENABLED': false,
'RANDOM_ID_GENERATION_ENABLED': False,


Django version 4.2 and higher by default supports transactions in autocommit mode.
A transaction is automatically started if you define an
[atomic block](https://docs.djangoproject.com/en/4.2/topics/db/transactions/#controlling-transactions-explicitly).
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.

medium

This line uses Markdown link syntax text, but the file is in reStructuredText (RST) format. It should be converted to RST link syntax.

Suggested change
[atomic block](https://docs.djangoproject.com/en/4.2/topics/db/transactions/#controlling-transactions-explicitly).
atomic block <https://docs.djangoproject.com/en/4.2/topics/db/transactions/#controlling-transactions-explicitly>__.

@parthea
Copy link
Copy Markdown
Contributor

parthea commented Apr 21, 2026

Switching to draft until presubmits are green

@parthea parthea marked this pull request as draft April 21, 2026 14:00
@parthea
Copy link
Copy Markdown
Contributor

parthea commented Apr 21, 2026

@ohmayr , We'll need to disable the failing tests, file a bug to follow up on it and disable releases for this package while we investigate

@parthea
Copy link
Copy Markdown
Contributor

parthea commented Apr 21, 2026

We may be able to wait for #16624

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.

3 participants