-
Notifications
You must be signed in to change notification settings - Fork 735
feat(ec2): provide link for customer to view system logs #5633
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
Conversation
|
This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions. |
|
LGTM after CI passes :) cc @keeganirby for visibility. Related: this upcoming feature-branch enhances |
justinmk3
left a comment
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.
Nice!
Co-authored-by: Justin M. Keyes <[email protected]>
## Problem Limited ability to diagnose problems with EC2 instances provided in the toolkit. ## Solution Add a right click option to provide system log of Ec2 instance in read-only file view. ### Implementation Details - Log view does NOT live update. This would require refactoring the CWL significantly. Better to get the feature out and see if this is something customers want/need. - To reduce code duplication two new utility components were added `decodeBase64` in`core/src/shared/utilities/textUtilities.ts` and `UriSchema` in `core/src/shared/utilities/uriUtils.ts`. - `decodeBase64` is a helper function to wrap the use of `Buffer.from(X, "base64").toString()` throughout the toolkit. - `UriSchema` provides a general framework for translating between an object and an URI, and vice versa. It allows us to avoid writing the `isValid` method in all cases. With more work this could likely be more general, but is only used twice so unclear if it is worth pursuing. - These changes involved changing some function calls, especially in the CWL code, but does not impact functionality. ### Pictures <img width="1231" alt="image" src="https://github.com/user-attachments/assets/0991c51e-6e27-4102-a85f-08246a7faab0"> <img width="1508" alt="image" src="https://github.com/user-attachments/assets/558d831f-7a7c-475b-9400-719ce8fd99d7"> --- <!--- REMINDER: Ensure that your PR meets the guidelines in CONTRIBUTING.md --> License: I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: Justin M. Keyes <[email protected]>
Problem
Limited ability to diagnose problems with EC2 instances provided in the toolkit.
Solution
Add a right click option to provide system log of Ec2 instance in read-only file view.
Implementation Details
decodeBase64incore/src/shared/utilities/textUtilities.tsandUriSchemaincore/src/shared/utilities/uriUtils.ts.decodeBase64is a helper function to wrap the use ofBuffer.from(X, "base64").toString()throughout the toolkit.UriSchemaprovides a general framework for translating between an object and an URI, and vice versa. It allows us to avoid writing theisValidmethod in all cases. With more work this could likely be more general, but is only used twice so unclear if it is worth pursuing.Pictures
License: I confirm that my contribution is made under the terms of the Apache 2.0 license.