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

Utilization mk2 #142

Merged
merged 5 commits into from
Mar 14, 2025
Merged

Utilization mk2 #142

merged 5 commits into from
Mar 14, 2025

Conversation

rbjornstad
Copy link
Contributor

No description provided.

@rbjornstad rbjornstad requested a review from Copilot March 14, 2025 13:07
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces a new page load function for utilization that calculates a time interval based on URL parameters and uses it to fetch resource utilization data.

  • Adds a new page load handler in TypeScript that interprets the "interval" query parameter.
  • Computes start and end times before invoking the resource utilization loader.
Comments suppressed due to low confidence (1)

src/routes/team/[team]/[env]/app/[app]/utilization2/+page.ts:9

  • Consider adding a default case to the switch statement to explicitly handle unexpected or missing 'interval' values, even if the default behavior (7 days) is intended.
switch (interval) {

@rbjornstad rbjornstad marked this pull request as ready for review March 14, 2025 13:25
@rbjornstad rbjornstad merged commit dd26897 into main Mar 14, 2025
2 checks passed
@rbjornstad rbjornstad deleted the utilization_mk2 branch March 14, 2025 13:25
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.

1 participant