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

[Recherche] Remonter les prestataires qui ont un logo #913

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

raphodn
Copy link
Contributor

@raphodn raphodn commented Sep 19, 2023

Quoi ?

Dans les résultats de recherche, booster la position des prestataires qui ont un logo (on boostait déjà ceux qui avaient rempli leur prestations et leur description)

@raphodn raphodn self-assigned this Sep 19, 2023
Copy link
Contributor

@SebastienReuiller SebastienReuiller left a comment

Choose a reason for hiding this comment

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

LG 😉

@@ -1016,35 +1016,44 @@ def test_should_order_by_last_updated(self):
self.assertEqual(siaes[0].name, "ABC Insertion")

def test_should_bring_the_siae_with_users_to_the_top(self):
siae_with_user = SiaeFactory(name="ZZ ESI")
siae_with_user = SiaeFactory(name="ZZ ESI user")
Copy link
Contributor

Choose a reason for hiding this comment

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

Pourquoi tu ne mets pas les factories dans le setUpTestData ? Ça permettrait de vérifier que les structures avec description passent bien devant celles avec logo.

Copy link
Contributor Author

@raphodn raphodn Sep 20, 2023

Choose a reason for hiding this comment

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

En fait ici il y a plusieurs tests quasi identiques, où l'on créé des structures avec logo, mais aussi avec description ou avec offer ou avec user, et on s'assure qu'elle remonte au dessus.
Donc si on les créé dans le setUpTestData ca serait compliqué à tester chaque cas de figure ensuite

@raphodn raphodn merged commit a2d0cbd into master Sep 20, 2023
2 checks passed
@raphodn raphodn deleted the raphodn/siae-search-order-logo branch September 20, 2023 15:17
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.

2 participants