← Back to Pull requests

[19.0][MIG] base_tier_validation_board: Migration to 19.0 #40

Open
unknown opened this pull request with 330 lines diff across 4 files
View on GitHub
unknown unknown commented on May 14, 2026 10:17 UTC
Author

Migration of base_tier_validation_board (Tier Review Activity Board) to 19.0. The module never got past 16.0 in OCA/server-ux; its 17.0 and 18.0 migrations were done in OCA/server-ux#1155, which was closed before merge.

Commit structure

The full history is preserved, following the OCA migration guide:

1. 16.0 history from OCA/server-ux
2. 17.0 / 18.0 migration from OCA/server-ux#1155 (4 commits): @Luca-Policastro and @astirpe.
3. [IMP] pre-commit auto fixes and [MIG] Migration to 19.0. Only what 19.0 needs:
- _search takes the 19.0 signature (args, kwargs) and honours bypass_access.
- The _read_group_raw override is dropped: the method no longer exists, and _read_group goes through _search.
- _selection_related_model_instance no longer uses search([]).
- users → user_ids in groups.xml.
- Tests for the document reference, open_origin and the per-document access filter.
4.
Improvements, one commit each
so they can be reviewed, dropped or backported separately:
-
My Reviews / All Reviews / Review Statistics menus. These take over the reporting of the 16.0-only base_tier_validation_report (@kittiu / Ecosoft), with model_id and response_days added to tier.review.
- Richer kanban card, overdue indicator, activities. tier.review now inherits mail.thread + mail.activity.mixin.
- Target of the systray
Show all reviews link. It implements the tier_review_dashboard_action hook added by #41 and has no effect until #41 is merged.
- The board uses base_tier_validation's icon.
- No
New button on the review actions.
- Polished review list and default filters.
- Configurable
Late threshold. It uses the base_tier_validation.late_after_days system parameter (default 7), the same one #41's systray uses.
- More useful chart measures.
- Kanban aging and one-click to the document.

If a reviewer would rather keep this PR to the plain migration, the improvement commits can move to a follow-up PR unchanged.

Access

  • All Reviews and Review Statistics are gated by group_show_tier_review_board. My Reviews* is visible to every internal user.

  • The per-document _search filter on tier.review means that, even with the board group, a user can't see reviews of documents they can't read.
  • Credit

    @JasminSForgeFlow (original 16.0 module), @Luca-Policastro (17.0 migration), @astirpe (18.0 migration in OCA/server-ux#1155), @CasVissers-360ERP (functional review on #1155), @kittiu / Ecosoft (base_tier_validation_report, whose reporting the menus above cover).

    Diff: 330 lines (+247 / -83) across 4 files Reviewer: bofiltd Review duration: 269320m
    All Vouch review confidence checks passed
    Residual risk 0.40 = Change Risk (0.72) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.72 · 330 lines diff across 4 files
    0.72
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.347
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.072
    Real PR Conversation Timeline
    1 comments
    "Review active on #40"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 44.7% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 72.3% (HIGH) · Higher = larger blast radius
    72.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.7% · Lower = rushed or shallow review
    44.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 40.0% · Moderate risk
    40.0%