Failed Image Storage status poll leaves settings controls disabled
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, wordpress
- 領域
- frontend
調査の方向性
assets/src/dashboard/utils/api.js の callSync() から始め、特に loading state の設定と rejected-request handler を確認してから、assets/src/dashboard/parts/connected/settings/OffloadMedia.js がそれらのフラグをどのように使用しているかを追跡します。rejected transfer status request を再現し、Image Storage controls が復旧し、operation error が表示されることを確認します。dashboard の test setup が対応している場合は関連する coverage を追加し、その後 npm test を実行します。
索引モデルが issue の本文から書いたものです。
説明
Summary
The Image Storage settings can remain non-interactive after a transfer status request fails. The interface is expected to restore usable controls and display the operation error. Instead, the transfer indicator can disappear while the Image Storage choices and Sync control remain disabled, preventing the user from cancelling or restarting the operation from the screen.
Customer context
- Product / area: Optimole Pro, Image Storage settings UI
- Version: Customer version not provided; inspected source is 4.2.10
- Environment: WordPress; Windows 10 and Firefox reported by ticket metadata
- Integration / third party: No cache reported; the precise failed REST request was not captured
- Reported error / symptom: Image Storage is frozen and controls cannot be clicked
- Impact: The user cannot access normal transfer controls or logs from the affected screen
Reproduction notes
Reported workflow:
- Return to
Optimole > Settings > Image Storagewhile the transfer remains active. - Attempt to use the Image Storage controls.
- Observe that the screen is non-interactive and Cancel, restart, or log actions cannot be used.
A deterministic source-level trigger is to reject the transfer status request after callSync() sets global loading. No browser runtime reproduction was performed, and the original screenshot is unavailable.
Diagnosis
Conclusion
callSync() sets the dashboard-wide loading state before each transfer status request. Its rejected-request handler clears only transfer-specific loading flags, leaving the global loading state enabled. The Image Storage component then hides the progress controls because transfer loading is false while disabling the normal choices and Sync control because global loading remains true. This is a definite UI state defect for the rejected-poll path and closely matches the reported non-interactive screen.
Where this likely occurs
assets/src/dashboard/utils/api.js—callSync()lines 479–590: setsisLoadingat line 498; the rejection handler at lines 585–589 clearsloadingSyncandloadingRollbackwithout clearingisLoading.assets/src/dashboard/parts/connected/settings/OffloadMedia.js—OffloadMedialines 312–322 and 370–436: transfer controls depend on transfer-specific flags, while the radio choices and Sync button independently become non-interactive when globalisLoadingremains true.assets/src/dashboard/parts/connected/settings/OffloadMedia.js— mount effect lines 100–114: resumes polling when persisted offload or rollback status is active.- Git history: blame attributes the current loading/polling behavior to the 2023 transfer UI work, including commits
46e18ee9,23b50eba, andb070f477; it remains present in inspected version 4.2.10.
Engineering notes
A request rejection, JSON parsing rejection, or unexpected response object can reach the stale-loading path. A handled non-2xx response clears global loading before the following promise rejects, so that narrower branch does not retain the stale flag. The source confirms disabled controls rather than a blocked browser event loop. The original screenshot was unavailable, and no browser console or network response was supplied, so the customer's exact request failure is inferred from the symptom.
Test coverage status
No relevant JavaScript unit or e2e coverage for callSync(), OffloadMedia, rejected status polling, or loading-state recovery was found during inspection. tests/test-media.php covers direct PHP rollback/offload behavior but does not exercise the dashboard state path.
What to verify or explore next
- May be worth reproducing an active rollback followed by a rejected
number_of_images_and_pagesrequest and checking the Image Storage controls. - May be worth checking malformed JSON, nonce rejection, network interruption, and component remount cases separately.
- If reproducible, browser network and console output can identify which rejection branch matches the ticket.
- The dashboard JavaScript test command
npm testand relevant e2e dashboard coverage are appropriate verification surfaces if such coverage exists outside the inspected search results.
Unknowns / follow-up
The failing request response, browser console output, customer plugin version, and whether navigation outside Image Storage was also disabled are unavailable. The sanctioned ticket images contained only email signature graphics, not the reported UI screenshot.
Confidence
Confidence: 94/100
Two independently verifiable defects in the Optimole WordPress plugin match the reported stalled rollback and disabled Image Storage UI. The screenshot and site-specific logs are unavailable, so confidence is based on direct source-path evidence rather than a customer-site reproduction.
Source: HelpScout #3411333716
Generated by bug-report-triage (ID: bug-report-triage_6a7f1f81ead033.88694331)
- 主要言語
- PHP
- スター
- 73
- フォーク
- 14
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 16
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Codeinwp/optimole-wp のほかの issue
-
bug-report bug-report-triage crash-report
難易度 4/5 3〜5日 初心者へのやさしさ 65/100
Codeinwp/optimole-wp#1162 ·
メンテナーはふだん 1 日以内に返信
-
customer report feature-request-triage
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
Codeinwp/optimole-wp#1161 ·
メンテナーはふだん 1 日以内に返信
-
bug-report bug-report-triage customer report regression
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
Codeinwp/optimole-wp#1159 ·
メンテナーはふだん 1 日以内に返信
-
customer report feature-request-triage
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
Codeinwp/optimole-wp#1151 ·
メンテナーはふだん 1 日以内に返信
-
bug-report bug-report-triage crash-report
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
Codeinwp/optimole-wp#1139 ·
メンテナーはふだん 1 日以内に返信
Codeinwp/optimole-wp の issue をすべて見る
似ている issue
-
domain/crm-after-sales Platform(Default) priority/high
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 2 日以内に返信
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
Перевод устарел
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
component/code document/settings documents duplicate integration/wc/pages/cart integration/woocommerce mod* mod/b* mod/c* mod/d* mod/e* mod/i* product/pro status/needs-feedback
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
elementor/elementor#37475 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信