Closed
Bug 949080
Opened 11 years ago
Closed 11 years ago
write a south data migration to revalidate all twitter usernames in the db
Categories
(Participation Infrastructure :: Phonebook, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: jdm, Assigned: mickael.maison)
Details
(Whiteboard: [kb=1257981] [good first bug][mentor=sancus@mozilla.com][qa-])
The @ should really be stripped out of the actual link.
Reporter | ||
Comment 1•11 years ago
|
||
The relevant bit appears to be get_identifier_url: https://github.com/mozilla/mozillians/blob/master/mozillians/users/models.py#L681
Comment 2•11 years ago
|
||
@s are stripped out now by https://github.com/mozilla/mozillians/blob/master/mozillians/phonebook/validators.py#L10 before the username is saved.
There are probably people who have @s in their username in the database still, so it would be reasonable to write a data migration to run the validation function over every twitter field in the database and replace the field with the results. This would fix any old twitter usernames.
Updated•11 years ago
|
Summary: Twitter links go to twitter.com/%40name → write a south data migration to revalidate all twitter usernames in the db
Updated•11 years ago
|
Whiteboard: [mentor=sancus@mozilla.com]
Updated•11 years ago
|
Whiteboard: [mentor=sancus@mozilla.com] → [good first bug][mentor=sancus@mozilla.com]
Updated•11 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Updated•11 years ago
|
Assignee: nobody → mickael.maison
Updated•11 years ago
|
Status: NEW → ASSIGNED
Updated•11 years ago
|
Whiteboard: [good first bug][mentor=sancus@mozilla.com] → [kb=1257981] [good first bug][mentor=sancus@mozilla.com]
Comment 3•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/mozillians
https://github.com/mozilla/mozillians/commit/cc85538e689faa5722002f280716e36f42bd36d0
[fix bug 949080] South migration for twitter usernames.
Remove '@' from the start of twitter usernames.
Version: next → other
Updated•11 years ago
|
Version: other → next
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 4•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/mozillians
https://github.com/mozilla/mozillians/commit/63d2091a36b5ed76d60a29d54aa884f3d29997cf
[bug 949080] Add missing import in case of error.
Updated•11 years ago
|
Version: other → next
Comment 5•11 years ago
|
||
Marking as verified [qa-]
Status: RESOLVED → VERIFIED
Whiteboard: [kb=1257981] [good first bug][mentor=sancus@mozilla.com] → [kb=1257981] [good first bug][mentor=sancus@mozilla.com][qa-]
Updated•11 years ago
|
Version: next → 2014-02.1
You need to log in
before you can comment on or make changes to this bug.
Description
•