Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sphinx domain: change type of ID field #9482

Merged
merged 1 commit into from Aug 9, 2022
Merged

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Aug 8, 2022

We are using the default autofield:

Which uses the IntegerField, which has a limit of 2**31 - 1,
looks like our SphinxDomain models have passed that limit.


馃摎 Documentation preview 馃摎: https://docs--9482.org.readthedocs.build/en/9482/

@stsewd stsewd requested a review from a team as a code owner August 8, 2022 20:29
@stsewd stsewd requested a review from humitos August 8, 2022 20:29
We are using the default autofield:

- https://docs.djangoproject.com/en/4.1/ref/settings/#std-setting-DEFAULT_AUTO_FIELD
- https://docs.djangoproject.com/en/4.1/ref/models/fields/#django.db.models.AutoField

Which uses the IntegerField, which has a limit of 2**31 - 1,
looks like our SphinxDomain models have passed that limit.
Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

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

Raised in chat that the alter might be expensive or at least might block for a bit. Otherwise, this looks like something we should hotfix.

@stsewd stsewd added the Status: blocked Issue is blocked on another issue label Aug 8, 2022
@stsewd stsewd mentioned this pull request Aug 8, 2022
@humitos
Copy link
Member

humitos commented Aug 9, 2022

I'm not sure what to do with this PR for today's deploy. However, I will merge it since we can decide whether or not run the migration while doing the deploy, anyways. So, I prefer to have the image built with all the content and decide what to do with more context at that point.

@humitos humitos merged commit 2f93511 into main Aug 9, 2022
@humitos humitos deleted the change-type-id-field branch August 9, 2022 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: blocked Issue is blocked on another issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants