9 [3/4]. Report a host basename no installed plugin answers to - #65
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 12 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe detector now validates configured host plugin basenames against installed plugins, reports invalid values through ChangesHost Plugin Validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change adds reporting for an unresolved host plugin basename without changing the existing detection answer; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 15 functions across 3 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
b4f04cf to
e53b1e5
Compare
abe252d to
4727abf
Compare
e53b1e5 to
06b0335
Compare
4727abf to
ca1b3ba
Compare
06b0335 to
c1f4cf1
Compare
aa7fd99 to
39a2196
Compare
c1f4cf1 to
c3d1f6d
Compare
What:
Conflict\Detector::deactivation_would_strand_sites()reports through_doing_it_wrong()and theerroraction whenConfig::set_host_plugin_basename()names no installed plugin.Usage:
Why this way:
The check belongs at the point of use, not in the setter.
set_host_plugin_basename()is static and a host calls it at plugin-file scope, whereget_plugins()does not exist. The detector asks on the request where the value is about to decide whether a standalone is deactivated.The answer is not changed, only reported. A typo, an mu-plugin host or a symlinked directory all answer "not network-active" for ever, which is indistinguishable from the guard working — but a name we cannot resolve is not consent to pull a plugin from every site on a network. An unset basename stands the guard down exactly as before.
Once per request, on the instance. The detector is a singleton, so one report and one
get_plugins()per request. A static flag would go quiet for the rest of the worker's life and would need a reset seam insrc/.Summary by CodeRabbit
Bug Fixes
Documentation