Skip to content

Flask app dashboard for services, deployments, pull requests ...

License

Notifications You must be signed in to change notification settings

petracihalova/service-dashboard

Repository files navigation

service-dashboard

Flask app dashboard for services, deployments, pull requests, and more created as internal tool for my team.

This project is developed using the Flask framework. Configuration settings can be read in from a .env file. An example file .env.example is provided in the repository. To use the defaults simply

cp .env.example .env

Modify as you see fit.

App contains the following main parts:

Overview page

The 'Overview' page displays the services and their links from the file /data/services_links.yml.

If the file does not exist, the mock data from ./data/test_data are copied into ./data/ folder and displayed.

Deployments page

Open Pull Requests page

The 'Open Pull Requests' page displays open PRs from GitHub and GitLab (https://gitlab.cee.redhat.com) repos listed on the 'Overview' page. The app checks the links from the 'Overview' page, identifies all matches and download all open pull requests into nice datatable. All downloaded data are stored in the /data/github_pr_list.json for GitHub and /data/gitlab_pr_list.json for GitLab. New data are downloaded:

  • when file doesn't exist or
  • after pushing the 'Update data' button

A GitHub and GitLab token are required to download new data (but only if app finds GitHub/GitLab links on Overview page).

Merged Pull Requests page

The 'Merged Pull Requests' page displays merged PRs for the last 14 days from GitHub repos listed on the 'Oveerview' page. The app checks the links on the 'Overview' page, identifies all matches and download all merged pull requests into nice datatable. All downloaded data are stored in the /data/github_merged_pr_list.json for GitHub and /data/gitlab_merged_pr_list.json for GitLab. New data are downloaded:

  • when file doesn't exist or
  • after pushing the 'Update data' button

A GitHub and GitLab token are required to download new data (but only if app finds GitHub/GitLab links on Overview page).

How to run

  1. download the project git clone [email protected]:petracihalova/service-dashboard.git and go inside the service-dashboard folder
  2. copy the configuration file cp .env.example .env
  3. create a virtual environment python3 -m venv venv
  4. activate the virtual environment source venv/bin/activate
  5. install dependencies pip install -r requirements.txt
  6. run the app flask run
  7. open http://127.0.0.1:5000

About

Flask app dashboard for services, deployments, pull requests ...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published