Skip to content

ref(cogs): Use usecase directly as app_feature#508

Open
jan-auer wants to merge 2 commits into
mainfrom
ref/cogs-app-feature
Open

ref(cogs): Use usecase directly as app_feature#508
jan-auer wants to merge 2 commits into
mainfrom
ref/cogs-app-feature

Conversation

@jan-auer

@jan-auer jan-auer commented Jun 22, 2026

Copy link
Copy Markdown
Member

Usecases are created on-the-fly by clients, and by design we want to avoid code changes to support new ones, keeping config overhead and misconfiguration risk low. The hard-coded usecase-to-app_feature mapping contradicts this: every new usecase silently falls back to "shared", losing COGS attribution until someone updates the match arm. Technically, "shared" is incorrect here, as this is not actually shared cost.

Since there is no cross-service consistency of app_feature values anyway, the usecase name is already the right granularity. Use it directly.

@jan-auer jan-auer requested a review from a team as a code owner June 22, 2026 14:32

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8678c85. Configure here.

Comment thread objectstore-service/src/backend/counting.rs
Comment thread objectstore-service/src/backend/counting.rs
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.45%. Comparing base (4b0fe8f) to head (c165adf).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #508      +/-   ##
==========================================
- Coverage   87.47%   87.45%   -0.02%     
==========================================
  Files          86       86              
  Lines       13912    13903       -9     
==========================================
- Hits        12169    12159      -10     
- Misses       1743     1744       +1     
Components Coverage Δ
Rust Backend 92.25% <100.00%> (-0.01%) ⬇️
Rust Client 80.06% <ø> (ø)
Python Client 88.51% <ø> (ø)

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jan-auer jan-auer requested a review from matt-codecov June 22, 2026 15:39
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