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

[BUG] corriger envoie de requêtes nouveau formulaire #2596

Merged
merged 2 commits into from
May 30, 2024

Conversation

numew
Copy link
Collaborator

@numew numew commented May 29, 2024

Ticket

#2595

Description

  • Correction : Lorsque que l'on saisie une adresse totalement manuellement, le champ "adresse_logement_adresse" est envoyé vide.
  • Modification : Utilisation de l'étape pour déterminer si on envoie la requête de soumission des données du formulaire
  • Modification : augmentation de la latence avant appel du checkterritory pour éviter popup intempestive en cas d'erreur de frappe ou frappe lente

Tests

  • Soumettre un formulaire en renseignant une adresse complètement libre (ne rien taper dans le champs BAN) et verifier que le parcours fonctionne jusqu'à la soumission finale

@numew numew requested review from emilschn, sfinx13 and hmeneuvrier and removed request for emilschn and sfinx13 May 29, 2024 12:05
(formStore.data.vos_coordonnees_occupant_email !== undefined ||
formStore.data.vos_coordonnees_tiers_email !== undefined)
) {
if (formStore.currentScreen && formStore.currentScreen.slug !== 'adresse_logement' && formStore.currentScreen.slug !== 'signalement_concerne') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

on peut mettre cette condition dans une fonction ?

this.isTyping = true
clearTimeout(this.idFetchTimeout)
this.idFetchTimeout = setTimeout(() => {
this.isTyping = false
requests.validateAddress(search, this.handleUpdateInsee)
}, 300)
}, 2000)
Copy link
Collaborator

Choose a reason for hiding this comment

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

C'est un peu long :)
Si on choisit un lieu hors territoire ouvert, et qu'on clique sur suivant avant la popup (2 secondes + temps de la requête), on ne voit jamais la popup. (j'ai fait le test)
Je comprends le côté frustrant avec 300ms. Mais il faut raccourcir :)

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.

2 retours

Copy link

sonarcloud bot commented May 30, 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

@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.

Vu ensemble, je valide.
Ce sera revu avec une version plus idéale dans un ticket à venir.

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.

Ok pour moi ! :) tests et lecture

@hmeneuvrier hmeneuvrier merged commit ae2baf2 into develop May 30, 2024
3 checks passed
@hmeneuvrier hmeneuvrier deleted the feature/2595-fix-bug-send-request-form branch June 11, 2024 10:28
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