Skip to content

Commit

Permalink
Update frontend display
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharykeeping committed Nov 29, 2023
1 parent eb58fb6 commit cc3ee6b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
destinationsKeys = Object.keys(destinations);
ignoredChecks = builds.reduce((acc, val) => {
acc[val.dst] = isInIgnored(val.dst, $ignoredUrls$);
acc[val.dst] = isInIgnored(val, $ignoredUrls$);
return acc;
}, {});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
reasonsKeys = Object.keys(reasons);
ignoredChecks = builds.reduce((acc, val) => {
acc[val.dst] = isInIgnored(val.dst, $ignoredUrls$);
acc[val.dst] = isInIgnored(val, $ignoredUrls$);
return acc;
}, {});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
sources = groupBy(props(["src"]))(builds);
sourcesKeys = Object.keys(sources);
ignoredChecks = builds.reduce((acc, val) => {
acc[val.dst] = isInIgnored(val.dst, $ignoredUrls$);
acc[val.dst] = isInIgnored(val, $ignoredUrls$);
return acc;
}, {});
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const getMatchingIgnoredRules = (url, list) => {
const date = new Date();
return list.filter((item) => {
const pattern = item.urlToIgnore;
if (globMatchUrl(pattern, url)) {
if (globMatchUrl(pattern, url.src) || globMatchUrl(pattern, url.dst)) {
const effectiveFrom = new Date(item.effectiveFrom);
const timeElapsed = (date - effectiveFrom) / 86400000;
return (item.ignoreDuration > 0 && timeElapsed < item.ignoreDuration) || item.ignoreDuration === -1;
Expand Down

0 comments on commit cc3ee6b

Please sign in to comment.