Skip to content

Conversation

@gregorjerse
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 4, 2025 12:25
Copy link

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 upgrades the project to Django 6, which introduces breaking changes requiring updates to Django APIs and configuration.

  • Updated Django version dependency from ~5.2.7 to ~6.0
  • Replaced deprecated check parameter with condition in CheckConstraint across models and migrations
  • Refactored test runner to remove multiprocessing workarounds and simplify worker initialization
  • Added django.contrib.postgres to installed apps

Reviewed changes

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

Show a summary per file
File Description
pyproject.toml Updated Django dependency to version 6.0
tests/settings.py Added django.contrib.postgres to INSTALLED_APPS
resolwe/test_helpers/test_runner.py Removed multiprocessing workaround and simplified worker initialization logic
resolwe/permissions/models.py Replaced deprecated check parameter with condition in CheckConstraint
resolwe/permissions/migrations/0001_initial.py Replaced deprecated check parameter with condition in migration CheckConstraint
resolwe/flow/models/annotations.py Replaced deprecated check parameter with condition in CheckConstraint
resolwe/flow/migrations/0008_annotations.py Replaced deprecated check parameter with condition in migration CheckConstraint

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"""Standard parallel suite with a custom worker initializer."""

init_worker = _custom_worker_init(ParallelTestSuite.init_worker)
init_worker = partial(_custom_worker_init, django_init_worker=ParallelTestSuite.init_worker)
Copy link

Copilot AI Dec 4, 2025

Choose a reason for hiding this comment

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

Missing import for partial from functools. This will cause a NameError at runtime.

Copilot uses AI. Check for mistakes.
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.

1 participant