Multiple emails for Discourse user #1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
How Discourse manages multiple users email in this export?
6c79b9ac76/helloasso_to_discourse.py (L78)
It gives:
Looks like you don't have a secondary email, by some kind of luck when I tried:
from the returned list of users, it gave me:
How likely it is that, out of 450 users, the first of the list is you?
Anyway, I changed the code a bit:
6c06f32d09
It also prints now:
There's room for enhancement, but gotta sleep.
Not yet, but I have at last 3 hello asso account, I was wondering what happend if I put all those in Discourse
🤷 🙂
According to the code, no matter the number of emails Helloasso side and the number of emails Discourse side, as long as pairs matches, the linked account get assigned a badge.
But if you succeed in having multiple helloasso accounts with valid PyConFR registrations, each matching an distinct email alias Discourse side it can try to assign you the badge multiple times (once per matching email).
It may not go that bad as the badge can't be assigned twice (it's a per-badge discourse configuration).
But if Discourse gives a 4** HTTP error, the
raise_for_status
may just throw an unhandled exception.I'd say "if it works, don't fix it" so as long as I don't hit the exeption, I won't "fix it".
Sorry I didn’t dive into the code 🙁
I just update my Discourse account.
Now I had 3 email adresses used with HelloAsso.
Each adress has been used only for 1 event, no colision risks.
Rien de nouveau à synchro, et pas de d'expception, tout semble bien aller avec tes mails.
À mon avis tu as déjà tes badges ...
... ah oui tu as déjà tes badges.
Pour info mon adhésion et PyConFr 2023 sont avec mon mail principal.
Les 2 autres mails sont pour les adhésions passée et PyConFr 2019.
Voilà, merci pour le boulot 👍
Pas de badge pour ça :(
J'aimerai bien un badge pour ça, il me manque le design, ping @Melcore :)