Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Request for GitHub integration with SkyDesk Projects. #732

Merged
merged 16 commits into from
Dec 12, 2013

Conversation

SkyDeskProjects
Copy link
Contributor

Request for GitHub integration with SkyDesk Projects.

Steps to access SkyDesk Projects:
1)Create an account and login to the SkyDesk Portal using https://www.skydesk.jp
2)Then access https://projects.skydesk.jp as mentioned in the document.
@atmos
Copy link
Contributor

atmos commented Nov 14, 2013

Please read the contributing.md in the repo and follow the guidelines. Your
service is inheriting from the wrong class.

On Thursday, November 14, 2013, SkyDeskProjects wrote:

Request for GitHub integration with SkyDesk Projects.

You can merge this Pull Request by running

git pull https://github.com/SkyDeskProjects/github-services master

Or view, comment on, or merge it at:

#732
Commit Summary

  • Create skydeskprojects
  • Create skydeskprojects.rb
  • Create skydeskprojects_test .rb
  • Update skydeskprojects

File Changes

Patch Links:

@SkyDeskProjects
Copy link
Contributor Author

can you please give more details.

@atmos
Copy link
Contributor

atmos commented Nov 14, 2013

https://github.com/github/github-services/blob/master/CONTRIBUTING.md#contributing

Specifically the part where it says "Good Example" and "Bad Example".

@SkyDeskProjects
Copy link
Contributor Author

Dear Corey,

This below is the service class. Should this be changed as per ""Good Example" Symperium. We don't know what has to be changed exactly and any help can be appreciated. Whether this is the class that should be modified or any other file, please let us know.

class Service::ZohoProjects < Service
string :project_id, :token
white_list :project_id

def receive_push
res = http_post "https://projects.skydesk.jp/serviceHook",
:pId => data['project_id'],
:authtoken => data['token'],
:scope => "projectsapi",
:payload => generate_json(payload)
if res.status != 200
raise_config_error
end
end
end

Thanks & Regards,
SkyDesk Team

---- On Thu, 14 Nov 2013 18:54:44 +0900 Corey Donohoe <[email protected]> wrote ----

https://github.com/github/github-services/blob/master/CONTRIBUTING.md#contributing
Specifically the part where it says "Good Example" and "Bad Example".

Reply to this email directly or view it on GitHub.

@atmos
Copy link
Contributor

atmos commented Nov 18, 2013

Yup, change it as per the simperium hook.

Specifically you should change your endpoint to take the raw payload as an http POST using the deliver method like this.

https://github.com/github/github-services/blob/master/lib/services/simperium.rb#L20-L41

We're starting to consolidate around this specific payload and it's worth building your integration to work with it rather than having to rewrite it in the future if we move exclusively to the new payload.

Added Raw payload changes .
@@ -0,0 +1,25 @@
class Service::ZohoProjects < Service::HttpPost
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be class Service::SkyDeskProjects < Service::HttpPost and not ZohoProjects. Can you update this?

@SkyDeskProjects
Copy link
Contributor Author

SkyDesk Projects is a Re-branded version of Zoho Projects . So, we are using the same service (ZohoProjects) with our own client.

@SkyDeskProjects
Copy link
Contributor Author

Updated the Service name from ZohoProjects to SkyDeskProjects.

@SkyDeskProjects
Copy link
Contributor Author

Hi Corey,
We have modified the skydeskprojects.rb file as per the simperium hook.
Can you please look into that and let us know if any further clarification is required . We have other dependency on GitHub ,which we can take up only after receiving the merge approval.
This is a high priority task for us.Any help would be appreciated.

Thanks,
SkyDeskProjects

---- On Tue, 19 Nov 2013 05:15:43 +0900 Corey Donohoe<[email protected]> wrote ----

Yup, change it as per the simperium hook.
Specifically you should change your endpoint to take the raw payload as an http POST using the deliver method like this.
https://github.com/github/github-services/blob/master/lib/services/simperium.rb#L20-L41
We're starting to consolidate around this specific payload and it's worth building your integration to work with it rather than having to rewrite it in the future if we move exclusively to the new payload.

Reply to this email directly or view it on GitHub.

@atmos atmos mentioned this pull request Dec 1, 2013
@atmos
Copy link
Contributor

atmos commented Dec 1, 2013

I created a PR with your stuff but the tests are still failing.

  1) Failure:
test_push(SkyDeskProjectsTest) [/var/lib/jenkins/workspace/github-services-a53dca0c61c9/test/skydeskprojects_test.rb:20]:
<"1234"> expected but was
<nil>.

645 tests, 1837 assertions, 1 failures, 0 errors, 0 skips
rake aborted!

@SkyDeskProjects
Copy link
Contributor Author

Hi Corey,
I have modified the changes and committed the files.Can you please re run the test and let me know the status?

Thanks,
SkyDeskProjects

@atmos
Copy link
Contributor

atmos commented Dec 4, 2013

Please try running the script/cibuild script or run bundle exec ruby test/skydeskprojects_test .rb. The code doesn't work.

@SkyDeskProjects
Copy link
Contributor Author

Hi Corey,
Thanks for running the tests .We have fixed the issues and it is working fine in our local setup .Can you please test it and let us know ?

Thanks,
SkyDeskProjects

@kdaigle
Copy link
Member

kdaigle commented Dec 10, 2013

@SkyDeskProjects it looks like you still have a failing test:

  1) Failure:
test_push(SkyDeskProjectsTest) [/Users/kdaigle/github/github-services/test/skydeskprojects_test.rb:18]:
<"1234"> expected but was
<nil>.

Please fix that and let us know. Thanks!

@SkyDeskProjects
Copy link
Contributor Author

Hi Kdaigle ,
we have tested the script in our local set up and it is working .Can you please check it again.
skydeskprojects_successfull

kdaigle added a commit that referenced this pull request Dec 12, 2013
Request for GitHub integration with SkyDesk Projects. Merge PR #474.
@kdaigle kdaigle merged commit 45a0e52 into github:master Dec 12, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants