Skip to content

Conversation

@keeganirby
Copy link
Contributor

Problem

LogEventFilter is an optional configuration parameter when building a LiveTailSession. Currently, the Constructor is not actually setting this property so it is always undefined. This means that if a user sets a Filter pattern, it will not be applied.

Solution

Set the property in LiveTailSession Constructor.
Add missing unit tests to validate that LiveTailSession config values are set properly. Testing via buildStartLiveTailCommand because this is what actually gets sent to the CWL backend to start a LiveTailSession.


License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@keeganirby keeganirby requested a review from a team as a code owner November 13, 2024 20:36
@github-actions
Copy link

  • This pull request implements a feat or fix, so it must include a changelog entry (unless the fix is for an unreleased feature). Review the changelog guidelines.
    • Note: beta or "experiment" features that have active users should announce fixes in the changelog.
    • If this is not a feature or fix, use an appropriate type from the title guidelines. For example, telemetry-only changes should use the telemetry type.

@justinmk3 justinmk3 merged commit d56a8ac into aws:feature/cwltail Nov 13, 2024
24 of 25 checks passed
karanA-aws pushed a commit to karanA-aws/aws-toolkit-vscode that referenced this pull request Jan 17, 2025
## Problem
LogEventFilter is an optional configuration parameter when building a
LiveTailSession. Currently, the Constructor is not actually setting this
property so it is always undefined. This means that if a user sets a
Filter pattern, it will not be applied.

## Solution
Set the property in LiveTailSession Constructor.
Add missing unit tests to validate that LiveTailSession config values
are set properly. Testing via `buildStartLiveTailCommand` because this
is what actually gets sent to the CWL backend to start a
LiveTailSession.
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.

3 participants