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

🐛 Parametrize budget rollover into a configuration #1562

Merged
merged 5 commits into from
Feb 20, 2025

Conversation

davidreneuw
Copy link
Contributor

Pull Request

Description

A long long time ago, we had implemented a system (called "Rollover") that upon a new fiscal year, would reduce a workspace's budget by the amount they used in the prior fiscal year. E.g. DW1 used $60 out of $100 budget during fiscal year 2024-2025, on
April 1st 2025, it's budget would be lowered to $40. This was to match the Azure budgets, since they have their spending reset yearly on April 1st, so in the same example, in Azure, DW1's spending would be $0 and its budget would be $40 on April 1st 2025, effectively "rolling over" the leftover credits into the new year.

This system was made based on old assumptions, and we don't exactly make good use of Azure budgets anymore. In addition, I did not want this to happen unexpectedly, so I decided to make that behaviour a configuration, which is off by default. We can re-enable it if we want to keep it

Related Issues

Changes

  • Added a "EnableRollover" configuration

Testing

  • Existing tests pass

Checklist

  • Code follows dotnet coding standards
  • Tests added/updated to cover changes

@ErikApption ErikApption enabled auto-merge (squash) February 19, 2025 15:24
@ErikApption ErikApption merged commit 40f7f25 into develop Feb 20, 2025
24 checks passed
@ErikApption ErikApption deleted the dr/parametrize-rollover branch February 20, 2025 00:37
ErikApption added a commit that referenced this pull request Feb 24, 2025
* Verify that user in tenant (#1563)

Co-authored-by: davidreneuw <[email protected]>

* ✨ New home page (#1556)

* Mock home page and drop down in sidebar

* Home page mocks

* New type of card

* New home page

* Improve workspace sidebar dropdown

* Adding localization and sorting

* Only show non-deleted workspaces in dropdown

* Make cost bar horizontal, add label on top

* Remove debug leftover

---------

Co-authored-by: datahub-portal-pr-rw[bot] <192352896+datahub-portal-pr-rw[bot]@users.noreply.github.com>
Co-authored-by: Erik <[email protected]>

* Handle missing credits better (#1570)

* 💰 Updating the GC Hosting endpoint fields (#1568)

* Adding migration to change what GC Hosting gives us

* Updating controller to handle new fields

* Updating tool page to handle new fields

* Updating tool page to add the workspace budget (missed before

---------

Co-authored-by: datahub-portal-pr-rw[bot] <192352896+datahub-portal-pr-rw[bot]@users.noreply.github.com>

* Postgres Tier code refactor (#1564)

* Postgres tiers merging

* code cleanup

* Restricting usage emails to admins and workspace leads (#1565)

* Fixing styling issue with HomeNav (#1559)

* 🐛 Parametrize budget rollover into a configuration (#1562)

* Parametrize budget rollover into a configuration

* Fix logic to give the force option the highest authority

* Adjust for unit tests

---------

Co-authored-by: datahub-portal-pr-rw[bot] <192352896+datahub-portal-pr-rw[bot]@users.noreply.github.com>

* Adding migration for new fields (#1573)

* Added unit tests for GC Hosting API (#1571)

* - misc validation for hosting service controller
- removed WorkspaceIdentifier since acronym is returned

* added request id

* added feature for gc hosting

* Add files via upload

* moved test files

* fixed workspace storage tests

* added sample requests and unit tests for hosting services api

* added valid sample for latest format

* fix for unit tests

* fixed required values in json

---------

Co-authored-by: datahub-portal-pr-rw[bot] <192352896+datahub-portal-pr-rw[bot]@users.noreply.github.com>

---------

Co-authored-by: davidreneuw <[email protected]>
Co-authored-by: David René <[email protected]>
Co-authored-by: datahub-portal-pr-rw[bot] <192352896+datahub-portal-pr-rw[bot]@users.noreply.github.com>
Co-authored-by: Sean Stilwell <[email protected]>
Co-authored-by: gcnabeel <[email protected]>
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.

2 participants