Closed
Bug 702806
Opened 13 years ago
Closed 7 years ago
Create AddonManager.getAllStartupChanges()
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
INACTIVE
People
(Reporter: gps, Unassigned)
References
Details
Attachments
(1 file)
1.68 KB,
patch
|
Unfocused
:
feedback+
|
Details | Diff | Splinter Review |
I'm requesting a new function on AddonManager, getAllStartupChanges().
This will simply return an object containing IDs of everything that changed during startup. e.g.
{changed: ["id1"], installed: ["id2"}
I want this API for add-on sync and think it is better than calling getStartupChanges() for each change type because: a) less function calls b) guaranteed to iterate over every change type.
If the attachment is f+, I'll code some unit tests and submit a new patch for review. If you don't like the idea, it will make Sync code more verbose and prone to breaking, but I'll live with it.
Attachment #574710 -
Flags: feedback?(bmcbride)
Comment 1•13 years ago
|
||
Comment on attachment 574710 [details] [diff] [review]
Add AddonManager.getAllStartupChanges()
Review of attachment 574710 [details] [diff] [review]:
-----------------------------------------------------------------
Yea, that works. Pity the design of getStartupChanges() doesn't allow for just passing in STARTUP_CHANGE_ALL or null (like the rest of the APIs do), but oh well.
Attachment #574710 -
Flags: feedback?(bmcbride) → feedback+
Reporter | ||
Comment 2•13 years ago
|
||
Well, it would be trivial to add STARTUP_CHANGE_ALL to getStartupChanges(). The return type would have a different format (object instead of list), so maybe a different function is warranted. Let me know.
Comment 3•13 years ago
|
||
(In reply to Gregory Szorc [:gps] from comment #2)
> The return type would have a different format (object instead of list), so
> maybe a different function is warranted.
Yea, that's what I meant - it would require changing the return type, which I don't think is worth it since that would make the normal use of that function more cumbersome. So a new function seems like the way to go.
Reporter | ||
Comment 4•13 years ago
|
||
I may not need this API depending on what happens in bug 702819. Ideally this API should be considered separately. But since I'm the only requester, I'm going to hold off and see what happens in bug 702819 before going any further.
Depends on: 702819
Reporter | ||
Comment 5•13 years ago
|
||
I no longer need this for add-on sync. I'll leave it up to the Add-on Manager folks to determine what to do with it.
No longer blocks: 534956
Comment 6•7 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•