Category / Section
How to Track and Compare Report Changes in Bold Reports Using Version Control?
Published:
Updated:
Tracking changes and maintaining a version history of reports is essential for transparency and troubleshooting. Bold Reports stores Report Definitions in XML format, which allows users to compare different versions of reports using the following methods:
Steps to Compare Two Report Versions
- Use XML comparison tool
- Use an Online XML Comparer
- Use Notepad++ for comparing XML files.
- Storing Reports in Git for Version Control System (VCS)
- Initialize a Git Repository: Run
git init
in the folder where your reports are stored. - Commit Initial Version: Add and commit the first version using
git add .
followed bygit commit -m "Initial report version"
. - Track Changes Over Time:
- After modifying the report, commit the changes with
git commit -am "Updated report properties"
. - Use
git diff
to compare differences between commits. - Use
git log
to track the version history.
- After modifying the report, commit the changes with
- Revert to an earlier version: If necessary, revert to a previous version with
git checkout <commit-id>
.
- Initialize a Git Repository: Run
Benefits of Version Control
- Visibility: Easily identify which properties or elements have changed.
- Collaboration: Multiple users can work on reports with clear change tracking.
- Rollback Capability: Restore previous versions if changes lead to issues.
- Integration with CI/CD: Automate report deployment with version tracking.
Additional Resources: