Closed Bug 895482 Opened 8 years ago Closed 8 years ago

Tags in Popcorn Maker should be included with remix

Categories

(Webmaker Graveyard :: Popcorn Maker, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Jacob, Assigned: mjschranz)

Details

(Whiteboard: popbetter)

Attachments

(1 file)

Right now when you remix a Popcorn Maker project, the tags from the original aren't included with the remix.

We should include the tags in the Project tab by default and allow the user to change them if they want, but at least have them there to start.

This will help us in better tracking remixes and trends based on tags that the original author uses.

Also, if possible, if we tag something ourselves in the Make Editor, for those tags to carry over into a remix.
Whiteboard: popbetter
Assignee: nobody → schranz.m
Status: NEW → ASSIGNED
For some reason I'm guessing jbuck might want to weigh in.
Attachment #783238 - Flags: review?(scott)
Attachment #783238 - Flags: review?(jon)
Comment on attachment 783238 [details]
https://github.com/mozilla/popcorn.webmaker.org/pull/143/files

I made some notes in the pull request about using next() instead of responding directly.
Attachment #783238 - Flags: review?(jon)
Comment on attachment 783238 [details]
https://github.com/mozilla/popcorn.webmaker.org/pull/143/files

Fixed up. Probably don't need to Jon to review again, especially since he's PTO for the rest of the week.
Attachment #783238 - Flags: review?(jon)
Bug STR:

1. Create a project. (I had a single text event added, nothing else)
2. remix it.
3. save it.
4. refresh that page.

Expected: It should refresh that saved project, which now lives under a /edit url.
Actual: crashes popcorn maker:

TypeError: Object function ( app, options ) {
  module.exports = require("webmaker-loginapi")( app, options );
} has no method 'getUser'
    at /home/scott/popcorn.webmaker.org/lib/middleware.js:78:23
    at /home/scott/popcorn.webmaker.org/lib/project.js:130:9
    at null.<anonymous> (/home/scott/popcorn.webmaker.org/node_modules/sequelize/lib/emitters/custom-event-emitter.js:40:43)
    at EventEmitter.emit (events.js:95:17)
    at null.<anonymous> (/home/scott/popcorn.webmaker.org/node_modules/sequelize/lib/query-interface.js:291:17)
    at EventEmitter.emit (events.js:95:17)
    at module.exports.onSuccess (/home/scott/popcorn.webmaker.org/node_modules/sequelize/lib/dialects/sqlite/query.js:138:10)
    at Statement.<anonymous> (/home/scott/popcorn.webmaker.org/node_modules/sequelize/lib/dialects/sqlite/query.js:39:55)
--> in Database#all('SELECT * FROM `Projects` WHERE `Projects`.`id`=29;', [Function])
    at executeSql (/home/scott/popcorn.webmaker.org/node_modules/sequelize/lib/dialects/sqlite/query.js:35:52)
    at Statement.<anonymous> (/home/scott/popcorn.webmaker.org/node_modules/sequelize/lib/dialects/sqlite/query.js:54:13)
Attachment #783238 - Flags: review?(scott) → review-
Comment on attachment 783238 [details]
https://github.com/mozilla/popcorn.webmaker.org/pull/143/files

Yeah, this seems to be good now.
Attachment #783238 - Flags: review?(scott) → review+
Commit pushed to master at https://github.com/mozilla/popcorn.webmaker.org

https://github.com/mozilla/popcorn.webmaker.org/commit/52afc2e17955bdfa2ce89b6690afe18d755eac07
Fix Bug 895482 - Have a projects tags cascade to remixes. Refactor some server code
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Needs verify.
Flags: needinfo?(schranz.m)
Status: RESOLVED → VERIFIED
Flags: needinfo?(schranz.m)
Attachment #783238 - Flags: review?(jon)
You need to log in before you can comment on or make changes to this bug.