Closed Bug 521041 Opened 15 years ago Closed 10 years ago

Make all translation foreign keys ON DELETE SET NULL and delete translations before removing data rows

Categories

(addons.mozilla.org Graveyard :: Code Quality, defect, P4)

Tracking

(Not tracked)

RESOLVED WONTFIX
4.x (triaged)

People

(Reporter: wenzel, Unassigned)

References

Details

This is same thing as bug 513962, but for all other models.

The code to delete translations needs to go into the app_model beforeDelete() callback (we can gank that from the collections model), and we need to ensure that no models overwrite beforeDelete() without calling the parent.

Also, all translation foreign keys need to become ON DELETE SET NULL, because we deleting translations will otherwise throw a foreign key error.
Moving this to 4.x make turn this into a wontfix but at least it gives a timeline to be done.
Severity: normal → minor
Priority: -- → P4
Target Milestone: --- → 4.x (triaged)
(In reply to comment #1)
> Moving this to 4.x make turn this into a wontfix but at least it gives a
> timeline to be done.

what?
s/make/may !
Does Zamboni handle this properly?
Component: Administration → Code Quality
QA Contact: administration → code-quality
Target Milestone: 4.x (triaged) → Q4 2010
Target Milestone: Q4 2010 → Q1 2011
jbalogh ran into this recently in another bug.  -> jeff to think about, but still not something we need to look at right away if we don't have time
Assignee: nobody → jbalogh
Target Milestone: Q1 2011 → 4.x (triaged)
Assignee: jbalogh → nobody
I ran into this recently too when working with the category localization page. I filed another bug which is related (or a dupe)...

https://bugzilla.mozilla.org/show_bug.cgi?id=720038
Thanks for filing this.  In an effort to not drown in existing reports we're aggressively closing old enhancements and bugs to get the buglist to a reasonable level so we can scope and process bug sprints in an effective manner.

Patches for this bug are still welcome.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.