← Back to Pull requests

[ZEPPELIN-6283] Decouple 'isRevisionSupported' state from configuration API response #5030

Closed
unknown closed this pull request without merging on Aug 20, 2025 06:38 UTC
View on GitHub
unknown unknown commented on Aug 16, 2025 20:31 UTC
Author

What is this PR for?


This PR separates the isRevisionSupported field from the configuration API into a dedicated endpoint.
No internal logic is changed.
isRevisionSupported seems to be more related to Notebook logic rather than configuration. It is included in the WebSocket configuration response, making the code more complex and less extensible.
For example, the REST configuration response doesn’t have isRevisionSupported. Adding it would require injecting a Notebook instance into ConfigurationsRestApi, which doesn’t seem related to configurations. It feels like a code smell.
On the client, it was previously fetched globally. Now it is fetched in the Notebook page. There seems to be no need to use it as a global state.

What type of PR is it?


Refactoring

Todos

What is the Jira issue?


  • ZEPPELIN-6283
  • How should this be tested?


    Run NotebookTest.testRevisionSupported()
    Verify on both New UI and Old UI

    Questions:


    Does the license files need to update? N
    Is there breaking changes for older versions? N
    Does this needs documentation? N

    Diff: 147 lines (+110 / -37) across 1 files Reviewer: Reamer Review duration: 4927m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.56) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.56 · 147 lines diff across 1 files
    0.56
    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%
    57%
    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.299
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.056
    Real PR Conversation Timeline
    1 comments
    "Review active on #5030"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 58.0% 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: 56.1% (MEDIUM) · Higher = larger blast radius
    56.1%
    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: 58.0% · Lower = rushed or shallow review
    58.0%
    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.5% · Safe to merge
    23.5%