bcgov / nr-get-token

This tool will automate the process for getting setup to use common services
https://bcgov.github.io/nr-get-token/
Apache License 2.0
7 stars 9 forks source link

Add a deployment history table, replace lifecycle #313

Closed loneil closed 3 years ago

loneil commented 3 years ago

Description

SHOWCASE-781

Simplify history model for SC deployments away from "lifecycle" concept. This is to support the simple deployment history UI coming up.

Add a new table and populate it with existing lifecycle data. Keep old tables around for the time being (no size worries) and delete later. Change all the code to refer to the new deployment history table and API references to those fields.

Tested out everything here to ensure that promotions + status, and audits (on admin side) all still work for all cases. As the lifecycle history was used to determine current allowed promotions and such.

Types of changes

New feature (non-breaking change which adds functionality)

Breaking change (fix or feature that would cause existing functionality to change)

Checklist

Further comments

Key for this PR is to keep all GETOK structure the same as it always was, no additional changes other than replacing reads and writes with the new table instead of lifecycle ones.

Model of new table: image

ghost commented 3 years ago

PR Deployed at: https://getok-dev.apps.silver.devops.gov.bc.ca/pr-313