If you are having difficulties using the APIs or have a question about the IBM Watson Services, please ask a question on dW Answers or Stack Overflow.
If you encounter an issue with the Salesforce SDK, you are welcome to submit a bug report. Before that, please search for similar issues. It's possible somebody has encountered this issue already.
If you want to contribute to the repository, here's a quick guide:
- Fork the repository
- Develop and deploy your code changes to your Salesforce org
- Ensure all tests pass
- Commit your changes:
* Commits should follow the Angular commit message guidelines. This is because our release tool uses this format for determining release versions and generating changelogs. To make this easier, we recommend using the Commitizen CLI with thecz-conventional-changelog
adapter. - Push to your fork and submit a pull request to the master branch
If you want to contribute to the repository, here's a quick guide for making update:
- Save the code from your fork to local machine using
git clone
- A salesforce.com development org (environment) is needed to deploy, develop and test code updates.
- Deployment scripts “build.properties” and “build.xml” are provided in the package you saved locally from GitHub. You need salesforce ant migration tool to deploy the code to your developer org.
- Thorough testing is required to avoid any errors or issues.
- Make sure that unit test code is added for all the changes. This is required for deployment and quality of code. Minimum 75% code coverage is required. It is recommended that you write unit test for all the code if possible.
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
Salesforce has very comprehensive developer guide. Please refer to it for any development-related questions or information. Our code is following the Salesforce best practices. Please follow the Apex coding best practices before updating the code.
For code styling we recommend: https://github.com/PolarisProject/salesforceStyleGuide
Please follow the Salesforce guidelines for unit testing. The links to unit test guide lines are provided below. This SDK contains unit test code that provides examples for writing unit tests and how to use the SDK to connect to the Watson APIs.