Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[type:bugfix] fix customized menu invalid bug #1898 #1908

Merged
merged 3 commits into from
May 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,13 @@ public void applyMonitorDefineYml(String ymlContent, boolean isModify) {
// app params verify
verifyDefineAppContent(app, isModify);
appDefineStore.save(app.getApp(), ymlContent);
// get and reset hide value
Job originalJob = appDefines.get(app.getApp().toLowerCase());
if (Objects.nonNull(originalJob)) {
boolean hide = originalJob.isHide();
app.setHide(hide);
}

appDefines.put(app.getApp().toLowerCase(), app);
// resolve: after the template is modified, all monitoring instances of the same type of template need to be reissued in the task status
SpringContextHolder.getBean(MonitorService.class).updateAppCollectJob(app);
Expand Down
Loading