mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
[JENKINS-62332] Remove plugin update GUI “A newer version than being offered for installation exists…” (#7362)
Co-authored-by: Alexander Brandes <mc.cache@web.de>
This commit is contained in:
1 parent
5e50ee0ed5
commit
bedd4fe1ca
17 files changed
+1
-185
No files matched your search
@@ -1506,9 +1506,6 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
releaseTimestamp.put("displayValue", Messages.PluginManager_ago(Functions.getTimeSpanString(plugin.releaseTimestamp)));
|
||||
jsonObject.put("releaseTimestamp", releaseTimestamp);
|
||||
}
|
||||
if (hasLatestVersionNewerThanOffered(plugin)) {
|
||||
jsonObject.put("newerVersionAvailableNotOffered", Messages.PluginManager_newerVersionExists(plugin.latest, plugin.wiki));
|
||||
}
|
||||
return jsonObject;
|
||||
})
|
||||
.collect(toList());
|
||||
@@ -2592,14 +2589,6 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
return plugin.hasCategory("adopt-this-plugin");
|
||||
}
|
||||
|
||||
@Restricted(DoNotUse.class) // Used from table.jelly
|
||||
public boolean hasLatestVersionNewerThanOffered(UpdateSite.Plugin plugin) {
|
||||
if (plugin.latest == null) {
|
||||
return false;
|
||||
}
|
||||
return !plugin.latest.equalsIgnoreCase(plugin.version); // we can assume that any defined 'latest' will be newer than the actual offered version
|
||||
}
|
||||
|
||||
@Restricted(DoNotUse.class) // Used from table.jelly
|
||||
public boolean hasAdoptThisPluginLabel(PluginWrapper plugin) {
|
||||
final UpdateSite.Plugin pluginMeta = Jenkins.get().getUpdateCenter().getPlugin(plugin.getShortName());
|
||||
|
||||
Reference in new issue
Block a user