Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map changes to activity log settings entries in the UI #2862

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions assets/js/lib/model/activityLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const USER_DELETION = 'user_deletion';
export const PROFILE_UPDATE = 'profile_update';
export const CLUSTER_CHECKS_EXECUTION_REQUEST =
'cluster_checks_execution_request';
export const ACTIVITY_LOG_SETTINGS_UPDATE = 'activity_log_settings_update';

// Host events
export const HEARTBEAT_FAILED = 'heartbeat_failed';
Expand Down Expand Up @@ -110,6 +111,7 @@ export const ACTIVITY_TYPES = [
USER_DELETION,
PROFILE_UPDATE,
CLUSTER_CHECKS_EXECUTION_REQUEST,
ACTIVITY_LOG_SETTINGS_UPDATE,
// Host events
HEARTBEAT_FAILED,
HEARTBEAT_SUCCEEDED,
Expand Down Expand Up @@ -257,6 +259,11 @@ export const ACTIVITY_TYPES_CONFIG = {
message: (_entry) => `Checks execution requested for cluster`,
resource: clusterResourceType,
},
[ACTIVITY_LOG_SETTINGS_UPDATE]: {
label: 'Activity Log Settings Updated',
message: (_entry) => `Activity log settings were updated`,
resource: (_entry) => 'Activity Log Settings',
},
// Host events
[HEARTBEAT_FAILED]: {
label: 'Heartbeat Failed',
Expand Down
Loading