RTC Git Connector Service provides the server side functionality for RTC Git Connector. This includes providing custom link styles for Git Artifacts, Rich Hover capability for these links across RTC and extensions for DCC and Report Builder to enable reporting of Git information.
Deploying this service only makes sense in conjunction with the RTC Git Connector. Detailed instructions for installing RTC Git Connector can be taken from it's readme.
RTC Git Connector Service requires that Secure User Property Store for RTC has been installed and properly configured. This is a compulsory dependency and RTC Git Connector Service will not work at all without the Secure User Property Store being available.
RTC Git Connector Service has been developed, tested and deployed on RTC versions above 6.0.3. reporting
Please refer to the Releases page for current stable releases. The plugin can be installed like any other rtc update-site, for detailed instructions, you can follow these steps.
To enable the reporting capabilities of the RTC Git Connector Service, additional deployment steps are necessary. DCC requires additional TTL files and additional tables in the RIODS database. Report Builder requires additional TTL files and additional views in the RIDW database.
If you have previously deployed another version of RTC Git Connector Service with reporting capabilites and wish to upgrade to a new version, please follow the instructions in the Update section.
Currently, only IBM DB2 and Apache Derby have been tested and are known to work. Other databases should work with the provided SQL files, but have not been tested.
- The plugin has been deployed as described in Installation.
- CREATE/DROP privileges for tables in the RIODS database and views in the RIDW database. Usually, the user that was used during Jazz setup when creating the data warehouse configuration should have these privileges.
- File access for adding TTL files to the dcc and rs metadata folders.
- A SQL Client / database administration tool for making the required changes. Any tool supporting the database you are using will work. DBeaver Community was used during development and is known to work with Apache Derby as well as IBM DB2. The Example provided in this read me use the DB2 command line client and the windows command line.
This section gives a high level description of deploying the required reporting components. A detailed Example is also provided in a later section.
The required SQL Files are in the reporting/sql_db2_derby/
folder of this repository or the released update site zip file, split up by subfolders for tables and views. Please note that the order in which the scripts are executed is important, and should be followed as is presented here.
- Using a SQL Client / database administration tool, connect to the Data Warehouse Database.
- Run the
create_commit_table.sql
file to create theRIODS.GIT_COMMIT
table. - Run the
create_commit_lookup_table.sql
file to create theRIODS.GIT_COMMIT_LOOKUP
table. - Run the
create_ìssue_table.sql
file to create theRIODS.GIT_ÌSSUE
table. - Run the
create_ìssue_table_assignee.sql
file to create theRIODS.GIT_ÌSSUE_ASSIGNEE
table. - Run the
create_ìssue_table_relation.sql
file to create theRIODS.GIT_ÌSSUE_RELATION
table. - Run the
create_merge_request_table.sql
file to create theRIODS.GIT_MERGE_REQUEST
table. - Run the
create_merge_request_table_assignee.sql
file to create theRIODS.GIT_MERGE_REQUEST_ASSIGNEE
table. - Run the
create_merge_request_table_relation.sql
file to create theRIODS.GIT_MERGE_REQUEST_RELATION
table. - Run the
create_commit_view.sql
file to create theRIDW.VW_GIT_COMMIT
view. - Run the
create_commit_lookup_view.sql
file to create theRIDW.VW_GIT_COMMIT_LOOKUP
view. - Run the
create_issue_view.sql
file to create theRIDW.VW_GIT_ISSUE
view. - Run the
create_issue_assignee_view.sql
file to create theRIDW.VW_GIT_ISSUE_ASSIGNEE_ISSUE
view. - Run the
create_issue_relation_view.sql
file to create theRIDW.VW_GIT_ISSUE_RELATION_ISSUE
view. - Run the
create_merge_request_view.sql
file to create theRIDW.VW_GIT_MERGE_REQUEST
view. - Run the
create_merge_request_assignee_view.sql
file to create theRIDW.VW_GIT_MERGE_REQUEST_ASSIGNEE_ISSUE
view. - Run the
create_merge_request_relation_view.sql
file to create theRIDW.VW_GIT_MERGE_REQUEST_RELATION_ISSUE
view.
- Copy all ttl files from the
reporting/dcc
folder to theserver/conf/dcc/mapping
folder of your RTC installation. - Head to the dcc start page, eg.
https://your-rtc-server/dcc/web
. Import the data collection definitions.
- Verify that the Git DCC Jobs have been loaded successfully. The Jobs should be listed in the ODS Data Collection section.
- Copy all ttl files from the
reporting/rs
folder to theserver/conf/rs/metadata
folder of your RTC installation. - Import report definitions:
- Go to the admin section of report builder and click on Data Sources
2. Choose the Rational Data Warehouse Data Source
3. Reload definitions
- Verify that the report definitions have been loaded sucessfully: After the successful update of the metamodel, you should see the git artifacts when creating a reporting and selecting "Choose an artifact"
If you have previously deployed the reporting capabilities, please follow these instructions before cleanly deploying by following the instructions in the Deployment section. This step is required to avoid inconsistencies in the reporting process, and will ensure that data is reliably stored and reported against.
Running these scripts will delete all! data. However, that is not an issue as running dcc again will collect the same data when running a full import.
Run the drop_before_update.sql
located in the sql_db2_derby
folder with a sql tool of your choice.
Now, continue with the steps in the Deployment section to create a fresh deployment of the reporting capabilities.
This example shows how deployment of the reporting capabilities can be done with RTC and DB2 hosted on Windows.
- Start a DB2 command line window as the user who created the Jazz database.
- Change directory to the sql scripts of this package.
cd /d d:\IBM\BT-Updatesites\reporting\sql_db2_derby
- Connect to Data Warehouse Database
db2 connect to <database>
- Drop existing views and tables if they exist
db2 -tvf .\drop_before_update.sql
- Create the tables and views in the correct order
db2 -tvf .\tables\create_commit_table.sql
db2 -tvf .\tables\create_commit_lookup_table.sql
db2 -tvf .\tables\create_issue_table.sql
db2 -tvf .\tables\create_issue_assginee_table.sql
db2 -tvf .\tables\create_issue_relation_table.sql
db2 -tvf .\tables\create_merge_request_table.sql
db2 -tvf .\tables\create_merge_request_assginee_table.sql
db2 -tvf .\tables\create_merge_request_relation_table.sql
db2 -tvf .\views\create_commit_view.sql
db2 -tvf .\views\create_commit_lookup_view.sql
db2 -tvf .\views\create_issue_view.sql
db2 -tvf .\views\create_issue_assignee_view.sql
db2 -tvf .\views\create_issue_relation_view.sql
db2 -tvf .\views\create_merge_request_view.sql
db2 -tvf .\views\create_merge_request_assignee_view.sql
db2 -tvf .\views\create_merge_request_relation_view.sql
- Disconnect the command line session
db2 disconnect <database>
- Copy the files in
reporting/dcc
toserver/conf/dcc/mapping
cp .\dcc\* D:\IBM\JazzLiberty_DCC_606\server\conf\dcc\mapping
- Import data collection definitions as shown in the instructions
- Open DCC Web, eg. from
https://jazz-home-uri/dcc/web
- Click the load button
- Open DCC Web, eg. from
- Copy the files in
reporting/rs
toserver/conf/rs/metadata
cp .\rs\* D:\IBM\JazzLiberty_RS_606\server\conf\rs\metadata
- Reload the report definitions as shown in the instructions
- Open report builder, eg. from
https://jazz-home-uri/rs/reports
- Go to the Admin View
- Open Data Source
- Choose the Rational Data Warehouse Data Source
- Click refresh
- Open report builder, eg. from
Please use the Issue Tracker of this repository to report issues or suggest enhancements.
For general contribution guidelines, please refer to CONTRIBUTING.md
Copyright (c) Siemens AG. All rights reserved.
Licensed under the MIT License.