From b83331ae824b63e129e43275dd91bb62e99ba35e Mon Sep 17 00:00:00 2001 From: Jesse Mazzella Date: Wed, 16 Oct 2024 18:45:06 -0700 Subject: [PATCH] refactor: rename `Indefinite` to `Unlimited` (#485) * refactor: rename `Indefinite` to `Unlimited` * fix: update shelve durations for parity with yamcs --- .../fault-action-provider.js | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/providers/fault-mgmt-providers/fault-action-provider.js b/src/providers/fault-mgmt-providers/fault-action-provider.js index ad986293..2934bc9b 100644 --- a/src/providers/fault-mgmt-providers/fault-action-provider.js +++ b/src/providers/fault-mgmt-providers/fault-action-provider.js @@ -44,7 +44,7 @@ export default class FaultActionProvider { /** * @typedef {Object} ShelveDuration * @property {string} name - The name of the shelve duration - * @property {number|null} value - The value of the shelve duration in milliseconds, or null for indefinite + * @property {number|null} value - The value of the shelve duration in milliseconds, or null for unlimited */ /** @@ -53,19 +53,27 @@ export default class FaultActionProvider { getShelveDurations() { return [ { - name: '5 Minutes', - value: 300000 + name: '15 Minutes', + value: 1000 * 60 * 15 }, { - name: '10 Minutes', - value: 600000 + name: '30 Minutes', + value: 1000 * 60 * 30 }, { - name: '15 Minutes', - value: 900000 + name: '1 Hour', + value: 1000 * 60 * 60 + }, + { + name: '2 Hours', + value: 1000 * 60 * 60 * 2 + }, + { + name: '1 Day', + value: 1000 * 60 * 60 * 24 }, { - name: 'Indefinite', + name: 'Unlimited', value: null } ];