Skip to content

Conversation

NandanaRaol
Copy link
Contributor

@NandanaRaol NandanaRaol commented Jun 3, 2025

This pull request introduces support for Django 5.1, updates compatibility checks for removed index_together, and adjusts testing and dependency configurations accordingly.
Document link: TASK1 Removing Dependency On Index_together().loop
Ado link: https://sqlclientdrivers.visualstudio.com/mssql-django/_workitems/edit/37632

@Copilot Copilot AI review requested due to automatic review settings June 3, 2025 09:17
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for Django 5.1 by updating dependency/version requirements, updating tests to verify index creation via Meta.indexes instead of index_together, and adding conditional logic to legacy index_together handling for compatibility.

  • Updated dependency declarations (tox.ini, setup.py, classifiers) to include Django 5.1.
  • Modified test assertions (test_indexes.py) to check explicit index definitions via Meta.indexes.
  • Added version checks in schema generation (mssql/schema.py) and provided new pipeline matrices (azure-pipelines.yml) to test against Django 5.1.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tox.ini Added Django 5.1 dependency range
testapp/tests/test_indexes.py Replaced index_together based tests with checks for Meta.indexes
setup.py Updated Django dependency range and classifiers
mssql/schema.py Added version checks for index_together handling; updated SQL generation comments
azure-pipelines.yml Extended pipeline matrix to include multiple Python versions with Django 5.1 support
Comments suppressed due to low confidence (1)

azure-pipelines.yml:27

  • [nitpick] Consider standardizing the matrix naming (e.g. without spaces) to ensure compatibility with downstream processing if these keys are referenced programmatically.
Python3.13 - Django 5.1:

Copy link
Collaborator

@bewithgaurav bewithgaurav left a comment

Choose a reason for hiding this comment

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

lgtm, can we rename this PR to something like this - since there's no "replacement"?
FEAT: Support Django 5.1 - Remove index_together usage and update CI/Test Configs

@NandanaRaol NandanaRaol changed the title FEAT: Support Django 5.1 - Replaced Index_together with Meta. Indexes wherever necessary FEAT: Support Django 5.1 - Remove index_together usage and update CI/Test Configs Jun 4, 2025
@bewithgaurav bewithgaurav merged commit cee3a64 into dev Jun 5, 2025
5 of 50 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.

2 participants