Closed
Bug 432232
Opened 17 years ago
Closed 17 years ago
Feature Manager should not allow sandbox'ed items to be chosen
Categories
(addons.mozilla.org Graveyard :: Admin/Editor Tools, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.5
People
(Reporter: baz, Assigned: clouserw)
Details
Attachments
(1 file, 1 obsolete file)
|
7.08 KB,
patch
|
wenzel
:
review+
|
Details | Diff | Splinter Review |
The Feature Manager (both Admin and Editor) should not allow sandbox'ed add-ons to be selected.
Comment 1•17 years ago
|
||
Not related to 3.5 Dev CP revamp. Wil wrote the feature manager - can you take this early this week or shall I punt it to another milestone?
Assignee: nobody → clouserw
| Assignee | ||
Comment 2•17 years ago
|
||
I changed the admin and editor feature forms. The autocomplete won't suggest a feature if it's not public now unless you type in the id for the add-on. Even if you type in an id and hit submit it still won't accept the feature though.
This code uses wenzel's getAddon() patch from bug 450442, btw.
Attachment #338802 -
Flags: review?(fwenzel)
Comment 3•17 years ago
|
||
Comment on attachment 338802 [details] [diff] [review]
only allow public add-ons
The patch looks good so far, however:
+ $_addon = $this->Addon->getAddon($this->data['Addon']['id']);
If you don't specify any "associations", you'll only get id and name back, no status. We could change that (I am not completely sure what the default field set to return should be, just that it should be small), or you make a new association "status", or you use one of the existing ones that contains status.
Attachment #338802 -
Flags: review?(fwenzel) → review-
| Assignee | ||
Comment 4•17 years ago
|
||
(In reply to comment #3)
> (From update of attachment 338802 [details] [diff] [review])
> The patch looks good so far, however:
>
> + $_addon = $this->Addon->getAddon($this->data['Addon']['id']);
>
> If you don't specify any "associations", you'll only get id and name back, no
> status. We could change that (I am not completely sure what the default field
> set to return should be, just that it should be small), or you make a new
> association "status", or you use one of the existing ones that contains status.
I get a pretty decent amount of data (couple pages in a print_r) with that call and definitely got the status. You're all the way up to date and you only get two things back?
Comment 5•17 years ago
|
||
(In reply to comment #4)
> I get a pretty decent amount of data (couple pages in a print_r) with that call
> and definitely got the status. You're all the way up to date and you only get
> two things back?
Ouch, that's a bug in getAddons() then. Fixed in r18294. Sorry!
| Assignee | ||
Comment 6•17 years ago
|
||
(In reply to comment #5)
> (In reply to comment #4)
> > I get a pretty decent amount of data (couple pages in a print_r) with that call
> > and definitely got the status. You're all the way up to date and you only get
> > two things back?
>
> Ouch, that's a bug in getAddons() then. Fixed in r18294. Sorry!
That didn't change the results I get back. It did for you?
Comment 7•17 years ago
|
||
(In reply to comment #6)
> That didn't change the results I get back. It did for you?
Yes, did you svn up?
Array
(
[Addon] => Array
(
[id] => 1865
)
[Translation] => Array
(
[name] => Array
(
[string] => Adblock Plus
[locale] => en-US
[textdir] => ltr
[locale_html] =>
)
)
)
Notice: Undefined index: status in /Users/fred/dev/addons/site/app/controllers/editors_controller.php on line 605
Comment 8•17 years ago
|
||
(I needed to run it with JS disabled in order to see the error message, because you can't see them easily when it's an AJAX request).
| Assignee | ||
Comment 9•17 years ago
|
||
Alright, here is a new patch for use with the new code. I added status to the default fields.
Attachment #338802 -
Attachment is obsolete: true
Attachment #338895 -
Flags: review?(fwenzel)
Comment 10•17 years ago
|
||
Comment on attachment 338895 [details] [diff] [review]
update to use new getAddon()
Yes, this wfm.
Attachment #338895 -
Flags: review?(fwenzel) → review+
| Assignee | ||
Comment 11•17 years ago
|
||
thanks, r18304
| Assignee | ||
Updated•17 years ago
|
Keywords: push-needed
Updated•9 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
•