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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #35147 -- Added backward incompatibility note about filtering against overflowing integers. #17795

Merged
merged 1 commit into from Feb 1, 2024

Conversation

Darbados
Copy link
Contributor

No description provided.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello! Thank you for your contribution 💪

As it's your first contribution be sure to check out the patch review checklist.

If you're fixing a ticket from Trac make sure to set the "Has patch" flag and include a link to this PR in the ticket!

If you have any design or process questions then you can ask in the Django forum.

Welcome aboard ⛵️!

Comment on lines 591 to 594
* Due to a commit meant to address a SQLite crash and a DDOS vector on
Postgres, non-wrapped arithmetic against integer fields might require
adjustments, like explicit wrapping with ``ExpressionWrapper``, see
(:ticket:`35147`).
Copy link
Member

Choose a reason for hiding this comment

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

We don't refer ticket number in a feature release notes. Maybe:

Suggested change
* Due to a commit meant to address a SQLite crash and a DDOS vector on
Postgres, non-wrapped arithmetic against integer fields might require
adjustments, like explicit wrapping with ``ExpressionWrapper``, see
(:ticket:`35147`).
* Filtering querysets against overflowing integer values now immediately
returns an empty queryset. As a consequence, you may need to use
``ExpressionWrapper`` to :ref:`explicitly wrap <using-f-with-annotations>`
arithmetic against integer fields in such cases.

Copy link
Contributor Author

@Darbados Darbados Feb 1, 2024

Choose a reason for hiding this comment

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

Thanks for the comment Mariusz. I guess the referrence to a ticket are only for Bugfixes. I rewrite the note per your suggestion.

@@ -588,6 +588,11 @@ Miscellaneous

* The minimum supported version of ``docutils`` is increased to 0.19.

* Filtering querysets against overflowing integer values now immediately
Copy link
Member

Choose a reason for hiding this comment

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

Maybe always 🤔

Suggested change
* Filtering querysets against overflowing integer values now immediately
* Filtering querysets against overflowing integer values now always

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ugh, yeah, it is always, indeed.

@felixxm felixxm changed the title Refs: #35147 -- Extend Miscellaneous section in 5.0 release notes Fixed #35147 -- Added backward incompatibility note about filtering against overflowing integers. Feb 1, 2024
@felixxm
Copy link
Member

felixxm commented Feb 1, 2024

@Darbados Thanks 👍 Welcome aboard ⛵

@charettes
Copy link
Member

Thanks for the patch both, think looks great!

@Darbados
Copy link
Contributor Author

Darbados commented Feb 1, 2024

@Darbados Thanks 👍 Welcome aboard ⛵

Thank you both for the support @felixxm and @charettes.

@felixxm felixxm merged commit 0630ca5 into django:main Feb 1, 2024
27 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
3 participants