-
Notifications
You must be signed in to change notification settings - Fork 22
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
Create percent complete by deliverable chart in Metabase #2667
Comments
Blocked by #2665 |
Here's the dashboard that is live on dev Metabase dashboardSprinty McBurndown reportNotesThere are some limitations with the Metabase dashboard:
Also there appears to be a bug based on how we're tracking history:
|
Creating a snapshot of the SQL used to create the underlying model for calculating percent complete by deliverable: -- Isolate the mappings between epics and deliverables from the previous day
WITH epic_map AS (
SELECT DISTINCT
epic_id,
deliverable_id,
d_effective
FROM app.gh_epic_deliverable_map
WHERE d_effective = CURRENT_DATE - 1
),
-- Isolate the mappings between quads and deliverables from the previous day
quad_map AS (
SELECT DISTINCT
quad_id,
deliverable_id,
d_effective
FROM app.gh_deliverable_quad_map
WHERE d_effective = CURRENT_DATE - 1
),
-- Isolate the issue metadata from the previous day
issue_history AS (
SELECT DISTINCT
issue_id,
points,
is_closed,
d_effective
FROM app.gh_issue_history
WHERE d_effective = CURRENT_DATE - 1
),
-- Join the dimension and fact tables and select the fields for subsequent analysis
deliverable_tasks AS (
SELECT
deliverable.id AS deliverable_id,
deliverable.title AS deliverable_title,
epic.id AS epic_id,
epic.title AS epic_title,
epic_map.d_effective AS epic_effective_dt,
quad.name AS quad_name,
issue.title AS issue_title,
-- The following fields are needed to calculate burndown
issue.opened_date AS issue_open_date,
issue.closed_date AS issue_closed_date,
issue_history.points AS issue_points,
-- The following fields help summarize number of points/issues closed by deliverable and day
issue_history.is_closed AS issue_closed,
CASE WHEN issue_history.is_closed = 1 THEN 0 ELSE 1 END AS issue_open,
CASE WHEN issue_history.is_closed = 1 THEN issue_history.points ELSE 0 END AS points_closed,
CASE WHEN issue_history.is_closed = 0 THEN issue_history.points ELSE 0 END AS points_open
FROM app.gh_deliverable AS deliverable
JOIN epic_map ON epic_map.deliverable_id = deliverable.id
JOIN quad_map ON quad_map.deliverable_id = deliverable.id
JOIN app.gh_quad AS quad ON quad.id = quad_map.quad_id
JOIN app.gh_epic AS epic ON epic.id = epic_map.epic_id
JOIN app.gh_issue AS issue ON issue.epic_id = epic_map.epic_id
LEFT JOIN issue_history ON issue.id = issue_history.issue_id
)
SELECT *
FROM deliverable_tasks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Create a chart in Metabase that shows the percentage of points complete by deliverable.
Acceptance criteria
The text was updated successfully, but these errors were encountered: