GitHub sync Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
4 May 2016

Pull Request for Issue #776

Summary of Changes

Supports new GitHub webhooks for editing of issue, PR, and comment contents and deleting comments

For issues and pull requests, when the edited webhook action is triggered a slimmed down version of our update process will run which specifically only grabs the edited fields and logs an edited activity to the table. Truthfully not much different than our update handler is in general, but if we decide to make other changes later on (part of the reason we were always updating the title/body on all events is because of the lack of this webhook action) it's not too difficult.

For comments, when the edited webhook action is triggered the comment's contents should be updated (no other changes happen in the database; in the UI we may consider adding an edited comment similar to how GitHub displays them). When the deleted webhook action is triggered the corresponding activity record is deleted.

Testing Instructions

Have a repository push issue, pull request, and issue/PR comment webhooks to an install of the tracker and ensure the events are processed.

avatar mbabker mbabker - open - 4 May 2016
avatar mbabker mbabker - change - 4 May 2016
Labels Added: GitHub sync
avatar b2z
b2z - comment - 11 May 2016

After we will merge #770 I will update my testing server and will test this PR properly.

avatar elkuku
elkuku - comment - 22 Jul 2016

After we will merge #770 I will update my testing server and will test this PR properly.

@b2z Do you still want to test this on your server or should we test it "live"?

Code looks good ?

avatar b2z
b2z - comment - 22 Jul 2016

I prefer to test it before merge. There is no rush ;) I will update today to this PR.

avatar b2z
b2z - comment - 22 Jul 2016

Strange, but when I checkout this branch I have an error:

[2016-07-22 22:29:04] JTracker.CRITICAL: Exception of type RuntimeException thrown {"exception":"object"} {"url":"/","ip":"89.201.107.175","http_method":"GET","server":"jtracker.j4devs.
ru","referrer":null}

And a white page saying

Class 'Joomla\View\Renderer\Twig' not found

avatar mbabker
mbabker - comment - 22 Jul 2016

Probably because the branch hasn't been updated in a while and very far behind current Composer install. master branch is merged now, so it should be good to go.

avatar b2z
b2z - comment - 22 Jul 2016

Yeap it's working now. Testing.

avatar b2z
b2z - comment - 22 Jul 2016

Comments are working good - edited & deleted. But issues and PRs are not - editing on GitHub does not sync with tracker. Payloads are showing 200 OK response.
b2z/jissues-test#46
http://jtracker.j4devs.ru/tracker/jissues-test/46

avatar mbabker mbabker - change - 22 Jul 2016
The description was changed
avatar mbabker
mbabker - comment - 22 Jul 2016

Now try it.

avatar b2z
b2z - comment - 22 Jul 2016

Now content is updating, but another issue is here - along with that labels and milestones are being deleted ?
b2z/jissues-test#8
http://jtracker.j4devs.ru/tracker/jissues-test/8#event-4806

avatar mbabker
mbabker - comment - 22 Jul 2016

That's a bad sign, anywho hopefully those aren't lost now.

avatar b2z b2z - change - 22 Jul 2016
Status New Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-07-22 20:15:01
Closed_By b2z
avatar b2z b2z - close - 22 Jul 2016
avatar b2z b2z - merge - 22 Jul 2016
avatar b2z
b2z - comment - 22 Jul 2016

Now ?

avatar elkuku
elkuku - comment - 22 Jul 2016

Glad someone has tested this... thanks @b2z

Add a Comment

Login with GitHub to post a comment