Skip to content

Conversation

@calummackervoy
Copy link
Contributor

@calummackervoy calummackervoy commented Aug 19, 2024

🤔 Pourquoi ?

Mettre en visibilité sur chaque groupe le nom, prénom et email du conseiller emploi France Travail

🍰 Comment ?

  • Chaque demandeur d'emploi peut avoir un conseiller attaché
  • Commande importation des données d'un fichier excel
  • Montré au utilisateur dans la page détail du demandeur d'emploi
  • Requis que l'utilisateur connecté est en France et du département 30 ou 57. Pour les autres utilisateurs une annonce est affichée

🚨 À vérifier

  • Mettre à jour le CHANGELOG_breaking_changes.md ?

🏝️ Comment tester

Sur l'importation des données

python manage.py import_advisor_information [import_file.xlsx] [--wet-run]

Sur la visualisation des données

💻 Captures d'écran

Screenshot 2024-08-19 at 10 44 28

Modifiable depuis le site admin (sous JobSeekerProfile)

Screenshot 2024-08-19 at 10 44 12

@calummackervoy calummackervoy added the ajouté Ajouté dans le changelog. label Aug 19, 2024
@calummackervoy calummackervoy self-assigned this Aug 19, 2024


@timeit
def parse_gps_import(filename="export_gps.xlsx"):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

À partager avec le PR : #4501

@calummackervoy calummackervoy force-pushed the calum/gps-conseiller-emploi branch from ab7ce04 to 194b428 Compare August 19, 2024 13:13
@francoisfreitag francoisfreitag changed the title [ GEN-1927 ] Demandeur d’emploi: coordonnées importées des conseillers de France Travail [GEN-1927] Demandeur d’emploi: coordonnées importées des conseillers de France Travail Aug 19, 2024
@calummackervoy
Copy link
Contributor Author

@hellodeloo j'ai mis à jour la description du PR avec quelques instructions 🙂 n'hésitez pas si j'ai raté qqc !

Copy link
Member

@francoisfreitag francoisfreitag left a comment

Choose a reason for hiding this comment

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

Seul environ 10 % du fichier semble avoir été importés. Beaucoup de candidats de ce fichier sont inconnus chez nous ?

Copy link
Contributor

@hellodeloo hellodeloo left a comment

Choose a reason for hiding this comment

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

@calummackervoy j'ai fait ce commit pour corriger l'ui.

@calummackervoy calummackervoy force-pushed the calum/gps-conseiller-emploi branch from 8efccb7 to 118458b Compare August 21, 2024 12:06
@calummackervoy calummackervoy added the 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC label Aug 21, 2024
@github-actions
Copy link

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !

@calummackervoy calummackervoy force-pushed the calum/gps-conseiller-emploi branch from 118458b to 7b7d076 Compare August 21, 2024 13:00
</div>
</div>
</div>

Copy link
Member

Choose a reason for hiding this comment

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

Idéalement, mieux vaut éviter les changements qui n’ont pas de rapport avec la PR en cours.

@hellodeloo hellodeloo force-pushed the calum/gps-conseiller-emploi branch from 3cc4143 to 58d1403 Compare August 21, 2024 13:49
@calummackervoy calummackervoy force-pushed the calum/gps-conseiller-emploi branch from 58d1403 to 4dfb37e Compare August 22, 2024 07:48
@francoisfreitag
Copy link
Member

J’ai poussé un petit commit de simplification. Une mini suggestion de wording, et c’est tout bon 🎉 !

@calummackervoy calummackervoy force-pushed the calum/gps-conseiller-emploi branch from 1d9a41f to b1db5a2 Compare August 22, 2024 08:45
refactor: FranceTravailContact uses JobSeekerProfile

feat(UserDetailView): display France Travail contact

feat(import_advisor_information): handle NULL values on contact info

make quality

remove superfluous address information in test

fix: some ui adjusments

refactor: requested changes

fix(import_advisor_information.py): progress counting on matches, not row imports

refactor: requested changes

feat(gps): track expand events on conseiller infos

feat(gps): added matomo tracking on new feature

fix: CSS classes on clipboard button

Speed up the command

Instead of reading continuously the Excel document, load interesting
data into a dict and address content by NIR.

Remove unused count_missing_users

gps: importation des conseillers FT d'un fichier excel

refactor: FranceTravailContact uses JobSeekerProfile

feat(UserDetailView): display France Travail contact

feat(import_advisor_information): handle NULL values on contact info

make quality

remove superfluous address information in test

fix: some ui adjusments

refactor: requested changes

fix(import_advisor_information.py): progress counting on matches, not row imports

refactor: requested changes

feat(gps): track expand events on conseiller infos

feat(gps): added matomo tracking on new feature

fix: CSS classes on clipboard button

refactor(import_advisor_information.py): remove unused code

fix: typo

fix: matomo event name

Remove unnecessary queryset construction

fix(users/details.html): aria-label text

feat(import_advisor_information): parameterize import file
@calummackervoy calummackervoy force-pushed the calum/gps-conseiller-emploi branch from b1db5a2 to 7771c39 Compare August 22, 2024 11:05
Comment on lines +31 to +35
parser.add_argument(
"import_excel_file",
type=str,
help="The file directory of the GPS export file, with extension .xlsx",
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

J'ai décidé que ça ne vaut pas plus des contrôles sur le fichier (e.g. extension)

@calummackervoy calummackervoy added this pull request to the merge queue Aug 22, 2024
@calummackervoy calummackervoy removed the 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC label Aug 22, 2024
Merged via the queue into master with commit 401a80d Aug 22, 2024
@calummackervoy calummackervoy deleted the calum/gps-conseiller-emploi branch August 22, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ajouté Ajouté dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants