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

Added the network prefix to val dashboard events in the db #978

Merged

Conversation

Eisei24
Copy link
Contributor

@Eisei24 Eisei24 commented Oct 17, 2024

No description provided.

Comment on lines +1850 to +1858
eventNameSplit := strings.Split(string(event.Name), ":")
if len(eventNameSplit) != 2 && dashboardType == ValidatorDashboardEventPrefix {
return nil, nil, fmt.Errorf("invalid event name formatting for val dashboard notification: expected {network:event_name}, got %v", event.Name)
}

eventName := event.Name
if len(eventNameSplit) == 2 {
eventName = types.EventName(eventNameSplit[1])
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I implemented this under the assumption that the val dashboard events have the format {network:event_name} and acc dashboard events will have {event_name}.

Copy link
Contributor

@peterbitfly peterbitfly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@peterbitfly peterbitfly merged commit 2c2267c into staging Oct 18, 2024
2 checks passed
@Eisei24 Eisei24 deleted the BEDS-648/Val_dashboard_add_network_to_event_name branch October 18, 2024 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants