Merge lp:~cjwatson/launchpad/webhook-payload-links into lp:launchpad
Proposed by
Colin Watson
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 17788 | ||||
Proposed branch: | lp:~cjwatson/launchpad/webhook-payload-links | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
81 lines (+9/-2) 4 files modified
lib/lp/code/model/gitjob.py (+2/-0) lib/lp/code/model/tests/test_gitjob.py (+3/-1) lib/lp/codehosting/scanner/events.py (+3/-1) lib/lp/codehosting/scanner/tests/test_bzrsync.py (+1/-0) |
||||
To merge this branch: | bzr merge lp:~cjwatson/launchpad/webhook-payload-links | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email: mp+273087@code.launchpad.net |
Commit message
Add webservice links to webhook payloads.
Description of the change
Add webservice links to webhook payloads. This makes it easier to write webhooks that respond by making webservice queries without always having to look up the object first; it also gives us a better pattern for adding webhook support to other objects that don't necessarily have an obvious equivalent of shortened_path, such as merge proposals.
The links lack host name and API version since at least the API version may vary depending on the client, but they're suitable for passing to lp.load.
To post a comment you must log in.