Skip to content

Draft: Add namespace_monthly_usage_id column to ProjectMonthlyUsage

drew stachon requested to merge add-ns-usage-id-to-project-usage into master

What does this MR do and why?

This MR adds a simple bigint column to ci_project_monthly_usages so we can tie the usage of individual projects to the namespace responsible for their consumable minutes. By attaching project-level consumption records to namespace-level consumption records, we'll be able to maintain an account of minutes used by a project when it is moved from one namespace to another.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by drew stachon

Merge request reports