Skip to content
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

fix(plugin-meetings): init locusInfo before join.response event #3914

Merged

Conversation

SomeBody16
Copy link
Contributor

@SomeBody16 SomeBody16 commented Oct 14, 2024

COMPLETES SPARK-570035

This pull request addresses

Missing locusInfo in event.identifiers in first client.locus.join.response event

by making the following changes

Initial setup of locusInfo before first client.locus.join.response event

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Tooling change
  • Internal code refactor

The following scenarios were tested

  • Automated tests
  • Scenario:
    1. Schedule meeting from native client
    2. Join a meeting from native client
    3. Copy the meeting url from native client
    4. In sample app paste the url to "Destination" (above "Sync Meetings")
    5. In sample app click "Create Meeting"
    6. Join with media after choosing this meeting from list
    7. client.locus.join.response now has property identifiers.locusUrl(with id) and identifiers.locusId filled

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

    • Introduced methods for managing screen sharing and whiteboard functionalities.
    • Enhanced media management capabilities, including support for various media types.
  • Bug Fixes

    • Improved error handling in meeting lifecycle methods to ensure appropriate logging and responses.
  • Refactor

    • Streamlined the joinMeeting and joinMeetingOptions methods for better readability and efficiency.
    • Refined event handling and metrics submission processes for improved tracking and analysis.
  • Tests

    • Updated test cases to reflect changes in response structures and ensure proper validation of new functionalities.

@SomeBody16 SomeBody16 requested review from a team as code owners October 14, 2024 12:07
@SomeBody16 SomeBody16 added the validated If the pull request is validated for automation. label Oct 14, 2024
@SomeBody16 SomeBody16 self-assigned this Oct 14, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-3914.d3m3l2kee0btzx.amplifyapp.com


const parseLocusJoinSpy = sinon.stub(MeetingUtil, 'parseLocusJoin');
it('#Should call `meetingRequest.joinMeeting', async () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only this test was changed so locusInfo is tested.
Because locusInfo is now required for joinMeeting to work with tests, meeting object was moved one level (to beforeEach) to remove unnecessary duplication

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just got a quick question about the tests here, why are we having a # here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like the other existing tests nearby also already have # at the start of the title, they're all unnecessary. From what I've seen, the SDK tests usually have a convention to add a # at the beginning of method name when creating a describe for tests for such method, so in this case we should have describe('#joinMeeting'), () => { in line 380 and not have any # in the it() calls

// @ts-ignore
const parsed = MeetingUtil.parseLocusJoin(res);

meeting.locusInfo.initialSetup(parsed.locus);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we need to do a second initial setup if it's already been done. Inside Locus info, there are a couple of interesting functions that sound like something that could be useful here, like updateLocusInfo and onDeltaLocus. Have you tried using them?

Copy link
Contributor Author

@SomeBody16 SomeBody16 Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initialSetup is called when meeting is created in meetings.create function. Here meeting is already created and locusInfo is still not initialized (initialSetup was not called yet) so I would say it's good that we are calling this.
From what I can see, updateLocusInfo and onDeltaLocus are used more like internal updates and initialSetup as external update.

But still I would leave the decision to someone from SDK team if we should call here initialSetup or updateLocusInfo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we discussed, I want to double-check if these two logics are not repeating each other. It seems that we are making two calls to initialSetup for locusInfo in the join meeting flow. If this is the case, it would be better to consolidate it into one.

trackingid: 'trackingId',
},
}
let meeting
Copy link
Contributor

@antsukanova antsukanova Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if syntaxys here is right. Should be ";" at the end like in other test cases?
I feel that some js files in SDK have an issue with checking this, but still, I believe we need to try to align this

Copy link
Contributor

@edvujic edvujic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one non-blocking comment.


