[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:
Jesse GlickandAlexander Brandes authored and GitHub committed 2023-01-17 08:08:51 +00:00
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());