Closed Bug 863873 Opened 11 years ago Closed 11 years ago

Wire popcorn maker's publish up to make API

Categories

(Webmaker Graveyard :: Popcorn Maker, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: thecount, Assigned: mjschranz)

References

Details

(Whiteboard: u=dev p=1 s=2013w21)

Attachments

(1 file, 1 obsolete file)

Similar to bug 861816, we need to plug popcorn maker into the make api.

This mean search, create, update and delete to the make API.

We'll need to use search for displaying personal projects.

We'll need to use create and update when we publish a popcorn project.

Delete needs to be wired up to the project dashboard like search.
Depends on: 863312, 863359, 863411
Assignee: nobody → scott
Going to be working on this for the week.
Assignee: scott → schranz.m
Status: NEW → ASSIGNED
Whiteboard: u=dev p=1 s=2013w19
Initial bit of wiring MakeAPI into Popcorn Maker. At this point it's present for creation, updating and deletion.
Attachment #748017 - Flags: review?(scott)
Attachment #748017 - Flags: review?(jon)
Attachment #748017 - Flags: review?(david.humphrey)
Did you want to merge this into butter, or the new popcorn.webmaker.org repo?
I think we want to hold off on this one. The MakeAPI is fairly specific to webmaker IMO and think it shouldn't be apart of butter.
Comment on attachment 748017 [details] [review]
https://github.com/mozilla/butter/pull/1681

See notes in PR.  I agree to not land this in butter, and also to strip out some of the demo aspects before we do.  The general shape of the patch is good, though.  Nice work.
Attachment #748017 - Flags: review?(david.humphrey) → review+
Adding dependency as per comment 5; ideally mjscrhanz and jbuck can co-ordinate so that all happens today? Pretty please?
Depends on: 866233
The thing is, there are other aspects we have to consider.

We can just turn this on in dev with a MakeAPI endpoint that everyone will point to. If we do, there will be conflicts when adding projects to the MakeAPI because URLs are set as unique.

Do we force everyone to run a local instance of the makeapi while testing popcorn maker? That seems really annoying.

Do we turn the MakeAPI off for Dev? Not annoying, but then we don't catch potential errors until we hit production.

This patch isn't ready yet for landing, review nits aside.
New repo, new pull request.
Attachment #748017 - Attachment is obsolete: true
Attachment #748017 - Flags: review?(scott)
Depends on: 871626
Depends on: 871629
Depends on: 871635
Whiteboard: u=dev p=1 s=2013w19 → u=dev p=1 s=2013w20
Depends on: 872340
Blocks: 871700
This is received updates for recent API changes.
Comment on attachment 748863 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/3

Blocked on 873470 for now, but this works otherwise.
Attachment #748863 - Flags: review?(chris)
Depends on: 873470
Comment on attachment 748863 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/3

r+ with a fix for one issue (see pull request)
Attachment #748863 - Flags: review?(chris) → review+
There's one basic thing preventing this from working. At this point, if I sign in with my persona account ( schranz.m@gmail.com ), It's failing on our isAdmin check because I don't have a webmaker account tied to this. We need a way for out Fogin stuff to circumvent this.
I'd like to see this and Bug 871700 become priority next week in what little time we'll have to work.
This is definitely a priority for this week; jbuck, pomax, can you help mjschranz with comment 15 and then get this and bug 871700 landed post haste?
Whiteboard: u=dev p=1 s=2013w20 → u=dev p=1 s=2013w21
Comment on attachment 748863 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/3

Updated and all working well with the changes humphd has been making for Webfaker.

We need to file a bug at this point to remove the git commit used for the package.json, but otherwise in person R+ from :humph
Attachment #748863 - Flags: review?(jon)
Comment on attachment 748863 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/3

r-, things noted in the pull request mostly related to environment variables.
Attachment #748863 - Flags: review?(jon) → review-
Comment on attachment 748863 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/3

r+ with nits noted in the pull request
Attachment #748863 - Flags: review?(jon) → review+
Commit pushed to master at https://github.com/mozilla/popcorn.webmaker.org

https://github.com/mozilla/popcorn.webmaker.org/commit/8b19cb2d8f3ec10ccc85882a7b7a80decca8404d
Fix Bug 863873 - Wire up Popcorn Maker to send project data to the MakeAPI. Use Webfaker for dev environment
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Attachment mime type: text/plain text/plain → text/x-github-pull-request text/x-github-pull-request
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: