Closed
Bug 477712
Opened 17 years ago
Closed 17 years ago
[W-1.3.*] Collection Creation Scaffolding
Categories
(addons.mozilla.org Graveyard :: Collections, defect)
addons.mozilla.org Graveyard
Collections
Tracking
(Not tracked)
VERIFIED
FIXED
BW-M1
People
(Reporter: fligtar, Assigned: rdoherty)
References
()
Details
Attachments
(1 file, 3 obsolete files)
|
10.83 KB,
patch
|
lorchard
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•17 years ago
|
||
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)
| Assignee | ||
Comment 2•17 years ago
|
||
Forgot to add the views.
Attachment #361545 -
Attachment is obsolete: true
Attachment #361566 -
Flags: review?(lorchard)
Attachment #361545 -
Flags: review?(lorchard)
Updated•17 years ago
|
Attachment #361566 -
Flags: review?(lorchard) → review-
Comment 3•17 years ago
|
||
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')
| Assignee | ||
Comment 4•17 years ago
|
||
Attachment #361566 -
Attachment is obsolete: true
Attachment #361634 -
Flags: review?(lorchard)
| Assignee | ||
Comment 5•17 years ago
|
||
Attachment #361634 -
Attachment is obsolete: true
Attachment #361636 -
Flags: review?
Attachment #361634 -
Flags: review?(lorchard)
| Assignee | ||
Updated•17 years ago
|
Attachment #361636 -
Flags: review? → review?(lorchard)
Comment 6•17 years ago
|
||
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+
| Assignee | ||
Comment 7•17 years ago
|
||
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 8•17 years ago
|
||
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
Comment 9•17 years ago
|
||
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
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•