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

feat!: support new algoliasearch and django versions #336

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Nov 20, 2024

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-3186 https://algolia.atlassian.net/browse/DI-3187 https://algolia.atlassian.net/browse/DI-3188 https://algolia.atlassian.net/browse/DI-3189 https://algolia.atlassian.net/browse/DI-3191 https://algolia.atlassian.net/browse/DI-3247
https://algolia.atlassian.net/browse/DI-3190

closes #333
closes #249

Changes included:

upgrade the package to support django v4 and v5, also upgrade the algoliasearch client

List of breaking changes:

  • drop support for python <3.8
  • drop support for django <4.0
  • remove method clear_index, use clear_objects instead
  • upgrade to algoliasearch +4.0

@shortcuts shortcuts changed the title chore: upgrade tooling feat!: support new algoliasearch and django versions Nov 20, 2024
algoliasearch_django/models.py Outdated Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
Copy link

@millotp millotp left a comment

Choose a reason for hiding this comment

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

soooo nice, gg


[testenv:lint]
deps =
ruff {[versions]ruff}
Copy link

Choose a reason for hiding this comment

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

❤️

Website.objects.create(name='Facebook', url='https://www.facebook.com')
Website.objects.create(name='Facebook', url='https://www.facebook.fr')
Website.objects.create(name='Facebook', url='https://fb.com')
Website(name="Algolia", url="https://www.algolia.com", is_online=False)
Copy link

Choose a reason for hiding this comment

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

can you configure ruff to use single quote as before ? or you prefer double quotes ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I went with the default configuration just to have simpler maintenance logic but... I don't really mind

setup.py Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
algoliasearch_django/registration.py Show resolved Hide resolved
MAINTAINERS.md Outdated Show resolved Hide resolved
.github/PULL_REQUEST_TEMPLATE.md Outdated Show resolved Hide resolved
@shortcuts shortcuts marked this pull request as ready for review December 16, 2024 13:26
@shortcuts shortcuts self-assigned this Dec 16, 2024
Copy link

@morganleroi morganleroi left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of Django

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.

Add support for Django 4.x series Faster tests by using wait_task
3 participants