Skip to content

Commit

Permalink
fix: revert number definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Desvelao committed Dec 16, 2024
1 parent 4480e52 commit 073b7ff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ module.exports = {
/* -------------------------------------------------------------------------- */
'unicorn/prefer-module': 'off',
'unicorn/prefer-ternary': 'off',
'unicorn/numeric-separators-style': 'off',
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/custom-error-definition.md
'unicorn/custom-error-definition': 'error',
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/better-regex.md
Expand Down
12 changes: 6 additions & 6 deletions plugins/wazuh-core/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const WAZUH_SECURITY_PLUGINS = [
];

// App configuration
export const WAZUH_CONFIGURATION_CACHE_TIME = 10_000; // time in ms;
export const WAZUH_CONFIGURATION_CACHE_TIME = 10000; // time in ms;

// Reserved ids for Users/Role mapping
export const WAZUH_API_RESERVED_ID_LOWER_THAN = 100;
Expand Down Expand Up @@ -249,7 +249,7 @@ export const PLUGIN_PLATFORM_SETTING_NAME_TIME_FILTER =
'timepicker:timeDefaults';

// Default maxBuckets set by the app
export const WAZUH_PLUGIN_PLATFORM_SETTING_MAX_BUCKETS = 200_000;
export const WAZUH_PLUGIN_PLATFORM_SETTING_MAX_BUCKETS = 200000;
export const PLUGIN_PLATFORM_SETTING_NAME_MAX_BUCKETS = 'timeline:max_buckets';

// Default metaFields set by the app
Expand Down Expand Up @@ -389,7 +389,7 @@ export const NOT_TIME_FIELD_NAME_INDEX_PATTERN =
'not_time_field_name_index_pattern';

// Customization
export const CUSTOMIZATION_ENDPOINT_PAYLOAD_UPLOAD_CUSTOM_FILE_MAXIMUM_BYTES = 1_048_576;
export const CUSTOMIZATION_ENDPOINT_PAYLOAD_UPLOAD_CUSTOM_FILE_MAXIMUM_BYTES = 1048576;

// Plugin settings
export enum SettingCategory {
Expand Down Expand Up @@ -1474,12 +1474,12 @@ hosts:
title: 'Port',
description: 'Port',
type: EpluginSettingType.number,
defaultValue: 55_000,
defaultValue: 55000,
isConfigurableFromSettings: true,
options: {
number: {
min: 0,
max: 65_535,
max: 65535,
integer: true,
},
},
Expand Down Expand Up @@ -1713,7 +1713,7 @@ hosts:
'Maximum time, in milliseconds, the app will wait for an API response when making requests to it. It will be ignored if the value is set under 1500 milliseconds.',
category: SettingCategory.GENERAL,
type: EpluginSettingType.number,
defaultValue: 20_000,
defaultValue: 20000,
isConfigurableFromSettings: true,
options: {
number: {
Expand Down
2 changes: 1 addition & 1 deletion plugins/wazuh-core/public/services/http/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export const PLUGIN_PLATFORM_REQUEST_HEADERS = {
'osd-xsrf': 'kibana',
};

export const HTTP_CLIENT_DEFAULT_TIMEOUT = 20_000;
export const HTTP_CLIENT_DEFAULT_TIMEOUT = 20000;

0 comments on commit 073b7ff

Please sign in to comment.