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

[FO - Bailleur] Problème sur la recherche multi-terme quand l'option de nettoyage ([RADIE]) est activé #2537

Merged
merged 1 commit into from
May 7, 2024

Conversation

sfinx13
Copy link
Collaborator

@sfinx13 sfinx13 commented May 6, 2024

Ticket

#2534

Description

La récupération des bailleurs (auto-complete) en front ne fonctionne pas comme prévu avec plusieurs termes.
Exemple:
Bien qu'en base de donnée le bailleur se nomme 13 Habitat, la recherche sur habitat 13 ou 13 habitat doit retourner le même résultat

Changements apportés

  • Ajout d'une condition pour traitement uniquement sur le bailleur avec la mention radié et non sur tous les bailleur
  • Dans la fonction de filtrage, travailler uniquement avec le premier terme

Pré-requis

Pour ne pas se limiter au bailleur des fixtures

make console app="import-bailleur"

Tests

  • Depuis le formulaire en tant que déclarant avec logement social, rechercher un bailleur radié ou non avec plusieurs termes

Copy link

sonarcloud bot commented May 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Collaborator

@hmeneuvrier hmeneuvrier left a comment

Choose a reason for hiding this comment

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

Relecture OK et tests OK :
(avec un signalemment dans le 44)

  • si je cherche "habitat auvergne" j'ai bien "S.A. AUVERGNE HABITAT" qui sort
  • Pareil, si je cherche "44 O", "O.P.H. 44" sort bien
  • et si je cherche "centre limousin logis", j'ai bien "[Radié(e)] S.A. NOUV. LOGIS CENTRE LIMOUSIN" donc pour moi tout est OK

Copy link
Collaborator

@emilschn emilschn left a comment

Choose a reason for hiding this comment

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

Test et lecture ok !

@emilschn emilschn merged commit 637f0cf into main May 7, 2024
3 checks passed
@sfinx13 sfinx13 deleted the hotfix/2534-search-multi-term branch May 7, 2024 19:02
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.

None yet

3 participants