BMO/AutoLand: Difference between revisions

Line 32: Line 32:
AutoLand.getBugs():
AutoLand.getBugs():
* returns a list of bugs, each being a hash of data needed by the AutoLand polling server
* returns a list of bugs, each being a hash of data needed by the AutoLand polling server
* [ { bug_id => $bug_id1, attachments => [ $attach_id1, $attach_id2 ] }, ... ]
* [ { bug_id => $bug_id1, attachments => [ $attach_id1, $attach_id2 ] }, branches => $branchListFromTextField ... ]
* anything else needed by the server?
* anything else needed by the server? <-- Is it possible to get the user who submitted this request?


AutoLand.landUpdate({ bug_id => $bug_id, attach_id => $attach_id, status => $status, message => $message }):
AutoLand.landUpdate({ bug_id => $bug_id, attach_id => $attach_id, status => $status }):
* Let's BMO know if a patch has landed or not and BMO will update the auto_land table accordingly
* Let's BMO know if a patch has landed or not and BMO will update the auto_land table accordingly
* $status will be a predetermined set of success/error codes.
* $status will be a predetermined set of pending/complete codes -- when pending, the UI for submitting autoland will be locked and once complete status update occurs the UI can be unlocked and this entry can be removed from tracking by WebService API
* $message will be added as a bug comment
 
Bug.comment({ ids => [$bug_id], comment => $comment }) (present):
* Update the bug comments to let the user know of any status updates


=== Database Schema ===
=== Database Schema ===
Confirmed users
4,467

edits