const parseLocusJoinSpy = sinon.stub(MeetingUtil, 'parseLocusJoin');
it('#Should call `meetingRequest.joinMeeting', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just got a quick question about the tests here, why are we having a # here?

@@ -313,34 +315,25 @@ const MeetingUtil = {
}

// normal join meeting, scenario A, D
return MeetingUtil.joinMeeting(meeting, options)
.then((response) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed then block

Copy link
Contributor

@antsukanova antsukanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. Thank you for the updates. Please ensure unit tests are checked and I would also like to see a review from the SDK team.
Also, it would be good if you could double-check that this fix works the same for the BEMS case.

@SomeBody16 SomeBody16 force-pushed the SPARK-570035-parse_locus_before_join branch from 8d1dbf5 to 1450437 Compare October 16, 2024 12:56
Comment on lines 3791 to 3798
sinon.stub(MeetingUtil, 'joinMeeting').callsFake(async (meeting) => {
const result = {
id: 'fake locus from mocked join request',
locusUrl: 'fake locus url',
mediaId: 'fake media id',
};
meeting.setLocus(result)
return result;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we are removing then block after joinMeeting we need to call setLocus manually in tests

Copy link
Collaborator

@marcin-bazyl marcin-bazyl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, added one non-blocking suggestion about the tests

locusUrl: 'fake locus url',
mediaId: 'fake media id',
};
meeting.setLocus(result)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is getting a bit messy... maybe we could instead of stubbing MeetingUtil.joinMeeting() just stub meeting.meetingRequest.joinMeeting()?

@SomeBody16 SomeBody16 force-pushed the SPARK-570035-parse_locus_before_join branch from 368512b to a312e2a Compare October 21, 2024 09:49
Copy link

coderabbitai bot commented Oct 21, 2024

Walkthrough

The changes in this pull request focus on enhancing the functionality and error handling of the meetings plugin. Key modifications include updates to the joinMeeting, joinMeetingOptions, and getIpVersion methods in the util.ts file, streamlining response handling and error management. New methods for screen sharing and improved event handling are introduced in index.js, while tests in utils.js are updated to accommodate a new response format for the joinMeeting function. Overall, the changes aim to improve clarity, efficiency, and robustness in the meeting lifecycle and media management.

Changes

File Path Change Summary
packages/@webex/plugin-meetings/src/meeting/util.ts - Updated joinMeeting and joinMeetingOptions for streamlined response handling and error management.
- Modified getIpVersion to check for Firefox compatibility.
- Enhanced error handling in disconnectPhoneAudio and leaveMeeting.
packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js - Added methods for screen sharing: requestScreenShareFloor, startWhiteboardShare, stopWhiteboardShare.
- Updated join, addMedia, and other methods for improved error handling and media management.
- Expanded event handling logic for locus events and metrics submission.
packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js - Restructured joinMeeting to handle a new response format.
- Updated test assertions to validate the new response structure and parameters.

Poem

🐰 In the meadow where meetings flow,
With screens to share and whiteboards aglow,
Errors caught, and metrics in sight,
Join us now, everything feels right!
Hopping through code, with joy we sing,
A seamless experience, let the meetings bring! 🌼


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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Outside diff range and nitpick comments (1)
packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (1)

3797-3797: Consider stubbing meeting.meetingRequest.joinMeeting() instead

marcin-bazyl's suggestion to stub meeting.meetingRequest.joinMeeting() instead of MeetingUtil.joinMeeting() seems reasonable to simplify the test setup. This will avoid the need to manually call meeting.setLocus().

sinon.stub(meeting.meetingRequest, 'joinMeeting').resolves({
  id: 'fake locus from mocked join request',
  locusUrl: 'fake locus url', 
  mediaId: 'fake media id'
});
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between e53d135 and a312e2a.

📒 Files selected for processing (3)
  • packages/@webex/plugin-meetings/src/meeting/util.ts (3 hunks)
  • packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (1 hunks)
  • packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js (4 hunks)
🧰 Additional context used
🪛 Biome
packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js

[error] 495-495: Avoid the delete operator which can impact performance.

Unsafe fix: Use an undefined assignment instead.

(lint/performance/noDelete)


[error] 506-506: Avoid the delete operator which can impact performance.

Unsafe fix: Use an undefined assignment instead.

(lint/performance/noDelete)

🔇 Additional comments (5)
packages/@webex/plugin-meetings/src/meeting/util.ts (3)

153-155: Properly initializing locusInfo before event submission

Initializing locusInfo with meeting.setLocus(parsed); before emitting the client.locus.join.response event ensures that locusInfo is available when the event is handled. This change effectively addresses the issue mentioned in the PR objectives.


166-166: Including mediaConnections in event metrics

Adding mediaConnections: parsed.mediaConnections to the event options provides additional context in the client.locus.join.response event, which can be useful for diagnostics and analytics.


170-170: Returning parsed locus data from joinMeeting

Returning parsed from the joinMeeting method allows the caller to access the processed locus data directly, improving the method's usability and aligning with standard practices.

packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js (1)

392-392: ⚠️ Potential issue

Use camelCase for property names

The property trackingid should be renamed to trackingId to adhere to camelCase naming conventions used throughout the codebase.

Apply this diff to fix the issue:

-            trackingid: 'trackingId',
+            trackingId: 'trackingId',

Likely invalid or redundant comment.

packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (1)

3791-3798: ****
The comment from SomeBody16 is still valid and applicable to the current code. No need to duplicate the comment.

return MeetingUtil.joinMeeting(meeting, options).catch((err) => {
// joining a claimed PMR that is not my own, scenario B
if (MeetingUtil.isPinOrGuest(err)) {
// @ts-ignore
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Avoid suppressing TypeScript errors with @ts-ignore

The use of // @ts-ignore on line 321 suppresses TypeScript errors, which may mask underlying type issues. It's generally better to resolve the type error directly.

If the webex.internal.newMetrics.submitClientEvent method has incorrect or missing type definitions, consider updating the type definitions to reflect the actual usage instead of ignoring the error.

Comment on lines 318 to 336
return MeetingUtil.joinMeeting(meeting, options).catch((err) => {
// joining a claimed PMR that is not my own, scenario B
if (MeetingUtil.isPinOrGuest(err)) {
// @ts-ignore
webex.internal.newMetrics.submitClientEvent({
name: 'client.pin.prompt',
options: {
meetingId: meeting.id,
},
});

// request host pin or non host for unclaimed PMR, start of Scenario C
// see https://sqbu-github.cisco.com/WebExSquared/locus/wiki/Locus-Lobby-and--IVR-Feature
return Promise.reject(new IntentToJoinError('Error Joining Meeting', err));
}
LoggerProxy.logger.error(
'Meeting:util#joinMeetingOptions --> Error joining the call, ',
err
);
// request host pin or non host for unclaimed PMR, start of Scenario C
// see https://sqbu-github.cisco.com/WebExSquared/locus/wiki/Locus-Lobby-and--IVR-Feature
return Promise.reject(new IntentToJoinError('Error Joining Meeting', err));
}
LoggerProxy.logger.error('Meeting:util#joinMeetingOptions --> Error joining the call, ', err);

return Promise.reject(new JoinMeetingError(options, 'Error Joining Meeting', err));
});
return Promise.reject(new JoinMeetingError(options, 'Error Joining Meeting', err));
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Avoid including internal URLs in comments

The comment on line 330 includes an internal URL (https://sqbu-github.cisco.com/WebExSquared/locus/wiki/Locus-Lobby-and--IVR-Feature). Including internal or private URLs in code comments may expose confidential information and can be unhelpful for external developers who may not have access to these resources. Consider removing the URL or replacing it with a reference that does not rely on internal resources.

Apply this diff to update the comment:

-            // see https://sqbu-github.cisco.com/WebExSquared/locus/wiki/Locus-Lobby-and--IVR-Feature
+            // Refer to Locus Lobby and IVR Feature documentation for more details
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
return MeetingUtil.joinMeeting(meeting, options).catch((err) => {
// joining a claimed PMR that is not my own, scenario B
if (MeetingUtil.isPinOrGuest(err)) {
// @ts-ignore
webex.internal.newMetrics.submitClientEvent({
name: 'client.pin.prompt',
options: {
meetingId: meeting.id,
},
});
// request host pin or non host for unclaimed PMR, start of Scenario C
// see https://sqbu-github.cisco.com/WebExSquared/locus/wiki/Locus-Lobby-and--IVR-Feature
return Promise.reject(new IntentToJoinError('Error Joining Meeting', err));
}
LoggerProxy.logger.error(
'Meeting:util#joinMeetingOptions --> Error joining the call, ',
err
);
// request host pin or non host for unclaimed PMR, start of Scenario C
// see https://sqbu-github.cisco.com/WebExSquared/locus/wiki/Locus-Lobby-and--IVR-Feature
return Promise.reject(new IntentToJoinError('Error Joining Meeting', err));
}
LoggerProxy.logger.error('Meeting:util#joinMeetingOptions --> Error joining the call, ', err);
return Promise.reject(new JoinMeetingError(options, 'Error Joining Meeting', err));
});
return Promise.reject(new JoinMeetingError(options, 'Error Joining Meeting', err));
});
return MeetingUtil.joinMeeting(meeting, options).catch((err) => {
// joining a claimed PMR that is not my own, scenario B
if (MeetingUtil.isPinOrGuest(err)) {
// @ts-ignore
webex.internal.newMetrics.submitClientEvent({
name: 'client.pin.prompt',
options: {
meetingId: meeting.id,
},
});
// request host pin or non host for unclaimed PMR, start of Scenario C
// Refer to Locus Lobby and IVR Feature documentation for more details
return Promise.reject(new IntentToJoinError('Error Joining Meeting', err));
}
LoggerProxy.logger.error('Meeting:util#joinMeetingOptions --> Error joining the call, ', err);
return Promise.reject(new JoinMeetingError(options, 'Error Joining Meeting', err));
});

};

const parseLocusJoinSpy = sinon.stub(MeetingUtil, 'parseLocusJoin');
delete meeting.meetingJoinUrl;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Avoid using the delete operator for better performance

As above, replace the delete operation with an assignment to undefined for the meetingJoinUrl property to enhance performance.

Apply this diff to fix the issue:

-delete meeting.meetingJoinUrl;
+meeting.meetingJoinUrl = undefined;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
delete meeting.meetingJoinUrl;
meeting.meetingJoinUrl = undefined;
🧰 Tools
🪛 Biome

[error] 506-506: Avoid the delete operator which can impact performance.

Unsafe fix: Use an undefined assignment instead.

(lint/performance/noDelete)

};

const parseLocusJoinSpy = sinon.stub(MeetingUtil, 'parseLocusJoin');
delete meeting.meetingJoinUrl;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Avoid using the delete operator for better performance

Using the delete operator can negatively impact performance as it forces the JavaScript engine to reoptimize the object's structure. Instead, set the property to undefined to maintain optimal performance.

Apply this diff to fix the issue:

-delete meeting.meetingJoinUrl;
+meeting.meetingJoinUrl = undefined;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
delete meeting.meetingJoinUrl;
meeting.meetingJoinUrl = undefined;
🧰 Tools
🪛 Biome

[error] 495-495: Avoid the delete operator which can impact performance.

Unsafe fix: Use an undefined assignment instead.

(lint/performance/noDelete)

Copy link

@coderabbitai coderabbitai bot left a 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 (3)
packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js (2)

Line range hint 424-443: LGTM! Consider minor consistency improvement.

The new assertions for meeting.setLocus and the updated client.locus.join.response event payload correctly reflect the changes in the joinMeeting function's response structure. These modifications align well with the PR objectives.

For consistency, consider using an object spread operator for the setLocusParameter assertion:

assert.deepEqual(setLocusParameter, {...MeetingUtil.parseLocusJoin(joinMeetingResponse)})

This change would make it clear that we're comparing objects and allow for potential future additions to the parsed locus without breaking the test.


484-491: LGTM! Consider adding a negative test case.

The addition of the isMultistream property and the corresponding assertion for preferTranscoding: false when multistream is enabled is a good enhancement to the test suite. This change aligns with the improvements in media management mentioned in the AI-generated summary.

To improve the robustness of the test suite, consider adding a negative test case where isMultistream is false, ensuring that preferTranscoding is true in that scenario. This would provide complete coverage for both multistream and non-multistream cases.

packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (1)

3796-3800: Nitpick: Use a more descriptive name for the stub response.

Consider renaming the stub response from {headers: {trackingid: 'fake tracking id'}} to something more meaningful like {headers: {trackingid: 'mocked_tracking_id'}}. This improves code readability by clearly indicating it's a mocked value.

-            sinon.stub(meeting.meetingRequest, 'joinMeeting').resolves({
-              headers: {
-                trackingid: 'fake tracking id',
-              }
-            })
+            sinon.stub(meeting.meetingRequest, 'joinMeeting').resolves({
+              headers: {
+                trackingid: 'mocked_tracking_id',
+              }
+            })
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between a312e2a and 894b146.

📒 Files selected for processing (3)
  • packages/@webex/plugin-meetings/src/meeting/util.ts (3 hunks)
  • packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (1 hunks)
  • packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js (4 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/@webex/plugin-meetings/src/meeting/util.ts
🧰 Additional context used
🔇 Additional comments (3)
packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js (1)

381-408: LGTM! Changes align with PR objectives.

The updated joinMeetingResponse structure and meeting object initialization in the beforeEach block are consistent with the PR objectives. These changes reflect the new response format for the joinMeeting function, including the mediaConnections array and locus object with URL and self ID.

packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (2)

Line range hint 1-2: LGTM!

The copyright header and import statements look good.


3791-3795: Verify the impact of stubbing parseLocusJoin() on other tests.

Stubbing MeetingUtil.parseLocusJoin() to return a fixed object could potentially impact the behavior of other tests that rely on the real implementation. Please ensure this stub does not cause unintended side effects.

Run the following script to check if parseLocusJoin() is used in other test files:

If found, carefully review those tests to confirm they still work as expected with the stubbed version.

✅ Verification successful

Stub of parseLocusJoin() does not impact other tests.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash

rg -g '*.js' -g '!index.js' 'MeetingUtil.parseLocusJoin'

Length of output: 213

@SomeBody16 SomeBody16 merged commit 35a90bc into webex:next Oct 21, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validated If the pull request is validated for automation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants