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

Topic: filter by extras or tag value #51

Closed
abulte opened this issue Oct 5, 2023 · 6 comments · Fixed by opendatateam/udata#2904
Closed

Topic: filter by extras or tag value #51

abulte opened this issue Oct 5, 2023 · 6 comments · Fixed by opendatateam/udata#2904
Labels
enhancement Améliorations et nouvelles fonctionnalités

Comments

@abulte
Copy link
Contributor

abulte commented Oct 5, 2023

In order to display all ecospheres-related topics, we need a way to filter the topics list by a value of a particular extra or a tag.

GET /topics?extras__is_ecospheres=True or GET /topics?tags=ecospheres

ATM we have to fetch all the pages to get all the topics and filter them client-side.

@abulte abulte converted this from a draft issue Oct 5, 2023
@maudetes maudetes added the enhancement Améliorations et nouvelles fonctionnalités label Oct 5, 2023
@maudetes
Copy link

maudetes commented Oct 5, 2023

On pourrait rajouter un filtre sur les tags associés aux topics sinon ? Ca me semble plus simple que des extras beaucoup plus génériques, mais peut-être que ça ne répond pas totalement ?

(Originellement, les tags avaient un autre rôle, though)

@abulte abulte changed the title Topic: filter by extras value Topic: filter by extras or tag value Oct 5, 2023
@abulte
Copy link
Contributor Author

abulte commented Oct 5, 2023

@maudetes yes certainement plus simple avec les tags, qui sont "contrôlés" sur les topics. On est d'accord que c'est pas encore possible ?

@maudetes
Copy link

maudetes commented Oct 5, 2023

yes, c'est à faire !

@streino
Copy link
Contributor

streino commented Oct 10, 2023

@maudetes Une idée de quand le filtre sur tag pourrait être mis en place de votre côté ?
Le workaround a pas l'air convaincant à ce stade : #89
On va se retrouver coincé car si on pousse trop de datasets dans notre univers, notre page d'affichage/édition bouquets va ramer sérieusement.

@streino streino moved this to 📋 Backlog in Ecosphères sur data.gouv Oct 11, 2023
@maudetes
Copy link

C'est en cours de traitement dans opendatateam/udata#2904, ça devrait arriver vite

@streino streino moved this from 📋 Backlog to 🏗 In progress in Ecosphères sur data.gouv Oct 12, 2023
@maudetes
Copy link

C'est déployé sur demo : https://demo.data.gouv.fr/api/1/topics/?tag=sante

@github-project-automation github-project-automation bot moved this from 👀 Review to ✅ Done in 🚀 Produit data.gouv.fr [Archivé] Oct 20, 2023
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Ecosphères sur data.gouv Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Améliorations et nouvelles fonctionnalités
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants