Closed
Bug 679193
Opened 13 years ago
Closed 13 years ago
profile: bug - duplicate interests
Categories
(developer.mozilla.org Graveyard :: Wiki pages, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
1.4
People
(Reporter: groovecoder, Assigned: jbennett)
References
()
Details
(Whiteboard: c=profile u=contributor p=2)
Might be seeing this now that users are filling in the interests tags? 1. Edit your interests with a popular auto-complete, e.g., javascript 2. Save profile Interests shows "JAVASCRIPT javascript Javascript"
Reporter | ||
Comment 1•13 years ago
|
||
Just show lowercase tags.
Whiteboard: c=profile u=contributor p= → c=profile u=contributor p=1
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → jbennett
Comment 2•13 years ago
|
||
django-taggit tags are case-sensitive. The easiest fix would be to force all tag input to lower-case at the form or model level. A harder fix would be to subclass some django-taggit model classes to do case-insensitive queries when looking for existing tags. That way, the first tag spelling wins. However, that would not preserve the tag case per-user. (eg. user1 uses JavaScript, user2 uses javascript but sees JavaScript) Preserving case per-user would be much, much harder and not really worth pursuing, IMO. If we really wanted to be picky about case in spelling, we could impose spelling for recommended tags and accept the first user's spelling for all other tags.
Reporter | ||
Comment 3•13 years ago
|
||
I think convert everything to lower-case at the model level is the best answer.
Comment 4•13 years ago
|
||
(In reply to Luke Crouch [:groovecoder] from comment #3) > I think convert everything to lower-case at the model level is the best > answer. model-level is slightly trickier than form-level, too, FWIW. In the form, it would probably be a one-liner in the clean method. For the model, you'd need to make a subclass of two taggit manager classes.
Comment 5•13 years ago
|
||
Bumping to 1.2 for triage, since we're at code freeze for 1.1 and these bugs are most likely not going to make it.
Target Milestone: 1.1 → 1.2
Assignee | ||
Comment 6•13 years ago
|
||
On further investigation, this one's deep enough that it isn't going to make it for 1.2 (and may need splitting up into multiple bugs for 1.3 or later).
Whiteboard: c=profile u=contributor p=1 → c=profile u=contributor p=2
Target Milestone: 1.2 → 1.3
Assignee | ||
Updated•13 years ago
|
Whiteboard: c=profile u=contributor p=2 → c=profile u=contributor p=1
Reporter | ||
Updated•13 years ago
|
Whiteboard: c=profile u=contributor p=1 → c=profile u=contributor p=2
Assignee | ||
Comment 7•13 years ago
|
||
OK, so this one is *really* fun. It only manifests on MySQL, and only when MySQL is using a case-insensitive collation (I've got a minimal app/project that can replicate this easily). Fixing it is going to involve: 1. Changing the way we handle tags to force them to a consistent case on saving (which will avoid ending up with multiple versions of a tag in different cases). This isn't too bad. 2. Figure out a way to unify the existing tags in the DB to that consistent case scheme, and migrate all the existing data without dropping any individual user's tags in the process. This is hard. Or... 3. When we fetch a user's tags, filter them somehow to only get tags in the case scheme we're actually going to use. This is more of a band-aid approach, but could be done a bit more quickly than the real solution in (2).
Assignee | ||
Comment 8•13 years ago
|
||
Per Luke, bumping to 1.4; we'll probably go with the band-aid approach there, and then figure out the scheduling to do the permanent fix later one.
Target Milestone: 1.3 → 1.4
Comment 9•13 years ago
|
||
Commit pushed to https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/fc588ffc4dafd5c76b81383535960616dfdb988d Bug 679193: Do some case-based filtering of duplicate tags as a band-aid until we solve the real case-sensitivity problem.
Comment 10•13 years ago
|
||
Commit pushed to https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/fc588ffc4dafd5c76b81383535960616dfdb988d Bug 679193: Do some case-based filtering of duplicate tags as a band-aid until we solve the real case-sensitivity problem.
Comment 11•13 years ago
|
||
Commit pushed to https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/85e76874b1fe4bbfb387bc132bf86b9af71da8f3 Bug 679193: Regardless of whether we ever work out a migration for killing the existing dupes, we need this to avoid creating new ones.
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 12•13 years ago
|
||
verified fixed https://developer.mozilla.org/en-US/profiles/groovecoder/
Status: RESOLVED → VERIFIED
Updated•12 years ago
|
Version: MDN → unspecified
Updated•12 years ago
|
Component: Website → Landing pages
Updated•4 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•