Skip to content

Conversation

@MrManny
Copy link
Collaborator

@MrManny MrManny commented Oct 21, 2025

This pull request updates how budget usage information is displayed to users. The main improvement is that the usage percentage is no longer shown when no budget is set, making the output clearer and more accurate.

User-facing improvements:

  • The usage percentage is now omitted from the output when there is no budget limit set, so users will only see the total scanned GB in those cases. (src/index.ts)
  • This change is noted in the CHANGELOG.md to inform users of the updated behavior.

Copy link
Contributor

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 PR improves the display of DQL query budget usage information by conditionally showing the usage percentage only when a budget limit is actually set, making the output more meaningful for users.

Key changes:

  • Modified budget status display logic to check if a budget limit exists before calculating and showing usage percentage
  • Updated CHANGELOG.md to document this user-facing behavior change

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/index.ts Added conditional logic to display usage percentage only when budgetLimitGB > 0, otherwise shows only scanned GB
CHANGELOG.md Added entry documenting the change to budget usage display behavior

@MrManny MrManny force-pushed the patch/fix-budget-calculation-when-there-is-no-budget branch from 0751627 to b6bf070 Compare October 21, 2025 11:02
@MrManny MrManny force-pushed the patch/fix-budget-calculation-when-there-is-no-budget branch from b6bf070 to b18cbd6 Compare October 21, 2025 13:07
Copy link
Collaborator

@christian-kreuzberger-dtx christian-kreuzberger-dtx left a comment

Choose a reason for hiding this comment

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

LGTM

@MrManny
Copy link
Collaborator Author

MrManny commented Oct 21, 2025

I am not authorized to merge this 😅
Could you do me the honor?

@christian-kreuzberger-dtx christian-kreuzberger-dtx merged commit 4b7137d into main Oct 21, 2025
7 checks passed
@christian-kreuzberger-dtx christian-kreuzberger-dtx deleted the patch/fix-budget-calculation-when-there-is-no-budget branch October 21, 2025 15:12
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.

3 participants