Closed Bug 477712 Opened 17 years ago Closed 17 years ago

[W-1.3.*] Collection Creation Scaffolding

Categories

(addons.mozilla.org Graveyard :: Collections, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: fligtar, Assigned: rdoherty)

References

()

Details

Attachments

(1 file, 3 obsolete files)

Scaffolding: The collection creation form should have fields for the collection name, description, and whether it is listed in the directory. The collection ID should be auto-generated upon creation.
Attached patch Collection creation patch (obsolete) — Splinter Review
Collection creation scaffolding. Very simple, just needs a sanity check to verify nothing is horribly wrong. Frontend code will be rewritten.
Attachment #361545 - Flags: review?(lorchard)
Attached patch Patch with views (obsolete) — Splinter Review
Forgot to add the views.
Attachment #361545 - Attachment is obsolete: true
Attachment #361566 - Flags: review?(lorchard)
Attachment #361545 - Flags: review?(lorchard)
Attachment #361566 - Flags: review?(lorchard) → review-
Comment on attachment 361566 [details] [diff] [review] Patch with views When I try this, I get this SQL error and no new row is added to the collections table: Warning: SQL Error: 1452: Cannot add or update a child row: a foreign key constraint fails (`remora/collections`, CONSTRAINT `collections_addontype_ibfk_1` FOREIGN KEY (`addontype_id`) REFERENCES `addontypes` (`id`)) Additionally, it looks like the insert generated by the model is missing a user_id: INSERT INTO `collections` (`name`,`listed`,`description`,`created`,`modified`) VALUES (295974,1,295975,'2009-02-10 16:16:05','2009-02-10 16:16:05')
Attached patch fixed patch (obsolete) — Splinter Review
Attachment #361566 - Attachment is obsolete: true
Attachment #361634 - Flags: review?(lorchard)
Attachment #361634 - Attachment is obsolete: true
Attachment #361636 - Flags: review?
Attachment #361634 - Flags: review?(lorchard)
Attachment #361636 - Flags: review? → review?(lorchard)
Comment on attachment 361636 [details] [diff] [review] new patch with views Applied the patch, added a few collections, everything looks good now!
Attachment #361636 - Flags: review?(lorchard) → review+
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
The new SQL has been run on production and staging, but I can't seem to create a collection. Ryan, would you mind looking into this? https://bandwagon.stage.mozilla.com/en-US/firefox/collections/add
Scaffolding verified FIXED on https://preview.addons.mozilla.org/en-US/firefox/collections/add/; we're able to create collections now, so comment 8 WFM.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: