diff --git a/core/src/main/java/hudson/PluginManager.java b/core/src/main/java/hudson/PluginManager.java index e9dd72d4ee..c9df3e6117 100644 --- a/core/src/main/java/hudson/PluginManager.java +++ b/core/src/main/java/hudson/PluginManager.java @@ -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()); diff --git a/core/src/main/java/hudson/model/UpdateCenter.java b/core/src/main/java/hudson/model/UpdateCenter.java index 1307381b48..d666e3690f 100644 --- a/core/src/main/java/hudson/model/UpdateCenter.java +++ b/core/src/main/java/hudson/model/UpdateCenter.java @@ -1071,28 +1071,6 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas return getUpdates().stream().anyMatch(plugin -> !plugin.isCompatible(cache)); } - @Restricted(NoExternalUse.class) - public List getPluginsWithUnavailableUpdates() { - Map pluginMap = new LinkedHashMap<>(); - for (PluginWrapper wrapper : Jenkins.get().getPluginManager().getPlugins()) { - for (UpdateSite site : sites) { - UpdateSite.Plugin plugin = site.getPlugin(wrapper.getShortName()); - if (plugin == null) { - // Plugin not distributed by this update site - continue; - } - final Plugin existing = pluginMap.get(plugin.name); - if (existing == null) { // TODO better support for overlapping update sites - if (plugin.latest != null && !plugin.latest.equalsIgnoreCase(plugin.version) && !plugin.latest.equalsIgnoreCase(wrapper.getVersion())) { - pluginMap.put(plugin.name, plugin); - } - } - } - } - final ArrayList unavailable = new ArrayList<>(pluginMap.values()); - return unavailable; - } - /** * Ensure that all UpdateSites are up to date, without requiring a user to * browse to the instance. diff --git a/core/src/main/java/hudson/model/UpdateSite.java b/core/src/main/java/hudson/model/UpdateSite.java index f84e8cfbf9..1b5b734c7b 100644 --- a/core/src/main/java/hudson/model/UpdateSite.java +++ b/core/src/main/java/hudson/model/UpdateSite.java @@ -1211,13 +1211,6 @@ public class UpdateSite { @Restricted(NoExternalUse.class) public final Double popularity; - /** - * The latest existing version of this plugin. May be different from the version being offered by the - * update site, which will result in a notice on the UI. - */ - @Restricted(NoExternalUse.class) - public String latest; - /** * Issue trackers associated with this plugin. * This list is sorted by preference in descending order, meaning a UI @@ -1234,7 +1227,6 @@ public class UpdateSite { this.title = get(o, "title"); this.excerpt = get(o, "excerpt"); this.compatibleSinceVersion = Util.intern(get(o, "compatibleSinceVersion")); - this.latest = get(o, "latest"); this.requiredCore = Util.intern(get(o, "requiredCore")); final String releaseTimestamp = get(o, "releaseTimestamp"); Date date = null; diff --git a/core/src/main/resources/hudson/Messages.properties b/core/src/main/resources/hudson/Messages.properties index afd093dfa0..e490be6421 100644 --- a/core/src/main/resources/hudson/Messages.properties +++ b/core/src/main/resources/hudson/Messages.properties @@ -90,12 +90,6 @@ PluginManager.ago={0} ago PluginManager.adoptThisPlugin=\ This plugin is up for adoption! We are looking for new maintainers. \ Visit our Adopt a Plugin initiative for more information. -PluginManager.newerVersionExists=\ - A newer version than being offered for installation exists (version {0}), so the latest bug fixes or features are not available to you. \ - This is typically the case when plugin requirements, e.g. a recent version of Jenkins, are not satisfied. \ - If you are using the latest version of Jenkins offered to you, this plugin release may not be available to your release line yet. \ - See the plugin documentation for information about its requirements. -PluginManager.unavailable=Unavailable PluginManager.deprecationWarning=This plugin is deprecated. In general, this means that it is either obsolete, no longer being developed, or may no longer work. Learn more. PluginManager.insecureUrl=\ You are using an insecure URL to download the plugin, use at your own risk! diff --git a/core/src/main/resources/hudson/Messages_es.properties b/core/src/main/resources/hudson/Messages_es.properties index 96328b18eb..bde8e698f3 100644 --- a/core/src/main/resources/hudson/Messages_es.properties +++ b/core/src/main/resources/hudson/Messages_es.properties @@ -91,7 +91,6 @@ PluginManager.ago=Hace {0} PluginManager.adoptThisPlugin=\ ¡Este plugin está en adopción! Buscamos nuevos mantenedores. \ Visita nuestro sitio de la iniciativa Adopte un plugin para obtener más información. -PluginManager.unavailable=No disponible PluginManager.deprecationWarning=Este plugin está obsoleto. En general, esto significa que ya no se desarrolla o que puede dejar de funcionar. Más información AboutJenkins.DisplayName=Acerca de Jenkins diff --git a/core/src/main/resources/hudson/Messages_pt_BR.properties b/core/src/main/resources/hudson/Messages_pt_BR.properties index e1b6550207..db13ffa952 100644 --- a/core/src/main/resources/hudson/Messages_pt_BR.properties +++ b/core/src/main/resources/hudson/Messages_pt_BR.properties @@ -99,11 +99,6 @@ PluginManager.depCoreWarning= \ portanto o carregamento desta extensão irá falhar. PluginManager.securityWarning= \ Aviso: esta versão de extensão pode não ser segura para usar. Por favor revise as seguintes notas de segurança: -PluginManager.unavailable=Indisponível -PluginManager.newerVersionExists= \ - Uma versão mais recente que a oferecida para instalação está disponível (versão {0}). \ - Isto é um caso típico de quando os requisitos de uma extensão, como uma versão mais recente do Jenkins, não estão \ - satisfeitos. PluginManager.adoptThisPlugin= \ Esta extensão está disponível para adoção!Nós estamos procurando por novos mantenedores. \ Visite nossa iniciativa \ diff --git a/core/src/main/resources/hudson/Messages_zh_TW.properties b/core/src/main/resources/hudson/Messages_zh_TW.properties index 12d7317ff5..6ad2c40c7b 100644 --- a/core/src/main/resources/hudson/Messages_zh_TW.properties +++ b/core/src/main/resources/hudson/Messages_zh_TW.properties @@ -69,9 +69,6 @@ PluginManager.depCoreWarning=警告\: 這個外掛的相依性外掛需要 Jenki PluginManager.securityWarning=警告\: 這個版本的外掛用起來可能不安全。請查看下列安全性須知\: PluginManager.ago={0}前 PluginManager.adoptThisPlugin=此外掛開放認養!我們正在尋找新的維護者,請造訪 Adopt a Plugin 取得更多資訊。 -PluginManager.newerVersionExists=已提供更新版本 (版本 {0})。這通常是外掛的要求,例如\: 不相容於最近的 Jenkins 版本。 -PluginManager.newerVersionEntry=已有此版本的外掛但不作為更新提供。這通常是外掛的要求,例如\: 不相容於最近的 Jenkins 版本。詳情請查看外掛文件以了解此要求。 -PluginManager.unavailable=無法使用 PluginManager.deprecationWarning=此外掛已棄用。這通常表示它可能已過時、不再繼續開發、不再正常運作等。了解更多。 PluginManager.insecureUrl=您正在使用不安全的 URL 下載該外掛,風險請自負! PluginManager.invalidUrl=您正在使用無效的 URL 下載該外掛,只支援 https、http (不建議) 和 file。 diff --git a/core/src/main/resources/hudson/PluginManager/table.jelly b/core/src/main/resources/hudson/PluginManager/table.jelly index d71647dbd3..6bd6eca05d 100644 --- a/core/src/main/resources/hudson/PluginManager/table.jelly +++ b/core/src/main/resources/hudson/PluginManager/table.jelly @@ -84,9 +84,8 @@ THE SOFTWARE. - - + - -
- ${%newerVersionExists(p.latest, p.wiki)} -
-
@@ -243,68 +237,6 @@ THE SOFTWARE. - - - - - - - - - - - - - - -
- -
-
- -
- ${%newerVersionEntry(p.wiki)} -
-
- - - - - - - - - - () - - - - - -
-
-
diff --git a/core/src/main/resources/hudson/PluginManager/table.properties b/core/src/main/resources/hudson/PluginManager/table.properties index 5f1a0e4d0c..089679ac75 100644 --- a/core/src/main/resources/hudson/PluginManager/table.properties +++ b/core/src/main/resources/hudson/PluginManager/table.properties @@ -44,17 +44,6 @@ ago={0} ago adoptThisPlugin=\ This plugin is up for adoption! We are looking for new maintainers. \ Visit our Adopt a Plugin initiative for more information. -newerVersionExists=\ - A newer version than being offered for installation exists (version {0}), so the latest bug fixes or features are not available to you. \ - This is typically the case when plugin requirements, e.g. a recent version of Jenkins, are not satisfied. \ - If you are using the latest version of Jenkins offered to you, this plugin release may not be available to your release line yet. \ - See the plugin documentation for information about its requirements. -newerVersionEntry=\ - This version of the plugin exists but it is not being offered for installation, so the latest bug fixes or features are not available to you. \ - This is typically the case when plugin requirements, e.g. a recent version of Jenkins, are not satisfied. \ - If you are using the latest version of Jenkins offered to you, newer plugin releases may not be available to your release line yet. \ - See the plugin documentation for information about its requirements. -unavailable=Unavailable deprecationWarning=This plugin is deprecated. In general, this means that it is either obsolete, no longer being developed, or may no longer work. Learn more. loading=Loading diff --git a/core/src/main/resources/hudson/PluginManager/table_it.properties b/core/src/main/resources/hudson/PluginManager/table_it.properties index 4845fcfdef..dd0596e1bb 100644 --- a/core/src/main/resources/hudson/PluginManager/table_it.properties +++ b/core/src/main/resources/hudson/PluginManager/table_it.properties @@ -78,6 +78,5 @@ Released=Rilasciato il search=Cerca securityWarning=Avviso: potrebbe non essere sicuro utilizzare questa versione \ del componente aggiuntivo. Rivedere i seguenti bollettini di sicurezza: -unavailable=Non disponibile Update\ Center=Centro aggiornamenti Version=Versione diff --git a/core/src/main/resources/hudson/PluginManager/table_pl.properties b/core/src/main/resources/hudson/PluginManager/table_pl.properties index 18edd25c5a..351ca64958 100644 --- a/core/src/main/resources/hudson/PluginManager/table_pl.properties +++ b/core/src/main/resources/hudson/PluginManager/table_pl.properties @@ -40,5 +40,4 @@ ago={0} temu adoptThisPlugin=\ Ta wtyczka czeka na adopcje! Szukamy osób chętnych rozwijać tę wtyczkę. \ Przeczytaj naszą inicjatywę Adopt a Plugin, aby uzyskać więcej informacji. -unavailable=Niedostępna Applying\ this\ update\ will\ address\ security\ vulnerabilities\ in\ the\ currently\ installed\ version.=Zainstalowanie tej aktualizacji usunie podatności występujące w aktualnie zainstalowanej wersji. diff --git a/core/src/main/resources/hudson/PluginManager/table_pt_BR.properties b/core/src/main/resources/hudson/PluginManager/table_pt_BR.properties index 6a695f5d6d..90c1470164 100644 --- a/core/src/main/resources/hudson/PluginManager/table_pt_BR.properties +++ b/core/src/main/resources/hudson/PluginManager/table_pt_BR.properties @@ -42,20 +42,6 @@ depCompatWarning= \ compatíveis com a versão instalada atualmente. Tarefas usando essas extensões podem precisar ser reconfiguradas. Updates=Central de Atualizações loading=carregando -newerVersionExists= \ - Existe uma versão mais nova (versão {0}) que a oferecida para instalação portanto as últimas correções e \ - funcionalidades não estarão disponíveis para você. Isto é tipicamente o caso quando requisitos para uma extensão, \ - como por exemplo uma versão mais recente do Jenkins, não estão satisfeitos. Se você estiver usando a última versão \ - do Jenkins oferecida esta versão de extensão talvez não esteja disponível para ainda para você. Veja a \ - documentação da extensão para mais informalões sobre seus\ - requisitos. -newerVersionEntry= \ - Esta versão da extensão existe mas não está sendo oferecida para instalação, portanto, as últimas correções ou \ - funcionalidades não estão disponíveis para você. Isto é tipicamente o caso quando requisitos para uma extensão, como\ - por exemplo, uma versão mais recente do Jenkins, não estão satisfeitos. Se você estiver usando a última versão do \ - Jenkins oferecida, esta versão de extensão talvez ainda não esteja disponível para você. Veja a \ - documentação da extensão para mais informalões sobre \ - seus requisitos. parentDepCompatWarning=As seguintes extensões são incompatíveis: securityWarning= \ Aviso: esta versão de extensão pode não ser segura para uso. Por favor, revise as seguintes notas de segurança: @@ -63,7 +49,6 @@ deprecationWarning=Esta extensão está descontinuada.Em geral, desenvolvimento ativo ou pode não mais funcionar. Vide \ maiores detalhes. Released=Liberada -unavailable=Indisponível Search\ plugin\ updates=Busca ago={0} atrás Applying\ this\ update\ will\ address\ security\ vulnerabilities\ in\ the\ currently\ installed\ version.=Aplicar\ diff --git a/core/src/main/resources/hudson/PluginManager/table_zh_TW.properties b/core/src/main/resources/hudson/PluginManager/table_zh_TW.properties index fc83558328..8b5237f894 100644 --- a/core/src/main/resources/hudson/PluginManager/table_zh_TW.properties +++ b/core/src/main/resources/hudson/PluginManager/table_zh_TW.properties @@ -29,9 +29,6 @@ depCoreWarning=警告\: 這個外掛的相依性外掛需要 Jenkins {0} 或更 securityWarning=警告\: 這個版本的外掛用起來可能不安全。請查看下列安全性須知\: ago={0}前 adoptThisPlugin=此外掛開放認養!我們正在尋找新的維護者,請造訪 Adopt a Plugin 取得更多資訊。 -newerVersionExists=已提供比安裝還有更新的版本 (版本 {0}) 因此無法提供您最新的錯誤修復和新功能。這通常是外掛的要求,例如\: 不相容於最近的 Jenkins 版本。\n如果您已經在使用最新版的 Jenkins,新版的外掛可能還沒向您的 Release Line 推出。詳情請查看外掛文件以了解此要求。 -newerVersionEntry=此版本的外掛存在但不提供安裝,因此無法提供您最新的錯誤修復和新功能。這通常是外掛的要求,例如\: 不相容於最近的 Jenkins 版本。\n如果您已經在使用最新版的 Jenkins,新版的外掛可能還沒向您的 Release Line 推出。詳情請查看外掛文件以了解此要求。 -unavailable=無法使用 deprecationWarning=此外掛已棄用。這通常表示它可能已過時、不再繼續開發、不再正常運作等。了解更多。 Update\ Center=更新中心 Filter=篩選 diff --git a/test/src/test/java/hudson/PluginManagerTest.java b/test/src/test/java/hudson/PluginManagerTest.java index a01c2680d8..8ebcc2c195 100644 --- a/test/src/test/java/hudson/PluginManagerTest.java +++ b/test/src/test/java/hudson/PluginManagerTest.java @@ -602,9 +602,6 @@ public class PluginManagerTest { // ensure data is loaded - probably unnecessary, but closer to reality Assert.assertSame(FormValidation.Kind.OK, uc.getSite("default").updateDirectlyNow().kind); - - // This would throw NPE - uc.getPluginsWithUnavailableUpdates(); } @Test @Issue("JENKINS-64840") diff --git a/war/src/main/js/templates/plugin-manager/available.hbs b/war/src/main/js/templates/plugin-manager/available.hbs index 5b930f0dfa..2810b7a13d 100644 --- a/war/src/main/js/templates/plugin-manager/available.hbs +++ b/war/src/main/js/templates/plugin-manager/available.hbs @@ -59,11 +59,6 @@ {{{ this.adoptMe }}} {{/if}} - {{#if this.newerVersionAvailableNotOffered }} -
- {{{ this.newerVersionAvailableNotOffered }}} -
- {{/if}} {{#if this.releaseTimestamp }} diff --git a/war/src/main/less/abstracts/theme.less b/war/src/main/less/abstracts/theme.less index dae3d11baf..60545a1405 100644 --- a/war/src/main/less/abstracts/theme.less +++ b/war/src/main/less/abstracts/theme.less @@ -289,8 +289,6 @@ --plugin-manager-category-link-border-color--hover: var(--black); --plugin-manager-category-text-color: var(--text-color); --plugin-manager-category-link-color--hover: var(--text-color); - --plugin-manager-unavailable-bg-color: #f4f4f4; - --plugin-manager-unavailable-label-color: var(--text-color); // Auto complete --auto-complete-bg-color--prehighlight: #b3d4ff; diff --git a/war/src/main/less/pages/plugin-manager.less b/war/src/main/less/pages/plugin-manager.less index 6a80235b12..80167dfddc 100644 --- a/war/src/main/less/pages/plugin-manager.less +++ b/war/src/main/less/pages/plugin-manager.less @@ -12,25 +12,6 @@ background-color: var(--plugin-manager-bg-color-already-upgraded); } - tr.unavailable { - background-color: var(--plugin-manager-unavailable-bg-color); - } - - tr.unavailable span.unavailable-label { - display: inline-block; - border: 1px solid #666; - color: var(--plugin-manager-unavailable-label-color); - border-radius: 4px; - font-size: 0.75rem; - font-weight: 500; - padding: 0 0.5rem; - margin: 0.25rem 0.5rem; - text-decoration: none; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - } - tr.all-dependents-disabled .enable input, tr.all-dependents-disabled .enable button, tr.all-dependents-disabled .enable .jenkins-toggle-switch label {