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

Feat(webinar): Panelist Join new data channel in practice session & Attendee receive whiteboard as stream #4041

Merged
merged 20 commits into from
Jan 20, 2025

Conversation

mickelr
Copy link
Contributor

@mickelr mickelr commented Jan 3, 2025

COMPLETES #< INSERT LINK TO ISSUE >

https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-602151
https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-585446
https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-595509

This pull request addresses

  • Attendees receive whiteboard streaming
  • Panelists join new data channel in practice session
  • Add DISABLE_BREAKOUT_START to both moderator / cohost

by making the following changes

  • For whiteboard sharing case, force update media share type to remote screen share when demote to attendee and change back to whiteboard share when promote to panelist.
  • Switch normal data channel and ps data channel according to role and ps status.
  • Handle new displayhint

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

< ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >

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.

Copy link

coderabbitai bot commented Jan 3, 2025

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

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

warning [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
warning eslint > @humanwhocodes/[email protected]: Use @eslint/config-array instead
warning eslint > @humanwhocodes/config-array > @humanwhocodes/[email protected]: Use @eslint/object-schema instead
warning eslint > file-entry-cache > flat-cache > [email protected]: Rimraf versions prior to v4 are no longer supported
warning eslint > file-entry-cache > flat-cache > rimraf > [email protected]: Glob versions prior to v9 are no longer supported
warning eslint > file-entry-cache > flat-cache > rimraf > glob > [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning eslint-import-resolver-typescript > [email protected]: Glob versions prior to v9 are no longer supported
warning [email protected]: Glob versions prior to v9 are no longer supported
warning intern > [email protected]: Glob versions prior to v9 are no longer supported
warning intern > glob > [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning jasmine > [email protected]: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > jest-config > [email protected]: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > jest-runtime > [email protected]: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > @jest/reporters > [email protected]: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > @jest/transform > babel-plugin-istanbul > test-exclude > [email protected]: Glob versions prior to v9 are no longer supported
warning mocha > [email protected]: Glob versions prior to v9 are no longer supported
warning mocha > glob > [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning [email protected]: 16.1.1
warning wd > archiver > [email protected]: Glob versions prior to v9 are no longer supported
warning wd > [email protected]: request has been deprecated, see request/request#3142
warning wd > [email protected]: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.

(For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
warning wd > archiver > archiver-utils > [email protected]: Glob versions prior to v9 are no longer supported
warning wd > request > [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
warning wd > request > [email protected]: this library is no longer supported
warning @babel/cli > [email protected]: Glob versions prior to v9 are no longer supported
warning @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
warning @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
warning @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.
warning @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
warning @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
warning @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
warning @babel/[email protected]: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
warning @babel/polyfill > [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning @babel/runtime-corejs2 > [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning babel-plugin-lodash > [email protected]: Glob versions prior to v9 are no longer supported
warning workspace-aggregator-b36fa20f-c3fe-4317-94fc-8ace3fbd2977 > [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
warning workspace-aggregator-b36fa20f-c3fe-4317-94fc-8ace3fbd2977 > [email protected]: Glob versions prior to v9 are no longer supported
warning workspace-aggregator-b36fa20f-c3fe-4317-94fc-8ace3fbd2977 > [email protected]: 16.1.1
warning workspace-aggregator-b36fa20f-c3fe-4317-94fc-8ace3fbd2977 > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
warning workspace-aggregator-b36fa20f-c3fe-4317-94fc-8ace3fbd2977 > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
warning workspace-aggregator-b36fa20f-c3fe-4317-94fc-8ace3fbd2977 > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.
warning workspace-aggregator-b36fa20f-c3fe-4317-94fc-8ace3fbd2977 > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
warning workspace-aggregator-b36fa20f-c3fe-4317-94fc-8ace3fbd2977 > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
warning workspace-aggregator-b36fa20f-c3fe-4317-94fc-8ace3fbd2977 > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
warning workspace-aggregator-b36fa20f-c3fe-4317-94fc-8ace3fbd2977 > @babel/[email protected]: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
error [email protected]: The engine "node" is incompatible with this module. Expected version "^14 || ^16 || ^17 || ^18 || ^19". Got "22.9.0"
error Found incompatible module.

📝 Walkthrough

Walkthrough

This pull request introduces enhancements to the meetings plugin, focusing on webinar functionality, media sharing, and event handling. Key changes include the addition of new constants for event triggers and display hints, updates to the LocusInfo, Meeting, and Webinar classes to improve role management and resource link handling, and the introduction of utility methods for managing breakout sessions. The modifications aim to enhance the flexibility and control over meeting interactions, particularly in webinar scenarios, by allowing conditional updates and better state management.

Changes

File Change Summary
packages/@webex/plugin-meetings/src/constants.ts Added two new constants: MEETING_RESOURCE_LINKS_UPDATE and DISABLE_BREAKOUT_START
packages/@webex/plugin-meetings/src/locus-info/index.ts Updated updateMediaShares method to include optional forceUpdate parameter
packages/@webex/plugin-meetings/src/meeting/index.ts Modified Webinar instantiation with meetingId, updated resource links listener
packages/@webex/plugin-meetings/src/meeting/util.ts Added canStartBreakout method to check breakout session start capability
packages/@webex/plugin-meetings/src/webinar/index.ts Added meetingId property, enhanced role change and status update methods

Sequence Diagram

sequenceDiagram
    participant Meeting
    participant Webinar
    participant LocusInfo

    Meeting->>Webinar: Initialize with meetingId
    Meeting->>LocusInfo: Set up resource links listener
    alt Payload exists
        LocusInfo->>Webinar: Update webcast URL
        Webinar-->>Meeting: Trigger resource links update event
    end
    Meeting->>Webinar: Handle role changes
    Webinar->>Webinar: Update status by role
Loading

Possibly related PRs

Suggested reviewers

  • arun3528
  • chrisadubois

Poem

🐰 Hop, hop, through meeting's maze,
Resource links dance in digital ways,
Webinars bloom with newfound might,
Breakout sessions take their flight,
Code rabbits sing with pure delight! 🎉

Finishing Touches

  • 📝 Generate Docstrings (Beta)

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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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.

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

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

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

@mickelr mickelr added the validated If the pull request is validated for automation. label Jan 16, 2025
@mickelr mickelr marked this pull request as ready for review January 16, 2025 06:50
@mickelr mickelr requested review from a team as code owners January 16, 2025 06:50
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

🧹 Nitpick comments (9)
packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (7)

10738-10740: Remove unnecessary empty line

There is an unnecessary empty line that should be removed for better code readability.

          meeting.processRelayEvent = sinon.stub();
          meeting.webinar.isJoinPracticeSessionDataChannel = sinon.stub().returns(false);

10870-10882: Remove unnecessary empty lines and improve formatting

There are several unnecessary empty lines that should be removed for better code readability.

-
-
         it('connect ps data channel if ps started in webinar', async () => {
           meeting.joinedWith = {state: 'JOINED'};
           meeting.locusInfo = {url: 'a url', info: {datachannelUrl: 'a datachannel url', practiceSessionDatachannelUrl: 'a ps datachannel url'}};
           meeting.webinar.isJoinPracticeSessionDataChannel = sinon.stub().returns(true);
           await meeting.updateLLMConnection();
-
           assert.notCalled(webex.internal.llm.disconnectLLM);
           assert.calledWith(webex.internal.llm.registerAndConnect, 'a url', 'a ps datachannel url');
-
         });

11074-11074: Remove unnecessary empty line

There is an unnecessary empty line that should be removed for better code readability.

            meeting.locusInfo.info = {isWebinar: false};

11300-11317: Improve code formatting and readability

The code has inconsistent indentation and unnecessary empty lines. Let's clean it up.

                eventTrigger.share.push(meeting.webinar.selfIsAttendee ? {
                  eventName: EVENT_TRIGGERS.MEETING_STARTED_SHARING_REMOTE,
                  functionName: 'remoteShare',
                  eventPayload: {
                    memberId: null,
                    url,
                    shareInstanceId,
                    annotationInfo: undefined,
                    resourceType: undefined,
                  },
                } : {
                  eventName: EVENT_TRIGGERS.MEETING_STARTED_SHARING_WHITEBOARD,
                  functionName: 'startWhiteboardShare',
                  eventPayload: {resourceUrl, memberId: beneficiaryId},
                });
                shareStatus = meeting.webinar.selfIsAttendee ? SHARE_STATUS.REMOTE_SHARE_ACTIVE : SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE;

11349-11366: Improve code formatting and readability

The code has inconsistent indentation and unnecessary empty lines. Let's clean it up.

                  eventTrigger.share.push(meeting.webinar.selfIsAttendee ? {
                    eventName: EVENT_TRIGGERS.MEETING_STARTED_SHARING_REMOTE,
                    functionName: 'remoteShare',
                    eventPayload: {
                      memberId: null,
                      url,
                      shareInstanceId,
                      annotationInfo: undefined,
                      resourceType: undefined,
                    },
                  } : {
                    eventName: EVENT_TRIGGERS.MEETING_STARTED_SHARING_WHITEBOARD,
                    functionName: 'startWhiteboardShare',
                    eventPayload: {resourceUrl, memberId: beneficiaryId},
                  });
                  shareStatus = meeting.webinar.selfIsAttendee ? SHARE_STATUS.REMOTE_SHARE_ACTIVE : SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE;

11493-11522: Refactor test structure to reduce nesting

The test suite has excessive nesting of describe() blocks which makes it harder to read and maintain. Consider refactoring to reduce nesting levels.

- describe('Whiteboard Share - Webinar Attendee', () => {
-   it('Scenario #1: Whiteboard sharing as a webinar attendee', () => {
-     // Test code...
-   });
- });

+ // Flatten the structure by using a descriptive test name
+ it('handles whiteboard sharing as a webinar attendee', () => {
+   // Test code...
+ });
🧰 Tools
🪛 Biome (1.9.4)

[error] 11493-11522: Excessive describe() nesting detected.

Excessive nesting of describe() calls can hinder test readability.
Consider refactoring and reduce the level of nested describe to improve code clarity.

(lint/complexity/noExcessiveNestedTestSuites)


10870-10882: Improve test organization for webinar attendee scenarios

The webinar attendee test cases are scattered in different places. Consider grouping all webinar attendee related tests together for better organization and readability.

Move the connect ps data channel if ps started in webinar test case to be grouped with other webinar attendee test cases for better organization. This will make it easier to find and maintain all webinar-related test cases.

Also applies to: 11493-11522

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

12-12: Fix the import path typo.

The import path contains a double forward slash which should be corrected.

-import MediaSharesUtils from '@webex/plugin-meetings/src/locus-info//mediaSharesUtils';
+import MediaSharesUtils from '@webex/plugin-meetings/src/locus-info/mediaSharesUtils';
packages/@webex/plugin-meetings/test/unit/spec/webinar/index.ts (1)

152-251: Consider adding edge case tests.

While the test suite covers the main scenarios, consider adding tests for:

  • Error cases in updateMediaShares
  • Error cases in updateLLMConnection
  • Concurrent role changes
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1133cbc and 756d9bc.

📒 Files selected for processing (9)
  • packages/@webex/plugin-meetings/src/constants.ts (2 hunks)
  • packages/@webex/plugin-meetings/src/locus-info/index.ts (2 hunks)
  • packages/@webex/plugin-meetings/src/meeting/index.ts (8 hunks)
  • packages/@webex/plugin-meetings/src/meeting/util.ts (1 hunks)
  • packages/@webex/plugin-meetings/src/webinar/index.ts (3 hunks)
  • packages/@webex/plugin-meetings/test/unit/spec/locus-info/index.js (2 hunks)
  • packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (6 hunks)
  • packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js (3 hunks)
  • packages/@webex/plugin-meetings/test/unit/spec/webinar/index.ts (18 hunks)
✅ Files skipped from review due to trivial changes (1)
  • packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js
🧰 Additional context used
🪛 Biome (1.9.4)
packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js

[error] 11493-11522: Excessive describe() nesting detected.

Excessive nesting of describe() calls can hinder test readability.
Consider refactoring and reduce the level of nested describe to improve code clarity.

(lint/complexity/noExcessiveNestedTestSuites)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Determine Changed Packages
  • GitHub Check: AWS Amplify Console Web Preview
🔇 Additional comments (13)
packages/@webex/plugin-meetings/src/locus-info/index.ts (1)

Line range hint 1286-1307: LGTM! The forceUpdate parameter addition enhances flexibility.

The changes allow forcing a media share update even when the content hasn't changed, which is useful for scenarios where we need to re-trigger media share events. The implementation is clean and maintains backward compatibility with the default false value.

packages/@webex/plugin-meetings/src/meeting/index.ts (3)

853-853: LGTM! Properly initialized Webinar class with meetingId.

The change ensures that the Webinar instance is created with the correct meetingId parameter.


3068-3081: LGTM! Added resource links update event trigger.

The change properly triggers the MEETING_RESOURCE_LINKS_UPDATE event when resource links are updated, allowing clients to react to resource link changes.


5604-5613: LGTM! Added support for practice session data channel.

The change enables webinar panelists to use the practice session data channel URL when appropriate, improving the webinar practice session functionality.

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

1641-1767: Well-structured test suite with comprehensive coverage!

The test suite for updateMediaShares is well-implemented with:

  • Clear test cases covering both normal and edge cases
  • Proper setup and teardown
  • Comprehensive assertions
  • Good use of stubs and spies
packages/@webex/plugin-meetings/src/webinar/index.ts (4)

28-28: LGTM! Property addition looks good.

The meetingId property is correctly typed as 'string' and aligns with the class's needs.


72-73: LGTM! Role change logic enhancement.

The additional condition !oldRoles.includes(SELF_ROLES.ATTENDEE) && newRoles.includes(SELF_ROLES.ATTENDEE) correctly handles the case when an attendee joins the meeting without previously holding the attendee role.


105-111: LGTM! Clear and concise implementation.

The isJoinPracticeSessionDataChannel method has a clear purpose and correctly checks both required conditions.


82-103: Verify error handling in updateStatusByRole.

The method handles media share updates and practice session data channel connections, but there's no error handling for potential failures in updateMediaShares or updateLLMConnection.

Run this script to check for error handling patterns in similar methods:

packages/@webex/plugin-meetings/src/meeting/util.ts (1)

444-445: LGTM! Consistent with existing patterns.

The canStartBreakout method follows the established pattern for display hint checks and correctly implements the inverse logic for the DISABLE_BREAKOUT_START hint.

packages/@webex/plugin-meetings/test/unit/spec/webinar/index.ts (2)

106-119: LGTM! Good test coverage for new join case.

The test verifies all state changes and role transitions for the attendee join scenario.


286-308: LGTM! Comprehensive test coverage.

The test suite thoroughly verifies all possible combinations of panelist status and practice session state.

packages/@webex/plugin-meetings/src/constants.ts (1)

967-967: LGTM! Consistent constant naming.

The new DISABLE_BREAKOUT_START constant follows the established naming pattern for display hints.

@mickelr mickelr changed the title Feat/Join new data channel in practice session Feat/Panelist Join new data channel in practice session & Attendee receive whiteboard as stream Jan 16, 2025
@mickelr mickelr changed the title Feat/Panelist Join new data channel in practice session & Attendee receive whiteboard as stream Feat(webinar)/Panelist Join new data channel in practice session & Attendee receive whiteboard as stream Jan 16, 2025
@arun3528 arun3528 changed the title Feat(webinar)/Panelist Join new data channel in practice session & Attendee receive whiteboard as stream Feat(webinar): Panelist Join new data channel in practice session & Attendee receive whiteboard as stream Jan 17, 2025
Copy link
Collaborator

@arun3528 arun3528 left a comment

Choose a reason for hiding this comment

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

LGTM

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

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

11444-11473: Refactor test structure to reduce nesting.

The test structure has excessive nesting of describe() blocks which makes the tests harder to read and maintain. Consider flattening the test hierarchy by:

  1. Moving the webinar attendee test cases to a top-level describe block
  2. Using more descriptive test names to maintain context without deep nesting
- describe('Whiteboard Share - Webinar Attendee', () => {
-   it('Scenario #1: Whiteboard sharing as a webinar attendee', () => {
+ describe('webinar attendee whiteboard sharing', () => {
+   it('handles whiteboard sharing when user is a webinar attendee', () => {
🧰 Tools
🪛 Biome (1.9.4)

[error] 11444-11473: Excessive describe() nesting detected.

Excessive nesting of describe() calls can hinder test readability.
Consider refactoring and reduce the level of nested describe to improve code clarity.

(lint/complexity/noExcessiveNestedTestSuites)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 756d9bc and dbe0399.

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

[error] 11444-11473: Excessive describe() nesting detected.

Excessive nesting of describe() calls can hinder test readability.
Consider refactoring and reduce the level of nested describe to improve code clarity.

(lint/complexity/noExcessiveNestedTestSuites)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Initialize Project
  • GitHub Check: AWS Amplify Console Web Preview
🔇 Additional comments (2)
packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (2)

10689-10689: LGTM! Good handling of practice session data channel.

The changes correctly handle the practice session data channel URL for webinar scenarios. The code checks if the user should join the practice session data channel and uses the appropriate URL.

Also applies to: 10821-10833


11251-11268: LGTM! Proper handling of whiteboard sharing for webinar attendees.

The changes correctly handle whiteboard sharing events for webinar attendees by:

  1. Using remote share events instead of whiteboard events
  2. Setting the appropriate share status
  3. Maintaining consistent behavior with the rest of the codebase

Also applies to: 11300-11317

Copy link
Contributor

@JudyZhuHz JudyZhuHz left a comment

Choose a reason for hiding this comment

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

LGTM

@JudyZhuHz JudyZhuHz merged commit 4ab218b into webex:next Jan 20, 2025
13 checks passed
@mickelr mickelr deleted the feat/dataChannel4PS branch January 20, 2025 02:20
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.

3 participants