Skip to content

feat(finance): add needs_repush signal to MB push preview - #56

Merged
ilramdhan merged 1 commit into
mutugading:mainfrom
ilramdhan:fix/mb-costing-11-aug
Aug 12, 2026
Merged

feat(finance): add needs_repush signal to MB push preview#56
ilramdhan merged 1 commit into
mutugading:mainfrom
ilramdhan:fix/mb-costing-11-aug

Conversation

@ilramdhan

Copy link
Copy Markdown
Member

Description

Surface MB heads whose pushed cst_mb_cost row points at a superseded (or orphaned) source cost while a newer non-superseded calc result exists. These heads were already pushable but indistinguishable from freshly-computed ones, so a stale approved value could persist unnoticed.

Change Type

  • ✨ New service/message
  • ➕ Add field/RPC/enum value
  • 🔄 Modify validation
  • 📝 Documentation update
  • ⚠️ Deprecation
  • 🔧 Config/script changes

Proto Files Changed

  • common/v1/common.proto
  • finance/v1/uom.proto
  • Other: finance/v1/

Changes Made

  • Add needs_repush = 7 field to PushableMbHead
  • Add needs_repush_count = 4 field to PreviewPushToHeadResponse
  • Surface MB heads pointing at superseded/orphaned source costs in MB push preview

Related Issues

Fixes #
Related to #

Breaking Change Check

Is this a breaking change?

  • No - buf breaking passes
  • Yes - Requires version bump

Breaking Change Evidence

# Output of buf breaking command
buf breaking --against '.git#branch=main'

Lint Check

# Output of buf lint
buf lint

Generated Code Preview (Optional)


Pre-merge Checklist

  • I have read and followed RULES.md
  • buf format -w applied
  • buf lint passes
  • buf breaking passes
  • Comments document new messages/fields
  • REST mappings follow conventions
  • Validation rules are complete
  • Field numbers are logical

Impact Assessment

  • Backend code regeneration required
  • Frontend code regeneration required
  • OpenAPI spec regeneration required

Reviewer Notes

New field numbers added only, without renumbering:

  • PushableMbHead.needs_repush = 7
  • PreviewPushToHeadResponse.needs_repush_count = 4

Surface MB heads whose pushed cst_mb_cost row points at a superseded
(or orphaned) source cost while a newer non-superseded calc result
exists. These heads were already pushable but indistinguishable from
freshly-computed ones, so a stale approved value could persist unnoticed.

New field numbers only, no renumbering:
- PushableMbHead.needs_repush = 7
- PreviewPushToHeadResponse.needs_repush_count = 4

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ilramdhan ilramdhan added this to the Costing Release Milestone milestone Aug 12, 2026
@ilramdhan ilramdhan self-assigned this Aug 12, 2026
@ilramdhan ilramdhan added the documentation Improvements or additions to documentation label Aug 12, 2026
Copilot AI lite review requested due to automatic review settings August 12, 2026 07:59
@ilramdhan ilramdhan added the enhancement New feature or request label Aug 12, 2026
@ilramdhan ilramdhan added the feat label Aug 12, 2026

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ilramdhan
ilramdhan merged commit 926bdc4 into mutugading:main Aug 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request feat

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants