-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix: remove legacy filters from site route + allow filtering type_sites by name #416
base: develop
Are you sure you want to change the base?
fix: remove legacy filters from site route + allow filtering type_sites by name #416
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci pour la contribution. Par contre, ce serait sympatique de rajouter un test
@@ -156,19 +154,6 @@ def query_all_types_site_from_module_id(id_module: int = None): | |||
|
|||
|
|||
def filter_according_to_column_type_for_site(query, params): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Est-ce que ça a encore un sens de garder cette fonction ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
De ce que j'en comprends, effectivement on peut la supprimer. Je fais une passe début de semaine prochaine pour vérifier son impact
else: | ||
# HACK gestionnaire des sites | ||
# Quand filtre sur type de site envoie une chaine de caractère | ||
params["types_site_label"] = value[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Est-ce qu'il ne faudrait pas supprimer types_site de params ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pour l'interface graphique, c'est sûr qu'il ne sert pas.
Si quelqu'un veut faire des filtres directement depuis l'API ça peut être intéressant de le conserver (mais pas obligatoire)
c448ea8
to
3512e04
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #416 +/- ##
===========================================
- Coverage 75.93% 75.21% -0.72%
===========================================
Files 30 30
Lines 2410 2429 +19
===========================================
- Hits 1830 1827 -3
- Misses 580 602 +22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
filter_according_to_column_type_for_site
function