ministryofjustice / operations-engineering

This repository is home to the Operations Engineering's tools and utilities for managing, monitoring, and optimising software development processes at the Ministry of Justice. • This repository is defined and managed in Terraform
https://user-guide.operations-engineering.service.justice.gov.uk/
MIT License
14 stars 5 forks source link

Create Python script(s) to collate Support Request data #4208

Open andyrogers1973 opened 8 months ago

andyrogers1973 commented 8 months ago

Currently the Support Request stats are tracked via Google Sheets and reported manually in stand up. This ticket is to create the same functionality using GitHub and enable automatic reporting to Slack.

I am testing this functionality because:

The repo operations-engineering-support-metadata exists and support_requests.csv file exists. I now need to collate data from this sheet using python. To replicate the functionality of the current sheet I need to be able to:

Once collated I will need the script to report this data in a readable format to a Slack channel.

Considered done when:

andyrogers1973 commented 8 months ago

Script started and able to read the test.csv file.

Currently unable to edit this file in table format so investigating how to fix that.

andyrogers1973 commented 8 months ago

Reduced the size of the .csv for testing

andyrogers1973 commented 8 months ago

Can now edit csv file via GitHUb developer web using VSCode web.

Basic script now able to total daily requests via date.

andyrogers1973 commented 7 months ago

Script is now able to:

andyrogers1973 commented 7 months ago

Script updated and workflow created. Testing to OPS_ENG_SR_TEST channel.

Dataframe is working and generating:

Message is successfully sent to the test channel:

Operations Engineering Notification APP Good morning, Yesterday we received 10.0 Support Requests Here's a breakdown of yesterdays Support Requests: Request Type 2024-03-26 0 GitHub – add user to org 2.0 1 GitHub – remove user from org 1.0 4 GitHub – remove user from team/repo 1.0 13 GitHub - add Renovate to repo 2.0 15 GitHub - information/help 1.0 20 1Password - information/help 1.0 30 Sonarcloud 1.0 33 General infomation/help 1.0

andyrogers1973 commented 7 months ago

Considered done as: