-
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
[Merged by Bors] - feat(base-types): more tweaks to runtime logging (VF-3552) #291
Conversation
@@ -34,3 +37,42 @@ export enum StepLogKind { | |||
export enum GlobalLogKind { | |||
CONVERSATION_START = 'conversation_start', | |||
} | |||
|
|||
const NODE_TYPE_TO_STEP_LOG_KIND = { |
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.
this is an incomplete list and i would greatly appreciate help in expanding it by adding new items to StepLogKind
and mapping them here. this is used to map our internal NodeType
values to a human-friendly StepLogKind
value. ex. IF
and IF_V2
correspond to the CONDITION
step
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.
Can always add to this as needed during log creation, too.
bors r+ |
**Fixes or implements VF-3552** ### Brief description. What is this change? more minor changes to runtime logging utils & types - add `LogLevel.OFF` - `export *` for utils (just remember not to export anything that should be private/internal) - narrowing types - add type guard for narrowing `string` to `LogLevel` - updating the messages for various logs - a `nodeTypeToStepLogKind()` method for converting `NodeType` to human-friendly `StepLogKind` values ### Checklist - [ ] this is a breaking change and should publish a new major version - [ ] appropriate tests have been written
a46874d
to
65e140d
Compare
Canceled. |
bors r+ |
**Fixes or implements VF-3552** ### Brief description. What is this change? more minor changes to runtime logging utils & types - add `LogLevel.OFF` - `export *` for utils (just remember not to export anything that should be private/internal) - narrowing types - add type guard for narrowing `string` to `LogLevel` - updating the messages for various logs - a `nodeTypeToStepLogKind()` method for converting `NodeType` to human-friendly `StepLogKind` values ### Checklist - [ ] this is a breaking change and should publish a new major version - [ ] appropriate tests have been written
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Pull request successfully merged into master. Build succeeded: |
Fixes or implements VF-3552
Brief description. What is this change?
more minor changes to runtime logging utils & types
LogLevel.OFF
export *
for utils (just remember not to export anything that should be private/internal)string
toLogLevel
nodeTypeToStepLogKind()
method for convertingNodeType
to human-friendlyStepLogKind
valuesChecklist