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(meetings): Meeting joined time header #4124

Merged
merged 8 commits into from
Mar 27, 2025

Conversation

chrisadubois
Copy link
Collaborator

COMPLETES https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-555657

This pull request addresses

add meeting joined time, read from header if exists, and set to system clock if not. Apply to CA metrics thereafter

by making the following changes

  • CA metrics
  • read from header
  • add setter method

06_30_17

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

manual,
unit

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.

@chrisadubois chrisadubois requested review from a team as code owners February 28, 2025 19:21
Copy link
Contributor

coderabbitai bot commented Feb 28, 2025

📝 Walkthrough

Walkthrough

This update introduces a new property, meetingJoinedTime, to the clientEventObject within the CallDiagnosticMetrics class. This property captures the local client meeting join time from meeting.isoLocalClientMeetingJoinTime, if available. The existing logic for the joinFlowVersion and meetingJoinPhase remains unchanged. Additionally, a new setter method for isoLocalClientMeetingJoinTime has been added to the Meeting class to manage the join time consistently, replacing previous direct assignments. The joinMeeting method in the MeetingUtil class has also been updated to capture the join time from response headers. Corresponding test cases have been added to validate the correct handling of the new meetingJoinedTime property across different components.

Possibly related PRs

  • User input info #4155: The changes in this PR are related to those in the retrieved PR as both involve modifications to the clientEventObject in the CallDiagnosticMetrics class, specifically regarding the handling of additional properties related to meeting events.
  • feat(internal-plugin-metrics): allow caller to specify metadata of business metric events #4000: The changes in this PR are related to the introduction of the meetingJoinedTime variable, which is directly linked to the isoLocalClientMeetingJoinTime property being set in the retrieved PR, as both involve handling the meeting join time in their respective contexts.
  • fix(plugin-meetings): improve error handling for stream state ended #3975: The changes in this PR, which introduce a new variable for capturing the meeting join time, are related to the modifications in the retrieved PR that enhance the Meeting class, as both involve updates to the handling of meeting-related properties in the same file.

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.

