Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-9.4.x' into candidate-…
Browse files Browse the repository at this point in the history
…9.6.x

Signed-off-by: Jake Smith <[email protected]>

# Conflicts:
#	helm/hpcc/Chart.yaml
#	helm/hpcc/templates/_helpers.tpl
#	version.cmake
  • Loading branch information
jakesmith committed Feb 13, 2025
2 parents 3b59ebe + c96a2c5 commit ae09e7a
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions esp/src/src-react/components/Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,18 +233,30 @@ export const DevTitle: React.FunctionComponent<DevTitleProps> = ({

React.useEffect(() => {
if (!features.timestamp) return;
let ancient = 90;
let veryOld = 60;
let old = 30;
if (features.maturity === "trunk") {
ancient = 360;
veryOld = 180;
old = 90;
} else if (features.maturity === "rc") {
ancient = 28;
veryOld = 21;
old = 14;
}
const age = Math.floor((Date.now() - features.timestamp.getTime()) / DAY);
const message = nlsHPCC.PlatformBuildIsNNNDaysOld.replace("NNN", `${age}`);
if (age > 90) {
if (age > ancient) {
logger.alert(message + ` ${nlsHPCC.PleaseUpgradeToLaterPointRelease}`);
} else if (age > 60) {
} else if (age > veryOld) {
logger.error(message + ` ${nlsHPCC.PleaseUpgradeToLaterPointRelease}`);
} else if (age > 30) {
} else if (age > old) {
logger.warning(message + ` ${nlsHPCC.PleaseUpgradeToLaterPointRelease}`);
} else {
logger.info(message);
}
}, [features.timestamp]);
}, [features.maturity, features.timestamp]);

React.useEffect(() => {
if (!currentUser.username) return;
Expand Down

0 comments on commit ae09e7a

Please sign in to comment.