-
Notifications
You must be signed in to change notification settings - Fork 345
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
feat(consolidated-interstitial): joinFlowVersion from meeting.callStateForMetrics #3997
feat(consolidated-interstitial): joinFlowVersion from meeting.callStateForMetrics #3997
Conversation
WalkthroughThe changes in this pull request primarily focus on the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
warning eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options. (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
packages/@webex/internal-plugin-metrics/src/call-diagnostic/call-diagnostic-metrics.ts (1)
721-723
: LGTM! Consider adding type safety.The implementation correctly retrieves
joinFlowVersion
using the nullish coalescing operator, falling back tomeeting.callStateForMetrics?.joinFlowVersion
when not provided in options. This aligns with the PR objective.Consider adding type safety by explicitly declaring the type of
joinFlowVersion
:- const joinFlowVersion = options.joinFlowVersion ?? meeting.callStateForMetrics?.joinFlowVersion; + const joinFlowVersion: string | undefined = options.joinFlowVersion ?? meeting.callStateForMetrics?.joinFlowVersion;packages/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic/call-diagnostic-metrics.ts (1)
Line range hint
2818-2842
: Consider adding negative test casesWhile the positive test cases are well covered, consider adding tests for:
- Undefined/null joinFlowVersion in both options and callStateForMetrics
- Invalid joinFlowVersion values
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
packages/@webex/internal-plugin-metrics/src/call-diagnostic/call-diagnostic-metrics.ts
(1 hunks)packages/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic/call-diagnostic-metrics.ts
(5 hunks)
🔇 Additional comments (3)
packages/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic/call-diagnostic-metrics.ts (3)
51-51
: LGTM: Test data setup for joinFlowVersion
The addition of joinFlowVersion: 'Other'
to the test fixture fakeMeeting2
properly sets up the test data for verifying the new functionality.
1273-1273
: LGTM: Assertions for joinFlowVersion in existing tests
The assertions verify that joinFlowVersion is correctly included in the event payload for both regular and sessionCorrelationId scenarios.
Also applies to: 1325-1325
Line range hint 2762-2816
: LGTM: Comprehensive test coverage for joinFlowVersion
The new test cases thoroughly cover the joinFlowVersion functionality:
- Getting joinFlowVersion from options when in-meeting
- Getting joinFlowVersion from meeting.callStateForMetrics
- Verifying priority (options over callStateForMetrics)
The test cases are well-structured and cover the key scenarios.
This pull request is automatically being deployed by Amplify Hosting (learn more). |
COMPLETES #https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-576382
This pull request addresses
Pull new joinFlowVersion from meeting.callStateForMetrics when it does not exist on options.
This is a small follow-up to my previous PR.
Change Type
The following scenarios were tested
Updated unit tests and tested with modified cantina.
I certified that
I have read and followed contributing guidelines
I discussed changes with code owners prior to submitting this pull request
I have not skipped any automated checks
All existing and new tests passed
I have updated the documentation accordingly
Make sure to have followed the contributing guidelines before submitting.
Summary by CodeRabbit
New Features
joinFlowVersion
for client events, allowing it to derive from the meeting's state if not provided.Bug Fixes
Tests
joinFlowVersion
in client event submissions.