Skip to content

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
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

@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

@shortcuts shortcuts merged commit b71984f into master Dec 24, 2024
19 checks passed
shortcuts added a commit that referenced this pull request Dec 26, 2024
## 🧭 What and Why

🎟 Related Issue: https://algolia.atlassian.net/browse/DI-3248

### Changes included:

```
2024-12-26 4.0.0
  * [MAJOR] drop support for python <3.8 [#336](#336)
  * [MAJOR] drop support for django <4.0 [#336](#336)
  * [MAJOR] remove method `clear_index` in favor of `clear_objects` [#336](#336)
```
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