Skip to content

fix(admin): wait for version history info before modified plugin dialog - #3988

Open
jmthomas wants to merge 1 commit into
fix_modified_plugin_dialog_upgradefrom
fix_modified_plugin_dialog_info_race
Open

jmthomas wants to merge 1 commit into
fix_modified_plugin_dialog_upgradefrom
fix_modified_plugin_dialog_info_race

Conversation

@jmthomas

@jmthomas jmthomas commented Oct 1, 2026

Copy link
Copy Markdown
Member

ModifiedPluginDialog picks its upgrade flow once at creation, so opening it before /openc3-api/info returned could skip versioning and report no conflicts. Extremely unlikely in practice due to user clicking but potentially triggerable in automated testing.

ModifiedPluginDialog picks its upgrade flow once at creation, so opening it
before /openc3-api/info returned could skip versioning and report no conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jmthomas
jmthomas requested review from EmilyRagan and a balanced review from Copilot October 1, 2026 23:04
@codecov

codecov Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.15%. Comparing base (254dd97) to head (e1937c8).

Files with missing lines Patch % Lines
...nc3-vue-common/src/tools/admin/tabs/PluginsTab.vue 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                          Coverage Diff                           @@
##           fix_modified_plugin_dialog_upgrade    #3988      +/-   ##
======================================================================
+ Coverage                               80.12%   80.15%   +0.02%     
======================================================================
  Files                                     901      901              
  Lines                                   68374    68374              
  Branches                                 2650     2650              
======================================================================
+ Hits                                    54784    54802      +18     
+ Misses                                  12924    12907      -17     
+ Partials                                  666      665       -1     
Flag Coverage Δ
frontend 67.03% <0.00%> (+0.03%) ⬆️
python 80.13% <ø> (ø)
ruby-api 82.63% <ø> (+0.28%) ⬆️
ruby-backend 85.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

sonarqubecloud Bot commented Oct 1, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The synchronization fix is correct; only a deterministic regression test is missing.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

No blocking issues. 1 test-coverage nit.

Ensures modified-plugin upgrades wait for Version History capability detection before selecting the upgrade flow.

Changes:

  • Retains the /openc3-api/info request promise.
  • Awaits capability detection before opening ModifiedPluginDialog.
File Description
PluginsTab.vue Synchronizes modified-plugin upgrade flow with Version History detection.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

this.pluginHashTmp = pluginHash
if (this.isModified(this.currentPlugin)) {
// The upgrade flow depends on scriptVersionsEnabled
await this.infoLoaded

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants