-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Signalement] Enregistrement de l'identifiant BAN #3345
base: develop
Are you sure you want to change the base?
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.
Quelques remarques et proposition dans le code.
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.
tests OK
5f3b25f
to
1c2f1cb
Compare
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.
Une petite remarque sur le paramètre limite
@@ -330,6 +334,21 @@ private function setAddressData(): void | |||
) | |||
->setAdresseAutreOccupant($this->signalementDraftRequest->getAdresseLogementComplementAdresseAutre()) | |||
->setManualAddressOccupant($this->signalementDraftRequest->getAdresseLogementAdresseDetailManual()); | |||
|
|||
// Update geoloc and BAN ID if manual edit | |||
if ($this->signalement->getManualAddressOccupant()) { |
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.
je comprends l'idée mais à mon avis on pourrais le faire dans tous les cas
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.
Oui ok
Pour la geoloc, ça me semble secondaire (on est forcé de le faire en front), mais pour l'ID BAN, il faut le faire de toute façon, et du coup, je le dégage de la partie front parce que c'est de la donnée trimballée inutilement
@@ -88,7 +88,7 @@ export function attacheAutocompleteAddressEvent (inputAdresse) { | |||
addressGroup.innerHTML = '' | |||
selectionIndex = -1 | |||
} | |||
|
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.
linter js...
const buttonElement = document.getElementById('tabpanel-'+currentHash) | ||
const tabElement = document.getElementById('tabpanel-'+currentHash+'-panel'); | ||
if(buttonElement && tabElement){ | ||
const currentHash = window.location.hash !== '' ? window.location.hash.substring(1) : '' |
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.
linter js...
98b41a9
to
4efef2a
Compare
Quality Gate passedIssues Measures |
Ticket
#3322
Description
Afin de mieux s'interfacer avec d'autres SI, on enregistre l'identifiant retourné par la BAN qui correspond à un regroupement entre le code INSEE de la commune, un code pour la voie, et le numéro sur la voie.
Changements apportés
Pré-requis
npm run watch
make composer
make execute-migration name=Version20241125151642 direction=up
Tests
make console app="init-id-ban"