Skip to content

Commit

Permalink
[Backport 2.x] Added HOURS option for source refresh interval. (#1191)
Browse files Browse the repository at this point in the history
* Added HOURS option for source refresh interval. (#1190)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 1c31032)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix cache cypress hashfile path.

Signed-off-by: AWSHurneyt <[email protected]>

* Reverted change to hash path.

Signed-off-by: AWSHurneyt <[email protected]>

---------

Signed-off-by: AWSHurneyt <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: AWSHurneyt <[email protected]>
  • Loading branch information
3 people authored Oct 25, 2024
1 parent 1deba81 commit eb2279c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ export const ThreatIntelSourceDetails: React.FC<ThreatIntelSourceDetailsProps> =
}}
onScheduleChange={onIntervalChange}
readonly={isReadOnly || !enabled}
scheduleUnitOptions={[defaultIntervalUnitOptions.DAYS]}
scheduleUnitOptions={[
defaultIntervalUnitOptions.HOURS,
defaultIntervalUnitOptions.DAYS,
]}
/>
</EuiFlexItem>
{(!isReadOnly || !enabled) && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const AddThreatIntelSource: React.FC<AddThreatIntelSourceProps> = ({
interval: {
start_time: Date.now(),
period: 1,
unit: 'DAYS',
unit: defaultIntervalUnitOptions.HOURS.value,
},
});
const [sourceType, setSourceType] = useState<'S3_CUSTOM' | 'IOC_UPLOAD'>('S3_CUSTOM');
Expand Down Expand Up @@ -545,7 +545,10 @@ export const AddThreatIntelSource: React.FC<AddThreatIntelSourceProps> = ({
unit: schedule.interval.unit,
},
}}
scheduleUnitOptions={[defaultIntervalUnitOptions.DAYS]}
scheduleUnitOptions={[
defaultIntervalUnitOptions.HOURS,
defaultIntervalUnitOptions.DAYS,
]}
onScheduleChange={onIntervalChange}
/>
<EuiSpacer />
Expand Down

0 comments on commit eb2279c

Please sign in to comment.