Skip to content

Commit

Permalink
Merge pull request #3135 from spadgett/overview-image
Browse files Browse the repository at this point in the history
Bug 1722815: Handle other image name formats in overview
  • Loading branch information
openshift-merge-robot authored Jul 9, 2019
2 parents c8657b9 + 57e1bde commit 6a131a0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
5 changes: 4 additions & 1 deletion app/scripts/filters/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ angular.module('openshiftConsole')

var slashSplit = imageWithoutID.split("/");
var semiColonSplit;
if (slashSplit.length === 3) {
if (slashSplit.length > 3) {
return imageWithoutID;
}
else if (slashSplit.length === 3) {
semiColonSplit = slashSplit[2].split(":");
return slashSplit[1] + '/' + semiColonSplit[0];
}
Expand Down
2 changes: 1 addition & 1 deletion dist/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -15628,7 +15628,7 @@ return e ? e.contains(":") ? e.split(":")[1] : e : "";
return function(e) {
if (!e) return "";
var t, n = e.split("@")[0], r = n.split("/");
return 3 === r.length ? (t = r[2].split(":"), r[1] + "/" + t[0]) : 2 === r.length ? n : 1 === r.length ? (t = n.split(":"))[0] : void 0;
return r.length > 3 ? n : 3 === r.length ? (t = r[2].split(":"), r[1] + "/" + t[0]) : 2 === r.length ? n : 1 === r.length ? (t = n.split(":"))[0] : void 0;
};
}).filter("stripTag", function() {
return function(e) {
Expand Down
30 changes: 26 additions & 4 deletions dist/scripts/vendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -76042,10 +76042,9 @@ return isNaN(Number(e)) ? e : Number(e);
}
function i(e) {
if ("string" != typeof e) throw new TypeError("Invalid argument expected string");
if (!r.test(e)) throw new Error("Invalid argument not valid semver ('" + e + "' received)");
if (!a.test(e)) throw new Error("Invalid argument not valid semver ('" + e + "' received)");
}
var r = /^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
return function(e, r) {
function r(e, r) {
[ e, r ].forEach(i);
for (var o = t(e), a = t(r), s = 0; s < Math.max(o.length - 1, a.length - 1); s++) {
var l = parseInt(o[s] || 0, 10), c = parseInt(a[s] || 0, 10);
Expand All @@ -76063,7 +76062,30 @@ if (f[s] > h[s]) return -1;
}
} else if (u || d) return u ? -1 : 1;
return 0;
};
}
function o(e) {
if ("string" != typeof e) throw new TypeError("Invalid operator type, expected string but got " + typeof e);
if (-1 === s.indexOf(e)) throw new TypeError("Invalid operator, expected one of " + s.join("|"));
}
var a = /^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, s = [ ">", ">=", "=", "<", "<=" ];
return r.compare = function(e, t, n) {
switch (o(n), n) {
case ">":
return r(e, t) > 0;

case ">=":
return r(e, t) >= 0;

case "<":
return r(e, t) < 0;

case "<=":
return r(e, t) <= 0;

default:
return 0 === r(e, t);
}
}, r;
}), function() {
"use strict";
if (Logger.setLevel(Logger.INFO), window.LogBuffer = 100, "localStorage" in window) {
Expand Down

0 comments on commit 6a131a0

Please sign in to comment.