mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-25 11:25:56 +00:00
Bot deploy shows the module's refusal; modules update only when the owner asks
- Deploy: a refusal text of the bot module (switched off, rejected, 0 created) is an error, not a started job; the outdated-module message points to the Modules page. - Modules: a module whose build differs from the commit the core recommends shows an Update button. Nothing updates by itself, not even on a core change. Needs the world stopped, merges the module's settings. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5db6691b8b
commit
e8bf35f95d
16 files changed
+233
-8
No files matched your search
@@ -168,6 +168,9 @@ pub struct ModuleView {
|
||||
pub component_type: ComponentType,
|
||||
pub can_remove: bool,
|
||||
pub source_commit: Option<String>,
|
||||
/// A newer build of this module is recommended by the server's core; updating is the owner's choice.
|
||||
#[serde(default)]
|
||||
pub available_commit: Option<String>,
|
||||
pub part_of: Option<String>,
|
||||
}
|
||||
|
||||
@@ -493,6 +496,7 @@ fn list_in(cat: &[Entry], root: &Path) -> Vec<ModuleView> {
|
||||
component_type,
|
||||
can_remove,
|
||||
source_commit,
|
||||
available_commit: None,
|
||||
part_of: e.part_of,
|
||||
}
|
||||
})
|
||||
@@ -523,6 +527,10 @@ fn list_in(cat: &[Entry], root: &Path) -> Vec<ModuleView> {
|
||||
views[idx].version = Some(plugin_entry.version.clone());
|
||||
views[idx].component_type = ComponentType::DynamicDll;
|
||||
views[idx].can_remove = true;
|
||||
if views[idx].source_commit.is_none() {
|
||||
views[idx].source_commit = crate::build_engine::read_build_recipe(root, plugin_id).and_then(|r| r.source_commit);
|
||||
}
|
||||
views[idx].available_commit = crate::rebuild::available_update(root, plugin_id);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -592,6 +600,7 @@ fn list_in(cat: &[Entry], root: &Path) -> Vec<ModuleView> {
|
||||
component_type: ComponentType::DynamicDll,
|
||||
can_remove: true,
|
||||
source_commit,
|
||||
available_commit: None,
|
||||
part_of: None,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user