Closed
Bug 876522
Opened 12 years ago
Closed 12 years ago
Implement /edit and /remix routes for Popcorn Maker
Categories
(Webmaker Graveyard :: Popcorn Maker, defect)
Webmaker Graveyard
Popcorn Maker
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: brett, Assigned: thecount)
References
Details
(Whiteboard: s=2013w24)
Attachments
(1 file)
In thimble, we're implementing the above routes in bug #876509. We'll need to implement this in Popcorn Maker as well.
Reporter | ||
Updated•12 years ago
|
Whiteboard: s=2013w23
Assignee | ||
Comment 2•12 years ago
|
||
I think this ticket is for the difference between edit and remix. They are not the same. This also is for this to work on the tool level.
bug 876457 to me is creating these paths on the user domain level, which just redirects to the tool level, thus it'll end up redirecting to the work done in this bug.
Assignee | ||
Comment 3•12 years ago
|
||
The way popcorn does it right now is "http://localhost:8888/templates/basic/?savedDataUrl=/api/remix/30"
Is it the goal to completely change that to "http://localhost:8888/30/remix", or just update the remix part in there, to also have an edit?
Basically, some url ideas being thrown down. I need some help figuring out where we're going with this. What do we want the tool level url to look like.
"http://localhost:8888/templates/basic/?savedDataUrl=/api/remix/30" // this is current
"http://localhost:8888/templates/basic/?savedDataUrl=/api/edit/30"
"http://localhost:8888/templates/basic/?savedDataUrl=/api/30/remix"
"http://localhost:8888/templates/basic/?savedDataUrl=/api/30/edit"
"http://localhost:8888/30/remix" // super simple
"http://localhost:8888/30/edit"
"http://localhost:8888/templates/basic/30/remix"
"http://localhost:8888/templates/basic/30/edit"
Or something inbetween?
Anything that doesn't use the ?savedDataUrl is much more work, but doable.
Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(david.humphrey)
Comment 4•12 years ago
|
||
I'm totally down with getting rid of templates/basic/ structure and savedDataUrl, but it will be a ton of work. At the very least you'll need to convert templates/basic/index.html to a nunjucks (or jade :/) template. To be honest, it's something that could easily take a week.
Comment 5•12 years ago
|
||
So, because of that, don't implement any new code is basically what I'm saying. Aim to do that after June 15th.
Assignee | ||
Comment 6•12 years ago
|
||
I actually think this is doable from here. I think we can get this in a reasonable amount of time. Couple days, not a week.
I've got it in a place where it is ready for review.
Might need to change the url we use. To avoid bikshedding the url, I went with:
http://localhost:8888/basic/id/remix
http://localhost:8888/basic/id/edit
I was able to plug into
/api/remix/id
/api/project/id
I am sure there are bits that while good to have, can wait until after the 15th. Landing the core functionality though we should do now.
Attachment #755075 -
Flags: review?(schranz.m)
Attachment #755075 -
Flags: review?(pomax)
Attachment #755075 -
Flags: review?(jon)
Attachment #755075 -
Flags: review?(david.humphrey)
Attachment #755075 -
Flags: review?(chris)
Comment 7•12 years ago
|
||
Comment on attachment 755075 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/24
Lot's of nits. You also never added nunjucks to the package.json so I had to install it myself for this all to work.
Also, while I don't think this needs to be done here, do we have something filed to have our publish urls structure themselves similarly to how Thimble does? I know with Thimble I could throw a /edit on the URL I got before and was magically in the editor.
Attachment #755075 -
Flags: review?(schranz.m) → review-
Assignee | ||
Comment 8•12 years ago
|
||
"with Thimble I could throw a /edit on the URL I got before and was magically in the editor"
That's what bug 876457 is for, I believe.
Comment 9•12 years ago
|
||
Comment on attachment 755075 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/24
Please finish with Matt's review before requesting more. I can look at this once you've got an r+ from him.
Attachment #755075 -
Flags: review?(pomax)
Attachment #755075 -
Flags: review?(jon)
Attachment #755075 -
Flags: review?(david.humphrey)
Attachment #755075 -
Flags: review?(chris)
Flags: needinfo?(david.humphrey)
Comment 10•12 years ago
|
||
Good point brought up by humph in https://bugzilla.mozilla.org/show_bug.cgi?id=876440#c11. I don't know if should worry about this in this ticket but we definitely need to factor this in.
Assignee | ||
Comment 11•12 years ago
|
||
I cleared up bug 876457's description and title.
My intent on that ticket is being lost. I tried to clear it up. Let me know if it doesn't sound like what you guys are requesting. There might still be confusion.
This ticket is for the app level url, and bug bug 876457 is for the S3 user domain level url.
I don't think we should do that in this ticket.
Assignee | ||
Comment 12•12 years ago
|
||
Comment on attachment 755075 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/24
Added the details page as per master into nunjucks.
Fixed up or commented on all your review pull request comments.
Attachment #755075 -
Flags: review- → review?(schranz.m)
Comment 13•12 years ago
|
||
Comment on attachment 755075 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/24
I had one big additional question in the comments.
Also, you still didn't add nunjucks as a dependency in the package.json. I'd throw this to Jon afterwards since he's back now.
Attachment #755075 -
Flags: review?(schranz.m) → review-
Assignee | ||
Comment 14•12 years ago
|
||
Comment on attachment 755075 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/24
Updated. Remembered to update package.json this time.
Also, regarding displaying a project if a user is not logged in. This is safe to do. Or, we should ensure it is safe to do.
It is not until we hit publish that we need to be logged in, and owner of the project. If we are logged in and do not own the project, it should remix instead.
Assigning back to Matt to confirm on that.
Also, by the sounds of Matt's last comment, he's ready to have Jon look at this.
Attachment #755075 -
Flags: review- → review?(schranz.m)
Assignee | ||
Updated•12 years ago
|
Attachment #755075 -
Flags: review?(jon)
Comment 15•12 years ago
|
||
Comment on attachment 755075 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/24
I'm fine with it all at this point.
We definitely will be handling the S3/local file storage linking in https://bugzilla.mozilla.org/show_bug.cgi?id=876457
Attachment #755075 -
Flags: review?(schranz.m) → review+
Comment 16•12 years ago
|
||
Comment on attachment 755075 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/24
r-, left a bunch of comments in the PR. Is there any way you can split this up into multiple smaller patches? Maybe start with just the nunjucks -> jade conversion?
Attachment #755075 -
Flags: review?(jon) → review-
Assignee | ||
Comment 17•12 years ago
|
||
I can split it.
Updated•12 years ago
|
Severity: normal → blocker
Whiteboard: s=2013w23 → s=2013w24
Assignee | ||
Comment 18•12 years ago
|
||
Comment on attachment 755075 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/24
Updated this after the split.
Same pull request.
Attachment #755075 -
Flags: review- → review?(jon)
Comment 19•12 years ago
|
||
Comment on attachment 755075 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/24
r+ with nits noted in the pull request.
Attachment #755075 -
Flags: review?(jon) → review+
Assignee | ||
Updated•12 years ago
|
Attachment #755075 -
Flags: review?(jon)
Attachment #755075 -
Flags: review?
Attachment #755075 -
Flags: review+
Assignee | ||
Updated•12 years ago
|
Attachment #755075 -
Flags: review?
Updated•12 years ago
|
Attachment #755075 -
Flags: review?(jon) → review+
Assignee | ||
Comment 20•12 years ago
|
||
Staged: https://github.com/mozilla/popcorn.webmaker.org/commit/34717bc912d1e0776dc21d1b7a27cc5ea076a360
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•