OOPS setting account as answer contact
Bug #159146 reported by
Diogo Matsubara
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Unassigned |
Bug Description
OOPS-668E1595 shows that a DB constraint was triggered setting the answer contact for the ava-bzr project.
2 IntegrityError: ERROR: duplicate key violates unique constraint "personlanguage
Related branches
lp:~sinzui/launchpad/dedup-preferred-launguages-0
- Aaron Bentley (community): Approve
-
Diff: 511 lines (+93/-82)18 files modifiedlib/canonical/launchpad/configure.zcml (+0/-2)
lib/canonical/launchpad/helpers.py (+20/-17)
lib/canonical/launchpad/interfaces/__init__.py (+0/-1)
lib/canonical/launchpad/zcml/configure.zcml (+0/-1)
lib/canonical/widgets/location.py (+2/-2)
lib/lp/registry/browser/distribution.py (+4/-4)
lib/lp/registry/browser/person.py (+1/-1)
lib/lp/services/apachelogparser/base.py (+1/-1)
lib/lp/services/configure.zcml (+3/-0)
lib/lp/services/geoip/__init__.py (+3/-0)
lib/lp/services/geoip/configure.zcml (+23/-23)
lib/lp/services/geoip/doc/geoip.txt (+5/-5)
lib/lp/services/geoip/helpers.py (+11/-6)
lib/lp/services/geoip/model.py (+2/-4)
lib/lp/services/geoip/tests/test_doc.py (+14/-10)
lib/lp/services/geoip/tests/test_request_country.py (+2/-2)
lib/lp/translations/browser/translations.py (+1/-1)
lib/lp/translations/doc/preferred-languages.txt (+1/-2)
Changed in launchpad-answers: | |
status: | In Progress → Fix Committed |
Changed in launchpad-answers: | |
milestone: | none → 10.10 |
tags: | added: qa-ok |
tags: |
added: qa-ok removed: qa-needstesting |
tags: |
added: qa-needstesting removed: qa-ok |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad-answers: | |
status: | Fix Committed → Fix Released |
Changed in launchpad: | |
assignee: | Curtis Hovey (sinzui) → nobody |
To post a comment you must log in.
This may relate to several EN variants set in the user's browser.
HTTP_ ACCEPT_ LANGUAGE: en-US,en; q=0.9,de- CH;q=0. 8,de;q= 0.6,de- DE;q=0. 5,en-GB; q=0.4,en- us;q=0. 3,en;q= 0.1
en-US, en-us, and en are all EN in Launchpad.
utilities. geoip.RequestPr eferredLanguage s should use a set() instead of a list()
to ensure each language that is looked up by code is unique.
I'm setting this to confirmed because I think we can easily write a test to confirm this OOPS.