-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GEN-1973]: fix empty labels for "unknown" instr. rules (ron note) (#…
…1966) This pull request includes changes to the `frontend/webapp` to handle unknown instrumentation rule types more gracefully. The most important changes include adding a new enumeration value and updating a utility function to return this new value instead of `undefined`. Enumeration update: * [`frontend/webapp/types/instrumentation-rules.ts`](diffhunk://#diff-66b962d2cc49488445ed7154565b752e0aa1b146265ed64309349a8d01ca24ddR3): Added `UNKNOWN_TYPE` to the `InstrumentationRuleType` enum. Utility function update: * [`frontend/webapp/utils/functions/strings/derive-type-from-rule/index.ts`](diffhunk://#diff-bf9d9f843b6a752fac1a44af59ce489d0cf7595ac1c40147741c4a1de8c2a1f0L8-R8): Modified the `deriveTypeFromRule` function to return `InstrumentationRuleType.UNKNOWN_TYPE` instead of `undefined` for unrecognized rule types.
- Loading branch information
1 parent
99cdc01
commit 646befd
Showing
5 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters