Skip to content

Conversation

@n3rdc4ptn
Copy link
Member

This pull request updates the project version and refines how deletion events are tracked for MCPUsage resources. The main focus is on improving the logic for updating MCPUsage objects when a deletion event occurs.

Version update:

  • Bumped the project version from v0.0.13-dev to v0.0.14 in the VERSION file.

MCPUsage deletion event handling:

  • Refactored the DeletionEvent method in internal/usage/tracking.go to first fetch the existing MCPUsage object before updating its deletion timestamp, rather than patching a newly constructed object. This ensures that updates are made only to existing resources and handles errors more robustly.

@n3rdc4ptn n3rdc4ptn requested a review from Copilot August 12, 2025 07:10
@n3rdc4ptn n3rdc4ptn self-assigned this Aug 12, 2025
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 pull request improves deletion event handling for MCPUsage resources by refactoring the logic to retrieve existing objects before updating them, and bumps the project version from v0.0.13-dev to v0.0.14.

  • Refactored DeletionEvent method to use Get-then-Update pattern instead of creating and patching new objects
  • Improved error handling for MCPUsage resource retrieval
  • Updated project version to v0.0.14

Reviewed Changes

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

File Description
internal/usage/tracking.go Refactored DeletionEvent method to fetch existing MCPUsage before updating deletion timestamp
VERSION Bumped version from v0.0.13-dev to v0.0.14

n3rdc4ptn and others added 2 commits August 12, 2025 09:11
@n3rdc4ptn n3rdc4ptn requested a review from robertgraeff August 12, 2025 07:16
@n3rdc4ptn n3rdc4ptn enabled auto-merge (squash) August 12, 2025 07:16
@n3rdc4ptn n3rdc4ptn disabled auto-merge August 12, 2025 07:25
@n3rdc4ptn n3rdc4ptn merged commit f4aae68 into main Aug 12, 2025
6 checks passed
@n3rdc4ptn n3rdc4ptn deleted the fix-deleted-at-update branch August 12, 2025 07: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.

3 participants