Gitoqlok Development Set of Rules: Git + Qlik Sense
There is a set of rules that we suggest implementing in the development team:
- The main branch is the published app
- The main branch created by Qlik Data Architect, the developer who creates a data model and building the first version of the app.
- A certain git branching naming convention
- Mixing and matching all Git branch naming conventions are not the best practice. It only adds confusion and complicates the development processes.
- The team must decide which naming conventions to use once, and stick to them.
Consistency is the most vital thing.
- Whenever possible, divide the work between developers to avoid future conflicts while merge process:
- Only one developer working on data modeling at the same time (data load script creation process).
- If two developers work on the visualization layer then avoid working on the same sheet simultaneously with two developers.
- Use Pull Requests in your Git provider to merge branches
- If you are faced with conflicts then use Gitoqlok's load script diff viewer and sheet diff viewer to find the root cause:
- Load script diff viewer and sheet diff viewer will highlight differences between versions and helps you to figure out the changes between conflicted versions.
- Use Gitoqlok'sImport feature topull changes from another developer to resolve conflicts.
- Commit merged version to the branch and create Pull Request again.
- If the conflict cannot be resolved, the Qlik team lead (or author of the app) could pull changes from a particular branch into the main branch directly.
- If you are faced with conflicts then use Gitoqlok's load script diff viewer and sheet diff viewer to find the root cause:
- Link your commit to the particular task from your ticketing system. Then, you can easily navigate through changes and see the lineage between business requirements and changes
- Works well with GitLab and GitHub - use #<task_number>
- Do not delete the branch from the repository. In that way, you will have the ability to roll back to any previous state of the app or review the changes
- Organize your load scripts in reusable routines and share it between developers
Git Branch with Author Name
Some prefer to add authors’ names and/or features' names to the branch names according to the format below:
alex_newABCSheet
newABCSheet
.NJ4jXCiT.png)
This method allows for easy tracking of different developers’ work.
