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

[DONE] change all filter_fields = () in filterset_fields = [] #1191

Conversation

MichelAimar
Copy link
Collaborator

@MichelAimar MichelAimar commented Aug 28, 2024

… filter_fields is deprecated.

Before sending your pull request, make sure the following are done

  • You have read our contribution guidelines.
  • Your PR targets the develop branch.
  • The title of your PR starts with [WIP] or [DONE].

@Badatos
Copy link
Collaborator

Badatos commented Aug 28, 2024

Bonjour,
Merci pour cette contribution.

Pouvez-vous suivre les pré-requis de ce dépôt svp :

  • Your PR targets the develop branch.
  • The title of your PR starts with [WIP] (work in progress) or [DONE] (ready for review).

@MichelAimar
Copy link
Collaborator Author

Ah zut, désolé, j'ai suivi une doc mais c'était celle de Esup Portal :(

@MichelAimar MichelAimar changed the title change all filter_fields = () in filterset_fields = [] [DONE] change all filter_fields = () in filterset_fields = [] Aug 28, 2024
@MichelAimar MichelAimar changed the base branch from master to develop August 28, 2024 13:14
@MichelAimar
Copy link
Collaborator Author

Voila je pense avoir modifié le PR ... Par contre les tests pour la 3.10 n'ont pas l'air de passer mais je ne sais pas si c'est important ...

@Badatos
Copy link
Collaborator

Badatos commented Aug 28, 2024

Merci pour les corrections.
Il arrive que les tests coincent un peu. Je relance la 3.10

Copy link
Collaborator

@gcondess gcondess left a comment

Choose a reason for hiding this comment

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

RAS (sauf pour être tatillon sur la cosmetique : est ce que la virgule ne peut pas être supprimée après "video" dans la liste filterset_fields = ["video",] ?

@MichelAimar
Copy link
Collaborator Author

Bin, elle y était dans le code avant .... je n'en ai aucune idée ....

@gcondess
Copy link
Collaborator

gcondess commented Sep 4, 2024

Python autorise les virgules en debut et fin de liste, c'est donc syntaxiquement correct mais comme cette dernière virgule n'apparait pas en fin des listes précédentes ma remarque visait juste à homogénéiser le style (mais bon c'est du tatillonage ;)

Copy link
Collaborator

@Badatos Badatos left a comment

Choose a reason for hiding this comment

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

Merci pour cette PR !
En effet, comme on peut le voir ici https://django-filter.readthedocs.io/en/stable/guide/migration.html#migrating-to-2-0
Les filter_fields de django-filter > 2.0 sont deprecated depuis 2018-7-13, au profit des nouveaux filterset_fields, et ont été complètement retirés en 22.1 (2022-6-17)
Il est temps en effet de corriger cela ;)
cf https://github.com/carltongibson/django-filter/blob/main/CHANGES.rst

@Badatos Badatos merged commit 4feefc4 into EsupPortail:develop Sep 5, 2024
3 checks passed
@MichelAimar MichelAimar deleted the correctifs-filter_fields-en-filterset_fields branch September 6, 2024 07:02
Badatos added a commit that referenced this pull request Oct 29, 2024
## New functionalities:
* Use Whisper to format vtt subtitle (#1187)
* Remove BBB module and add sipmediagw feature (#1190)
* Add NOTIFY_SENDER boolean parameter (#1192)
* Add fields to recording rest response (#1193)
* Add return thumbnail url,width and height to oembed (#1194)
* Add optional proxy URL for request coming from Aristote (#1218)

## Bugs corrected:
* Change all filter_fields = () in filterset_fields = [], as filter_fields is deprecated  (#1191)
* Fix multi carousel (#1200)
* Change regroup videos by theme when ORGANIZE_BY_THEME = True (#1203)
* Bug habillage (#1211)
* Fix migration script for BBB (#1214)
* Improve RSS Feeds (#1215)
* Fix BBB meeting deletion link (issue #1216)
* No crop on thumbnail (#1217)
* Use `get_thumbnail` to serve video thumbnail via caching system, to prevent video folder url to be publicly available (#1221)
* Addition of a toolbar in the theme description editor of a chain. (issue #1185)
* Correction enabling channels and themes to be assigned to a set of videos (issue #1106)
* Manage restricted video access right in playlist

## Accessibility improvements: (#1219)
* Modify some redundant title strings, adding the targeted object
* Remove some redundant titles
* Correct i18n strings
* Correct duplicated id
* Remove broken aria-label id
* Add flatpage title in h1 for accessibility + remove H1 title in legal notice and accessibility statement pages

## Quality of Code:
* Minor code formatting
* Add missing DocStrings
* Upgrade GitGuardian config version
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.

4 participants