← Back to Pull requests

[ZEPPELIN-6676] Accept both Angular object removal payload shapes #5557

Closed
unknown closed this pull request without merging on Oct 08, 2026 10:00 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 10:48 UTC
Author

What is this PR for?

The server emits two ANGULAR_OBJECT_REMOVE payload shapes. Interpreter removal supplies top-level name; client unbind supplies angularObject.name.

Represent both shapes and export a shared SDK helper using data.name ?? data.angularObject?.name. Update the existing Angular consumer to use this normalized identifier while preserving paragraph isolation and avoiding feedback messages.

Server evidence:

  • zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java:1518-1528,2276-2291
  • What type of PR is it?

    Bug Fix

    Todos

  • Represent and normalize both removal payloads.

  • Test both shapes, name precedence and paragraph isolation.
  • What is the Jira issue?

    https://issues.apache.org/jira/browse/ZEPPELIN-6676

    Slice 3 of 3: Angular object removal compatibility. Slice 1 merged in #5539 and slice 2 merged in #5544.

    How should this be tested?

    Run from the repository root after installing frontend dependencies:

    cd zeppelin-web-angular
    npm run typecheck:sdk-contracts
    npm run test:shell
    npm run check:websocket-contract
    

    Questions:

  • Does the license files need to update? No.

  • Is there breaking changes for older versions? Consumers must normalize the identifier instead of assuming top-level name is always present. Both existing server shapes are accepted. No server wire-format change.

  • Does this needs documentation? The SDK helper and regression tests show both payload shapes and normalization.
  • Diff: 193 lines (+144 / -49) across 2 files Reviewer: jongyoul Review duration: 1392m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.59) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.59 · 193 lines diff across 2 files
    0.59
    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.315
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.059
    Real PR Conversation Timeline
    1 comments
    "Review active on #5557"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 59.2% (MEDIUM) · Higher = larger blast radius
    59.2%
    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: 23.4% · Safe to merge
    23.4%