Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTSPO-18443: Initial json function add #694

Merged
merged 14 commits into from
Oct 23, 2024
Merged

Conversation

reespozzi
Copy link
Contributor

@reespozzi reespozzi commented Aug 20, 2024

Jira link

https://tools.hmcts.net/jira/browse/DTSPO-18443

This work is to enable us to send a summary of auto-shutdown status in daily-checks, but this lives in another repo. By adding these all to json files, we can talk across repos and send a slack message in daily-checks as a pt2 to this work

They're currently being sent to an auto-shutdown channel, but the tech improvement ask was to condense this into daily checks so it's all in one place.

This PR adds a new function which, whenever a status update is usually sent, we are dropping this into a json file under /status

This process is idempotent, because there is a json ID lookup happening so that files are overwritten or appended where needed

This /status dir is wiped every evening so we can start fresh each day when the first auto-start effort runs.

At present, it commits to a branch to ensure it's working properly once merged, then it can be pointed to master for runs

@reespozzi reespozzi marked this pull request as ready for review October 22, 2024 16:06
@reespozzi reespozzi requested a review from a team as a code owner October 22, 2024 16:06
@reespozzi reespozzi requested review from hannah38, ssian2 and staceywilson and removed request for a team October 22, 2024 16:06
@reespozzi reespozzi merged commit b3dea7d into master Oct 23, 2024
1 check passed
@reespozzi reespozzi deleted the DTSPO-18443-Json-structure branch October 23, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants