Contribute
This topic describes how to contribute to the Allie SDK project.
- Get the source code and set up a branch
- Code and commit
- Add tests
- Update documentation
- Commit changes and open a pull request
Get the source code and set up a branch
Code and commit
How methods should be structured
Methods should either return nothing or the respective result. There are at least two types of results:
- The records returned by a successful GET call.
- Job details returned by async POST, PUT and DELETE calls.
If you are writing a method for an Alation API async endpoint, make sure you return the job details and map them to a data class, which are defined in models/job_model.py
. The structure of the returned job details is not completely standardised (especially the nested elements), so if required, create dedicated data classes (if none for your use case exists already). Also make sure that if any details about created or updated objects are returned by the Alation API endpoint (e.g. id and name), that these details are made available via the data class(es) that represent the job details.
Note: An Alation endpoint is considered async if it returns a job ID or job name.
Add tests
Update documentation
Whenever you update existing functionality or add a new feature, you must update the documentation along with your code.
All of the documentation source files can be found in the /docs
folder on the main branch. Our documentation is written in Markdown (specifically kramdown) and built with Jekyll on GitHub Pages. The docs are built automatically anytime a change is made to the main branch.
We use the Just the Docs theme. Use the Just the Docs documentation for help with formatting, layout, and customization features.
If you are just making documentation updates (adding new docs, fixing typos, improving wording) the easiest method is to use the built-in Edit this file feature (the pencil icon) or the Edit this page link.
To make more significant changes, create a pull request against the main branch.