Skip to content

Conversation

@xueyizheng
Copy link
Collaborator

What type of PR is this?

feat: change a benefit struct to fit special task

Check the PR title.

  • This PR title match the format: [<type>][<scope>]: <description>. For example: [fix][backend] flaky fix
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Add documentation if the current PR requires user awareness at the usage level.
  • This PR is written in English. PRs not in English will not be reviewed.

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
zh(optional):

(Optional) Which issue(s) this PR fixes:

biwang75678 and others added 30 commits September 9, 2025 14:56
…/coze-loop into feat/optimize_task_prompt_pilot
…/coze-loop into feat/optimize_task_prompt_pilot
…/coze-loop into feat/optimize_task_prompt_pilot
@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #249      +/-   ##
==========================================
+ Coverage   65.66%   65.69%   +0.02%     
==========================================
  Files         504      507       +3     
  Lines       57307    57718     +411     
==========================================
+ Hits        37629    37915     +286     
- Misses      17103    17197      +94     
- Partials     2575     2606      +31     
Flag Coverage Δ
unittests 65.69% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
backend/infra/external/benefit/benifit.go 40.00% <ø> (ø)
backend/infra/platestwrite/latest_write_tracker.go 17.85% <ø> (ø)

... and 18 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d126143...a073b53. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@xueyizheng xueyizheng requested review from CozeLoop and removed request for tpfz October 23, 2025 06:33
Copy link
Collaborator

@CozeLoop CozeLoop left a comment

Choose a reason for hiding this comment

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

Summary: Requesting changes due to numeric type inconsistency (float64 vs int64) for resource points and enum robustness/naming for When. See inline comments.

  • Must-Fix: Use integer/decimal type for resource points consistently across check/deduct paths to avoid precision drift.
  • Should-Fix: Rename and validate enum When (suggest OptPhase with Valid()), avoid ambiguous zero value.
  • Suggestion: Mark deprecated API with Deprecated: for tooling support.

Thanks for the clear scope and minimal diff. Once addressed, the API surface will be more robust and consistent.

@xueyizheng xueyizheng requested a review from wanglizhi October 23, 2025 12:16
@xueyizheng xueyizheng changed the title [fix][infra]change CheckAndDeductOptimizationBenefit struct to fit special task [deprecated][fix][infra]change CheckAndDeductOptimizationBenefit struct to fit special task Oct 23, 2025
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.

5 participants