Offer an API to download a package source as a ZIP file

RESOLVED FIXED in Future

Status

addons.mozilla.org Graveyard
Add-on Builder
P1
normal
RESOLVED FIXED
7 years ago
4 years ago

People

(Reporter: ochameau, Assigned: zalun)

Tracking

unspecified
Future

Details

(Reporter)

Description

7 years ago
Regarding bug 671461 discussion, we would need one really simple API to start connecting Addon builder with Jetpack runner:
A public API that allow to download a package source files as a ZIP file.
So that I would be able to run it though Jetpack runner.

As soon as I can have access to such API, 
I can start running addons from Addon builder locally and see how fast it is performing.

Such zib file would contains:
 - package.json
 - libraries files
 - data files
 - tests files, if any

My plan would be to dynamically add a button in Builder interface that would download this package, build the related xpi, run it in current FF instance and display "something" about the result of this run.
This can be done very quickly, but again we still have to figure out how we would maintain this code.
(Assignee)

Comment 1

7 years ago
I see it as a zip of packages directory without sdk packages.

-myaddon
  |- lib
  |  `- main.js
  `- data 
-somelib

etc.
Assignee: nobody → zaloon
(Reporter)

Comment 2

7 years ago
Oh yes, it can be even more simplier to have all dependencies fetched at the same time! It is obviously not what we want if we want to go fully offline, but in case of my very first experiment, it can be handy.
I will let your team choose all these kind of options afterward.
I do want to provide this, it is something we all discussed originally. I feel like sometime post 1.0 in Q1 or Q2 2012 is likely the correct time for moving on this.
Priority: -- → P2
Target Milestone: --- → Future
(Assignee)

Comment 4

6 years ago
do we still want to do it?
(Reporter)

Comment 5

6 years ago
Definitely. This is the missing piece in order to be able to build addons on client side. cfx-js is close to be able to do that. So that we will be able to ship cfx-js in Addon builder helper and build addons on client side!
Hi Piotr, 

I've raised the priority of this bug to P1, to reflect the level of importance the SDK team puts on this feature. Regardless of what happens in the future, the Builder application needs to have a mechanism whereby users can download the unpackaged source of their projects.

When you get some time, can you please follow up with an estimate of what would be entailed.
Priority: P2 → P1
(Assignee)

Comment 7

6 years ago
https://github.com/mozilla/FlightDeck/pull/162 in review
Status: NEW → ASSIGNED
(Assignee)

Updated

6 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.