mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
Improve plugin center error feedback and cache invalidation (#2147)
The plugin center cache was not invalidated when the proxy configuration was changed in the global settings. This caused stale and inconsistent state to be displayed to the user while there was no feedback that something was wrong.
This commit is contained in:
committed by
GitHub
parent
ec83de3600
commit
7b933c6821
@@ -27,6 +27,7 @@ package sonia.scm.plugin;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
|
||||
@AllArgsConstructor
|
||||
@@ -34,4 +35,18 @@ import java.util.Set;
|
||||
class PluginCenterResult {
|
||||
private Set<AvailablePlugin> plugins;
|
||||
private Set<PluginSet> pluginSets;
|
||||
private PluginCenterStatus status;
|
||||
|
||||
public PluginCenterResult() {
|
||||
this(Collections.emptySet(), Collections.emptySet(), PluginCenterStatus.OK);
|
||||
}
|
||||
|
||||
public PluginCenterResult(PluginCenterStatus status) {
|
||||
this(Collections.emptySet(), Collections.emptySet(), status);
|
||||
}
|
||||
|
||||
public PluginCenterResult(Set<AvailablePlugin> plugins, Set<PluginSet> pluginSets) {
|
||||
this(plugins, pluginSets, PluginCenterStatus.OK);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user