Skip to content

Add ability to show release date slip #22

@Cal-Morris

Description

@Cal-Morris

In the real world, a release date can slip

For example, when we have a date that is scheduled for 2024-01-01 there are several things that may go wrong during the testing, uat and deployment of this release

It may require an additional component version of may be pushed back due to lack of testing resources.

For these scenarios we should show the "time slip" in which a release has crept by

Implementing this with the current database structure should be doable as we know what environments a release has been in and we can calculate the "final" environment that a given release could be in using a query similar to:

WITH RECURSIVE release_strategy_steps_hierarchy AS (
  SELECT id, name, release_strategy_id, parent_id, 1 AS level
  FROM release_strategy_steps
  WHERE parent_id IS NULL
  UNION ALL
  SELECT RSS.id, RSS.name, RSS.release_strategy_id, RSS.parent_id, RSSH.level + 1
  FROM release_strategy_steps RSS
  JOIN release_strategy_steps_hierarchy RSSH ON RSS.parent_id = RSSH.id
)
SELECT RSSH.id, RSSH.name, RSSH.release_strategy_id, RSSH.parent_id, RSSH.level, STEPS.status as status
FROM release_strategy_steps_hierarchy RSSH
INNER JOIN release_strategies RS ON (RS.id = RSSH.release_strategy_id)
INNER JOIN releases R ON (R.release_strategy_id = RS.id)
LEFT OUTER JOIN release_steps STEPS on (STEPS.release_strategy_step_id = RSSH.id AND R.id = STEPS.release_id)
WHERE R.id = 'release_4'
ORDER BY RSSH.release_strategy_id, RSSH.level;

image.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions