feat(SUP-52187): UI conf restoration from admin console - #14101
Conversation
|
@github-copilot suggest |
|
@github-copilot suggest |
🤖 AI PR Review🚦 Verdict: 🔴 CRITICALThe new 📌 Context Summary & Code ArchaeologyThis PR replaces a manual, T3-only recovery process (a one-off script that flips a soft-deleted UIConf and its file syncs back to "ready") with a self-service Admin Console action. The Jira ticket's explicit expected outcome is "restrict access to authorized roles only" and "eliminate the need for manual scripts... for this action." The new 📋 Actionable Feedback
|
|
@github-copilot suggest |
🤖 AI PR Review (Updated)🚦 Verdict: 🟡 SUBOPTIMALThe blocking authorization gap from the prior review is fixed, but the ported recovery logic still drops one safety check from the original script it was modeled on — a UIConf can be marked "restored" even when it has zero known file syncs. 🔄 Re-Review Delta
📋 Actionable Feedback
|
- Guard against restoring a UIConf with no file syncs (throw UI_CONF_FILE_SYNC_MISSING when $fileSyncs is empty) - Replace magic status literal 3 with Kaltura_Client_Enum_UiConfStatus::DELETED; add UiConfStatus enum class Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@github-copilot suggest |
🤖 AI PR Review (Updated)🚦 Verdict: 🔴 CRITICALThe two issues from the prior review are addressed, but the fix for the "hard-coded status literal" finding introduces a new class that will fatal-error at runtime and lives in a path this repo's own 🔄 Re-Review Delta
📋 Actionable Feedback
|
Move UI_CONF_STATUS_DELETED constant to WidgetController (hand-maintained, tracked file) and remove UiConfStatus.php from the auto-generated client library directory Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@github-copilot suggest |
🤖 AI PR Review (Updated)🚦 Verdict: 🟢 SAFEDelta: BLOCKER (enum class in git-ignored generated dir, extending non-existent base) → fixed. Constant moved to No open or new issues. Good to merge. |
|
@github-copilot suggest |
add the option to restore uiconf from the admin console
SUP-52187