Don
13 Gennaio 2024, 10:05pm
3
Hello
I think this happens here:
The Plugin Api version changed here to 1.24.0
replaceIcon,
} from "discourse-common/lib/icon-library";
import { CUSTOM_USER_SEARCH_OPTIONS } from "select-kit/components/user-chooser";
import { modifySelectKit } from "select-kit/mixins/plugin-api";
// If you add any methods to the API ensure you bump up the version number
// based on Semantic Versioning 2.0.0. Please update the changelog at
// docs/CHANGELOG-JAVASCRIPT-PLUGIN-API.md whenever you change the version
// using the format described at https://keepachangelog.com/en/1.0.0/.
export const PLUGIN_API_VERSION = "1.24.0";
// This helper prevents us from applying the same `modifyClass` over and over in test mode.
function canModify(klass, type, resolverName, changes) {
if (!changes.pluginId) {
// eslint-disable-next-line no-console
console.warn(
consolePrefix(),
"To prevent errors in tests, add a `pluginId` key to your `modifyClass` call. This will ensure the modification is only applied once."
);
return true;
And the recent update in Docker Manager is use this plugin api version.
import { withPluginApi } from "discourse/lib/plugin-api";
export default {
name: "docker-manager-admin-sidebar",
before: "admin-sidebar-initializer",
initialize() {
withPluginApi("1.24.0", (api) => {
api.addAdminSidebarSectionLink("root", {
name: "admin_upgrade",
route: "upgrade.index",
label: "admin.docker.upgrade_tab",
icon: "rocket",
});
});
},
};
So you have to update Discourse too because Docker Manager use plugin api version which higher than Discourse used plugin api version before update and Docker Manager will break.
The problem with this in admin you can only update first Docker Manager so rebuild required in this case.
6 Mi Piace