yarn install v1.22.22
[1/4] Resolving packages...
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-cli > 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 sinon > @sinonjs/samsam > [email protected]: This package is deprecated. Use the optional chaining (?.) operator instead.
warning wd > archiver > [email protected]: Glob versions prior to v9 are no longer supported
warning wd > archiver > archiver-utils > [email protected]: Glob versions prior to v9 are no longer supported
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 > [email protected]: request has been deprecated, see request/request#3142
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-60a397b8-fb2a-4dc9-af2e-51538324e728 > [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
warning workspace-aggregator-60a397b8-fb2a-4dc9-af2e-51538324e728 > [email protected]: Glob versions prior to v9 are no longer supported
warning workspace-aggregator-60a397b8-fb2a-4dc9-af2e-51538324e728 > [email protected]: 16.1.1
warning workspace-aggregator-60a397b8-fb2a-4dc9-af2e-51538324e728 > @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-60a397b8-fb2a-4dc9-af2e-51538324e728 > @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-60a397b8-fb2a-4dc9-af2e-51538324e728 > @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-60a397b8-fb2a-4dc9-af2e-51538324e728 > @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-60a397b8-fb2a-4dc9-af2e-51538324e728 > @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-60a397b8-fb2a-4dc9-af2e-51538324e728 > @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-60a397b8-fb2a-4dc9-af2e-51538324e728 > @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.
[2/4] Fetching packages...
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.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 3a589cf and 6345771.

📒 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 (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/@webex/internal-plugin-metrics/src/call-diagnostic/call-diagnostic-metrics.ts
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Determine Changed Packages
  • GitHub Check: AWS Amplify Console Web Preview
🔇 Additional comments (3)
packages/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic/call-diagnostic-metrics.ts (3)

64-68: Well-structured test fixture for meeting join time.

The fakeMeeting4 object correctly implements the new property isoLocalClientMeetingJoinTime that will be used to test the meeting joined time header functionality. This aligns with the PR objective of adding functionality for recording when meetings are joined.


82-82: Appropriate addition to test fixtures mapping.

This addition to the fakeMeetings lookup object ensures the new test fixture is available throughout the tests.


1089-1225: Thorough test coverage for new meeting joined time feature.

This test case comprehensively verifies that the meetingJoinedTime property is correctly extracted from the meeting object and properly included in the submitted client event. The test follows the established pattern of other similar tests in the file and includes detailed assertions that validate all aspects of the functionality.

The implementation aligns perfectly with the PR objective of enhancing CA metrics to include the meeting joined time.

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 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.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @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.

@chrisadubois chrisadubois added the validated If the pull request is validated for automation. label Feb 28, 2025
@arun3528 arun3528 changed the title Meeting joined time header fix(meetings): Meeting joined time header Feb 28, 2025
Copy link
Contributor

@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: 1

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

183-183: Implementation looks good, consider adding fallback handling.

The code correctly retrieves the meeting join time from the response headers using safe optional chaining. This aligns well with the PR objectives to record when a meeting is joined.

While the comment mentions falling back to the system clock if the header doesn't exist, the fallback implementation isn't visible in this line. Consider either:

  1. Adding explicit fallback here:
-meeting.isoLocalClientMeetingJoinTime = res?.headers?.date; // read from header if exist, else fall back to system clock : https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-555657
+meeting.isoLocalClientMeetingJoinTime = res?.headers?.date || new Date().toISOString(); // read from header if exist, else fall back to system clock : https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-555657
  1. Or confirming the fallback is handled in the setter method for isoLocalClientMeetingJoinTime in the Meeting class.
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 6802b46 and 3f306f9.

📒 Files selected for processing (6)
  • 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 (2 hunks)
  • packages/@webex/plugin-meetings/src/meeting/index.ts (1 hunks)
  • packages/@webex/plugin-meetings/src/meeting/util.ts (1 hunks)
  • packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (2 hunks)
  • packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Build Packages
  • GitHub Check: AWS Amplify Console Web Preview
🔇 Additional comments (7)
packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (1)

209-209: New test variable for meeting join time tracking.

Adding the isoLocalClientMeetingJoinTime variable to capture the join time aligns well with the PR objective of reading joined time from headers.

packages/@webex/internal-plugin-metrics/src/call-diagnostic/call-diagnostic-metrics.ts (1)

739-742: Addition of meeting joined time to client event object looks good.

This change correctly implements the feature for recording the time a meeting is joined by adding the meetingJoinedTime property to the client event object when available. The implementation properly checks if the value exists before assigning it.

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

464-505: Good test coverage for the meeting join time header feature.

This test case properly verifies that the isoLocalClientMeetingJoinTime property is correctly set from the date header in the response when joining a meeting. The test adequately sets up the necessary mocks and assertions to validate this functionality.

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

1637-1650: Well-implemented setter method for meeting join time tracking.

The new setter method for isoLocalClientMeetingJoinTime correctly implements the logic to record meeting join time. It ensures the value is set only once (the first time it's called) and handles both cases appropriately - using the provided timestamp if one exists, or generating a new ISO timestamp if none is provided.

This implementation aligns perfectly with the PR objective to add functionality for recording meeting join time, reading from the header if it exists or using the system clock as a fallback.

packages/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic/call-diagnostic-metrics.ts (3)

61-65: Good addition of test fixture for meeting join time.

The new fakeMeeting4 test fixture correctly extends the base meeting object while adding the new isoLocalClientMeetingJoinTime property, which aligns with the PR's purpose of tracking meeting join times.


71-71: LGTM: Properly registered the new test fixture.

The new test fixture is correctly added to the fakeMeetings object, making it accessible for tests.


1071-1204: Well-structured test case for meeting join time functionality.

This test case thoroughly validates that the submitClientEvent method correctly incorporates the isoLocalClientMeetingJoinTime property from the meeting object into the event payload as meetingJoinedTime. The test covers all necessary assertions:

  1. Verification that the correct identifiers are fetched from the meeting
  2. Confirmation that the meetingJoinedTime property is set correctly in the diagnostic event
  3. Validation of the full call chain with appropriate spy checks

The test case aligns perfectly with the PR objective of adding functionality to record meeting join times.

Copy link

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

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

@chrisadubois
Copy link
Collaborator Author

Waiting for response from CA and Locus on Date header

Copy link
Contributor

@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

♻️ Duplicate comments (3)
packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (3)

7521-7528: ⚠️ Potential issue

Tests are using direct property assignment instead of setter method.

While the test suite is named #setIsoLocalClientMeetingJoinTime, the tests are directly assigning to the property rather than calling a setter method. This doesn't properly test the setter functionality mentioned in the PR objectives.

Update the test to use the setter method instead of direct property assignment:

-          meeting.isoLocalClientMeetingJoinTime = 'test';
+          meeting.setIsoLocalClientMeetingJoinTime('test');
-          meeting.isoLocalClientMeetingJoinTime = 'test2';
+          meeting.setIsoLocalClientMeetingJoinTime('test2');

7530-7537: ⚠️ Potential issue

Test doesn't properly verify the fallback behavior.

This test doesn't explicitly verify that when no value is provided, the system falls back to using the system clock as mentioned in the PR objectives. Additionally, the test shows that the property can still be changed after setting it to undefined which seems inconsistent with the "once and only once" assertion in the test name.

Improve the test to clearly verify the fallback behavior:

-          meeting.isoLocalClientMeetingJoinTime = undefined;
+          meeting.setIsoLocalClientMeetingJoinTime(undefined);
           const time = meeting.isoLocalClientMeetingJoinTime;
+          // Verify time is in ISO format indicating system clock was used
+          assert.match(time, /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/);
           assert.equal(meeting.isoLocalClientMeetingJoinTime, time);
-          meeting.isoLocalClientMeetingJoinTime = 'test2';
-          assert.equal(meeting.isoLocalClientMeetingJoinTime, 'test2');
+          // Verify value cannot be changed after it's set
+          meeting.setIsoLocalClientMeetingJoinTime('test2');
+          assert.equal(meeting.isoLocalClientMeetingJoinTime, time, 'Value should not change after initial setting');

7521-7538: 🛠️ Refactor suggestion

Add dedicated test for header fallback scenario.

The current tests don't explicitly verify the PR's main objective: reading the joined time from the header if it exists, with a fallback to the system clock.

Add a dedicated test case that verifies both scenarios:

it('should use header value when available and fallback to system clock when not', () => {
  // Mock a header value
  const headerTime = '2023-01-01T12:00:00.000Z';
  
  // Test with header value
  meeting.setIsoLocalClientMeetingJoinTime(headerTime);
  assert.equal(meeting.isoLocalClientMeetingJoinTime, headerTime);
  
  // Reset for fallback test
  meeting = new Meeting({});
  
  // Test fallback to system clock
  const beforeSet = new Date().toISOString();
  meeting.setIsoLocalClientMeetingJoinTime(undefined);
  const afterSet = new Date().toISOString();
  
  // Verify time is between before and after (proving it used system clock)
  const actualTime = meeting.isoLocalClientMeetingJoinTime;
  assert.isTrue(
    beforeSet <= actualTime && actualTime <= afterSet,
    `Expected ${actualTime} to be between ${beforeSet} and ${afterSet}`
  );
});
🧹 Nitpick comments (2)
packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (1)

211-211: Missing initialization for test variable.

The isoLocalClientMeetingJoinTime variable is declared but doesn't appear to be initialized before it's used in the tests. This could lead to unpredictable test behavior.

You should initialize this variable in the beforeEach block to ensure consistent test behavior.

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

1642-1653: Implementation of the meeting joined time header looks good.

The newly added setter method for isoLocalClientMeetingJoinTime appropriately handles both cases where a time value is provided or not. When no time is provided, it correctly uses the current date in ISO format as a fallback.

However, I noticed that there was a previous concern about the behavior when a user rejoins a meeting: the current implementation will overwrite the join time on rejoin, as the method doesn't check if a value is already set. This may be intended behavior, but it's worth confirming that we want to track the most recent join time rather than preserving the first join time.

Consider adding a check to prevent overwriting the join time value if it's already set:

set isoLocalClientMeetingJoinTime(time: string | undefined) {
+  // Only set this value if it hasn't been set before
+  if (this.#isoLocalClientMeetingJoinTime === undefined) {
    if (!time) {
      this.#isoLocalClientMeetingJoinTime = new Date().toISOString();
    } else {
      this.#isoLocalClientMeetingJoinTime = time;
    }
+  }
}

This would ensure we always keep the first join time regardless of rejoins.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 8412d60 and 04327a5.

📒 Files selected for processing (3)
  • packages/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic/call-diagnostic-metrics.ts (2 hunks)
  • packages/@webex/plugin-meetings/src/meeting/index.ts (1 hunks)
  • packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Build Packages
  • GitHub Check: AWS Amplify Console Web Preview
🔇 Additional comments (3)
packages/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic/call-diagnostic-metrics.ts (3)

63-67: Implementation of meeting join time in test fixtures.

The addition of fakeMeeting4 with the isoLocalClientMeetingJoinTime property provides a proper test fixture for the new join time functionality.


73-73: Good test setup: fakeMeeting4 added to fakeMeetings map.

Correctly adds the new test fixture to the map for use in tests.


1079-1215: Well-implemented test case for meeting join time functionality.

This test thoroughly validates that when a meeting has an isoLocalClientMeetingJoinTime property, it's correctly passed through to the client event payload as meetingJoinedTime. The test properly:

  1. Sets up the necessary spies
  2. Executes the submitClientEvent method with fakeMeeting4
  3. Verifies that all relevant methods receive the meetingJoinedTime parameter
  4. Confirms the value matches fakeMeeting4.isoLocalClientMeetingJoinTime

This effectively tests the core functionality required for SPARK-555657, ensuring that meeting join time is properly captured in the metrics system.

@chrisadubois chrisadubois merged commit aa64df3 into webex:next Mar 27, 2025
13 checks passed
chrisadubois added a commit that referenced this pull request Apr 1, 2025
@coderabbitai coderabbitai bot mentioned this pull request Apr 1, 2025
11 tasks
chrisadubois added a commit to chrisadubois/spark-js-sdk that referenced this pull request Apr 1, 2025
@coderabbitai coderabbitai bot mentioned this pull request Apr 1, 2025
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked validated If the pull request is validated for automation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants