← Back to Pull requests

Feature/improved engineering view #382

Closed
unknown closed this pull request without merging on Oct 26, 2026 16:50 UTC
View on GitHub
unknown unknown commented on Aug 17, 2026 13:26 UTC
Author

  • Add a new My Queue page (/my-queue) that surfaces support cases needing engineering attention — cases where the customer has commented on the portal more recently than the engineer has on JIRA

  • The view is automatically scoped to the logged-in engineer's assigned cards (matched by email address), so each engineer sees only their own workload

  • Expandable rows show both portal and JIRA comment history side-by-side for quick context

  • Add comment_type field to the Comment model with auto-migration support for schema changes

  • Add a nullable no_update_date column to JiraCard and wire the read-side exclusion (mirrors the reference "no update needed" clause); stays NULL until write-back exists, so no behavior change yet

  • Tests cover the core get_my_queue_cases() logic: inclusion/exclusion rules, sprint and engineer filtering, email-vs-display-name matching, return structure, and edge cases
  • How it works

    get_my_queue_cases() joins Cases with JIRA cards (excluding closed cases), then for each case compares the most recent portal comment timestamp against the most recent JIRA comment timestamp. A case is shown if:

  • It has no JIRA comments (never responded to), or

  • Its most recent portal comment is newer than its most recent JIRA comment (customer followed up)
  • Engineer scoping matches the logged-in user's SAML email (current_user.mail) against a new nullable JiraCard.assignee_email column (populated from the JIRA assignee emailAddress). This replaces the earlier display-name match, which failed for users whose SAML login omits a surname (display_name = givenName only) and so never matched the JIRA assignee display name — the queue would silently come back empty. ENGINEER_OVERRIDE now takes an email address.

    Review feedback addressed: dropped all docker-compose changes (the volume path change had already landed upstream, and the postgres image pin was unrelated to this feature).

    🤖 Generated with Claude Code

    Diff: 247 lines (+185 / -62) across 3 files Reviewer: dcritch Review duration: 101004m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 247 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.330
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #382"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 38.9% (MEDIUM) · Higher = larger blast radius
    38.9%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.4% · Safe to merge
    15.4%