Change Summary:
- write serialization layout for Changedesc inside ReviewBoardAPIEncoder - use djblets serialization for the payload (needs this patch: http://reviews.review-board.org/r/982/ )
Diff: |
Revision 2 (+213 -18) |
---|
Review Request #983 — Created Aug. 21, 2009 and discarded
Information | |
---|---|
helder | |
Review Board SVN (deprecated) | |
Reviewers | |
reviewboard | |
MOVED! This review request is now at: http://reviews.review-board.org/r/993/ (This is a preliminary code drop; needs more stuff to be ready) Allows admin to add multiple webhook URLs. These are dispatched to on publish events, with a payload of the published object and of the changedesc, when available. TODO: - write micro test app using djng to receive POSTs
Ran test suite with a webhook pointing at http://www.postbin.org/14iso90 and everything worked fine.
- write serialization layout for Changedesc inside ReviewBoardAPIEncoder - use djblets serialization for the payload (needs this patch: http://reviews.review-board.org/r/982/ )
Diff: |
Revision 2 (+213 -18) |
---|
updated TODO list.
Description: |
|
---|
- integrate interface for adding webhooks into the normal admin interface (it was a naked form at /settings/notifications)
Description: |
|
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+8062 -1024) |
This is the right diff.
/trunk/reviewboard/notifications/models.py (Diff revision 4) |
---|
This will only work for Python 2.6. We need to use django's simplejson otherwise. Though, I don't see this used anywhere.
/trunk/reviewboard/notifications/models.py (Diff revision 4) |
---|
This doesn't at all seem tied to the Webhook class. Would be nice to have a doc block for this.
/trunk/reviewboard/notifications/post_url_dispatcher.py (Diff revision 4) |
---|
Should be separate imports.
/trunk/reviewboard/notifications/post_url_dispatcher.py (Diff revision 4) |
---|
You should log this instead.
/trunk/reviewboard/notifications/post_url_dispatcher.py (Diff revision 4) |
---|
Instead of the inline if/else, please do: if not params: params = None urllib2.urlopen(...)
/trunk/reviewboard/signals.py (Diff revision 4) |
---|
Now that the other change is in, you should update this change.
Collapsed all publish signals into one, changed its name and interface. Made it look more like the built-in Django signals. Fixed formatting errors (according to review). Improved formatting for event_source_type in the event payload.
Diff: |
Revision 5 (+214 -48)
|
---|
MOVED.
Description: |
|
---|