Skip to content

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

Merged
chalmerlowe merged 2 commits intogoogleapis:mainfrom
jskeet:enable-django
Apr 28, 2026
Merged

chore: complete migration of django-google-spanner to librarian#16748
chalmerlowe merged 2 commits 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.)

@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

@parthea
Copy link
Copy Markdown
Contributor

parthea commented Apr 27, 2026

#16624 was merged. @jskeet Please could you rebase this PR?

jskeet added 2 commits April 28, 2026 06:34
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 marked this pull request as ready for review April 28, 2026 06:35
@jskeet jskeet requested a review from a team as a code owner April 28, 2026 06:35
@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Apr 28, 2026

I've now rebased and regenerated, marked ready for review - if it's green, we should merge.

@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Apr 28, 2026

@parthea: Done, but there are still two failures. I'm rerunning them to see if they're flakes.

@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Apr 28, 2026

The tests were flaky - I've filed #16839 to cover that, but I think we'd be okay to merge this now.

Copy link
Copy Markdown
Contributor

@chalmerlowe chalmerlowe left a comment

Choose a reason for hiding this comment

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

LGTM

@chalmerlowe chalmerlowe merged commit 16a516a into googleapis:main Apr 28, 2026
66 of 69 checks passed
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.

4 participants