-
Notifications
You must be signed in to change notification settings - Fork 6
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
Improved event update #396
Conversation
@LaChope can you explain this? They should have probability |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comments.
* @returns {Array<FaultEvent>} A new array of event objects with updated eventType values where applicable. | ||
* | ||
*/ | ||
export const updateEventsType = (events: FaultEvent[], substring: string, newValue: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, it is no possible to declare output type here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what you mean by that? something like: const updateEventsType: FaultEvent[] = (events: FaultEvent[], ...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure but i would think something like:
(events: FaultEvent[], substring: string, newValue: string)
--->
(events: FaultEvent[], substring: string, newValue: string): FaultEvent[]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…nts do not have probability field
@LaChope |
@blcham After merge, the UI does not really look great anymore (see screenshot below), should I still merge and create new ticket for it or should I continue here? |
ba03aa1
to
6fc3c77
Compare
Do not resolve any specific issue, it it a global improvement including: