mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
UI: Add 1.17 changes to upgrade alert (#26843)
* add upgrade alert for 1.17 * add acme clients to modal export text * add to mirage for tests * add test
This commit is contained in:
@@ -35,12 +35,13 @@ export const filterVersionHistory = (
|
||||
end: string
|
||||
) => {
|
||||
if (versionHistory) {
|
||||
const notableUpgrades = ['1.9', '1.10', '1.17'];
|
||||
const upgrades = versionHistory.reduce((array: ClientsVersionHistoryModel[], upgradeData) => {
|
||||
const includesVersion = (v: string) =>
|
||||
// only add first match, disregard subsequent patch releases of the same version
|
||||
upgradeData.version.match(v) && !array.some((d: ClientsVersionHistoryModel) => d.version.match(v));
|
||||
|
||||
['1.9', '1.10'].forEach((v) => {
|
||||
notableUpgrades.forEach((v) => {
|
||||
if (includesVersion(v)) array.push(upgradeData);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user