Giter Site home page Giter Site logo

fossabot / rtc-git-connector-service Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jazz-community/rtc-git-connector-service

0.0 1.0 0.0 595 KB

Service for providing additional functionality for the RTC Git Connector

License: MIT License

Java 89.56% CSS 8.22% HTML 2.22%

rtc-git-connector-service's Introduction

RTC Git Connector Service

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.

Table of Contents

Setup

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.

Prerequisites

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

Installation

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.

Reporting

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.

Prerequisites

  1. The plugin has been deployed as described in Installation.
  2. 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.
  3. File access for adding TTL files to the dcc and rs metadata folders.
  4. 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.

Deployment

This section gives a high level description of deploying the required reporting components. A detailed Example is also provided in a later section.

Prepare Database

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.

  1. Using a SQL Client / database administration tool, connect to the Data Warehouse Database.
  2. Run the create_commit_table.sql file to create the RIODS.GIT_COMMIT table.
  3. Run the create_commit_lookup_table.sql file to create the RIODS.GIT_COMMIT_LOOKUP table.
  4. Run the create_commit_view.sql file to create the RIDW.VW_GIT_COMMIT view.
  5. Run the create_commit_lookup_view.sql file to create the RIDW.VW_GIT_COMMIT_LOOKUP view.

Deploy Data Collection Files

  1. Copy all ttl files from the reporting/dcc folder to the server/conf/dcc/mapping folder of your RTC installation.
  2. Head to the dcc start page, eg. https://your-rtc-server/dcc/web. Import the data collection definitions.

Collection Job Import FOSSA Status

  1. Verify that the Git DCC Jobs have been loaded successfully. The Jobs should be listed in the ODS Data Collection section.

Job Import Verification

Deploy Report Builder Definitions

  1. Copy all ttl files from the reporting/rs folder to the server/conf/rs/metadata folder of your RTC installation.
  2. Import report definitions:
    1. Go to the admin section of report builder and click on Data Sources

Report Builder Admin View

2. Choose the Rational Data Warehouse Data Source

Report Builder Data Sources

3. Reload definitions

Report Builder Resource Refresh

  1. 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"

Report Builder Showing Git Commit

Update

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.

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.

Example

This example shows how deployment of the reporting capabilities can be done with RTC and DB2 hosted on Windows.

Prepare Database

  1. Start a DB2 command line window as the user who created the Jazz database.
  2. Change directory to the sql scripts of this package.

cd /d d:\IBM\BT-Updatesites\reporting\sql_db2_derby

  1. Connect to Data Warehouse Database

db2 connect to <database>

  1. Drop existing views and tables if they exist

db2 -tvf .\drop_before_update.sql

  1. 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 .\views\create_commit_view.sql
db2 -tvf .\views\create_commit_lookup_view.sql
  1. Disconnect the command line session

db2 disconnect <database>

Deploy Data Collection Files

  1. Copy the files in reporting/dcc to server/conf/dcc/mapping

cp .\dcc\git-commit.ttl D:\IBM\JazzLiberty_DCC_606\server\conf\dcc\mapping

  1. Import data collection definitions as shown in the instructions
    1. Open DCC Web, eg. from https://jazz-home-uri/dcc/web
    2. Click the load button

Deploy Report Builder Definitions

  1. Copy the files in reporting/rs to server/conf/rs/metadata

cp .\rs\git-commit.ttl D:\IBM\JazzLiberty_RS_606\server\conf\rs\metadata

  1. Reload the report definitions as shown in the instructions
    1. Open report builder, eg. from https://jazz-home-uri/rs/reports
    2. Go to the Admin View
    3. Open Data Source
    4. Choose the Rational Data Warehouse Data Source
    5. Click refresh

Contributing

Please use the Issue Tracker of this repository to report issues or suggest enhancements.

For general contribution guidelines, please refer to CONTRIBUTING.md

Licensing

Copyright (c) Siemens AG. All rights reserved.
Licensed under the MIT License.

FOSSA Status

rtc-git-connector-service's People

Contributors

fossabot avatar sbi- avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.