-
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 - BO] Import Données 67 Bas Rhin #2128
Conversation
foreach ($partnersName as $partnerName) { | ||
$partnerNameCleaned = preg_replace('/[\x00-\x1F\x7F\xA0]/u', '', $partnerName); // remove non printable chars |
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.
Sympa la regex 😂
use Psr\Log\LoggerInterface; | ||
use Symfony\Component\Console\Helper\ProgressBar; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; | ||
|
||
class SignalementImportLoader | ||
{ | ||
private const FLUSH_COUNT = 200; | ||
private const FLUSH_COUNT = 20; |
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.
Un peu plus de 20 c'était pas possible, j'imagine ?
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.
c’était possible mais j'ai préféré réduire vu que le temps de traitement avec les images augmente pas mal et que j'ai supprimé le flush dans la partie loadFiles
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.
J'approuve la PR (test + code OK)
Warinig remonté sur le channel https://mattermost.incubateur.net/betagouv/pl/6nc8fnmiitypxkxxqcdfgpoxph
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.
2 commentaires de relecture, je n'ai pas encore testé :)
Je met en draft en attendant le fichier modifié qu'il prépare suite au premiers retours (warning sur les partenaire) |
|
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.
OK lecture et test
Ticket
#1963
Description
Amélioration de la commande d'import des signalements (pour traitement des import du 67)
Changements apportés
Tests
make console app="import-signalement 67
)