BugzillaAutoLanding: Difference between revisions

Line 29: Line 29:
List of request methods, urls, and parameters:
List of request methods, urls, and parameters:


'''POST /bugs/{bugID}''' -> insert bug
'''GET /bugs/{bugID}''' -> get bug patchsets
'''GET /patchSets/{patchSetID}''' -> get patchset information
'''GET /branches/branchName''' -> get branch information


'''POST /bugs/{bugID}/{patchSetID}''' -> insert an auto-land patchset
'''POST /bugs/{bugID}''' -> create empty patchset
'''POST /branches/{branchName}''' -> create a new branch


'''GET /bugs/{bugID}''' -> list the patchSet(s) for a bug (to support multiple autolanding attempts on the same bug)
'''PUT /patchSets/{patchSetID}/{patchID}''' -> add patch to patchset
**'''Note''': this should be the main landing page with full report of autoland cycle progress as well as links to builds and other useful info (patch metadata, compare-talos, showing regressions only, for try run vs. results from m-c changeset it's based on, every correctness test failure, "Install builds: Windows, Linux, Linux64, Mac, Android" -- and room for enhancement as needed)
'''PUT /branches/{branchName}''' -> update branch
'''PUT /branches/{branchName}/threshold''' -> set branch threshold
'''PUT /branches/{branchName}/status''' -> set status enabled/disabled


'''GET /bugs/{bugID}/{patchSetID}''' -> information about a patchSet
'''DELETE /patchSets/{patchSetID}''' -> delete a patchset (if not processing)
 
'''DELETE /branches/{branchName}''' -> delete branch from db
'''GET /bugs/{bugID}/{patchSetID}/{patchID}''' -> information about a particular patch (link to bugzilla attachment?)
 
'''PUT /bugs/{bugID}/{patchSetID}/{patchID}(s)''' -> update this bug - add patchID(s) to a bug's patchSet assigned by DB on insert
* priority
* patchID(s)
 
'''PUT /bugs/{bugID}/{patchSetID}''' -> update the pushID
* tryresult/branchresult from SchedulerDBPoller
* pushresult from HgPusher
 
'''DELETE /bugs/{bugID}''' -> cancel all queued pushes for this bug and move to completed db table?
 
'''DELETE /bugs/{bugID}/{patchSetID}''' -> cancel a patchSet from the list of patchSets queued for a bug
 
'''DELETE /bugs/{bugID}/{patchSetID}/{patchID}''' -> remove a patch from the queued push


==Object Definitions==
==Object Definitions==
32

edits