Skip to main content

Jira_sro_etl

Quality Gate Status Coverage Code Smells

General Information

Goal

Library responsible for extracting data from Jira to SRO database

Documentation

The Documentation can be found in this link

Requirements

The code need the following programs to run, versions were listed just for guidance, you can try with different ones by your own risk, we tested with these.

Program Version
Postgres 13.3
MongoDB Community 4.4.5
Python 3.8.5
Pip 21.1.1

Installation

If you have already made the initial fill, just install jira_sro_etl running:

pip install jira_sro_etl

If you wanna do the initial fill, clone this repo and follow the steps listed on USAGE section

Usage

Since it uses SRO_DB lib you must export the following environment variables:

  • USERDB = Postgres's username
  • PASSWORDDB = Postgres's password
  • HOST = Postgres's host (usually localhost)
  • DBNAME = Your database's name (must be already created) on Postgres

And if your mongo db is not on your localhost you can export:

  • MongoDB = Mongo host address

Create a virtual environment and activate it

python3 -m venv env && source env/bin/activate

Install the requirements

pip install -r requirements.txt

Fill the fields on dump_db/create_org.py and run

python dump_db/create_db.py && python dump_db/create_org.py

Grab the data that was printed on terminal after last command and paste it on initial_fill.py (before the manager = Manager(data)), then run

python initial_fill.py

After the initial fill you can run new creations, updates or deletes on any classes. If you've installed jira_sro_etl with pip you can run the following code for example:

from jira_sro_etl import factories
u = factories.userFactory()
u.create({'content': {'all': {'user': {'accountId': 'ACCOUNT_ID_FROM_JIRA'}}}})

CI/CD configuration

Configure the following variables in CI/CD:

  • VAR_SONAR_CLOUD_TOKEN = Token from SonarCloud
  • VAR_GITLAB_USER_NAME = username of Gitlab
  • VAR_GITLAB_USER_EMAIL = user's email of Gitlab
  • VAR_PYPI_USER_NAME = pypi's username
  • VAR_PYPI_PASSWORD = pypi's password

This lib was PowerRight by SEON Application Lib Generator

Metadata

Release files for jira-sro-etl 26.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for jira-sro-etl 26.0.0
File Interpreter ABI Platform
jira_sro_etl-26.0.0-py3-none-any.whl Python 3 none any Details

Release files / jira_sro_etl-26.0.0-py3-none-any.whl

Download URL jira_sro_etl-26.0.0-py3-none-any.whl
Size 52.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f6b780c5a1e0394b7dffc595b044024929ca916bf060b8ce494ebdb29c5687d
BLAKE2b-256 checksum
How to use checksums
013258bdd3eac669fea2c2a9a852c446239c37e479275db2c9e24bd15f24b449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

26.0.0 This release

1 release file

25.0.0

1 release file

24.0.0

1 release file

23.0.0

1 release file

22.0.0

1 release file

21.0.0

1 release file

20.0.0

1 release file

19.0.0

1 release file

18.0.0

1 release file

17.0.0

1 release file

16.0.0

1 release file

15.0.0

1 release file

14.0.0

1 release file

13.0.0

1 release file

12.0.0

1 release file

11.0.0

1 release file

10.0.0

1 release file

9.0.0

1 release file

8.0.0

1 release file

7.0.0

1 release file

6.0.0

1 release file

5.0.0

1 release file

4.0.0

1 release file

3.0.0

1 release file

2.0.0

1 release file

1.0.0

1 release file

0.11.0

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page