-
Notifications
You must be signed in to change notification settings - Fork 355
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(plugin-cc): added-call-control #4015
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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 (
|
@@ -53,7 +53,7 @@ export class ConnectionService extends EventEmitter { | |||
isKeepAlive: this.isKeepAlive, | |||
}; | |||
this.webSocketManager.handleConnectionLost(event); | |||
LoggerProxy.log(`Dispatching connection lost event`, { | |||
LoggerProxy.log(`Dispatching connection event`, { |
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.
This log was misleading, hence I modified it.
@@ -86,5 +86,92 @@ export default class Task implements ITask { | |||
} | |||
} | |||
|
|||
// TODO: Hold/resume, recording pause/resume, consult and transfer public methods to be implemented here | |||
/** | |||
* This is used to hold the task. |
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.
Have added comments, documentation and methods for each call control. Note that the promise accept/reject is handled in aqm-reqs and we supply the events in the contacts.ts of the task folder (as done in Priya's PR). Everything works smoothly.
Note - Currently I have set the destination as Priya's PR branch, will change once her PR goes in. Need to wait for one unit test fix on her PR also. |
Added new dropdown for wrapup in call control as per Ravi's advice. Made a new vidcast and attached. Tested all other flows as well and everything is working fine. |
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.
Minor comments, more focus is on covering the test scnearios mentioned
packages/@webex/plugin-cc/src/services/core/websocket/connection-service.ts
Show resolved
Hide resolved
packages/@webex/plugin-cc/test/unit/spec/services/task/index.ts
Outdated
Show resolved
Hide resolved
packages/@webex/plugin-cc/test/unit/spec/services/task/index.ts
Outdated
Show resolved
Hide resolved
* task.pauseRecording().then(()=>{}).catch(()=>{}); | ||
* ``` | ||
*/ | ||
public async pauseRecording(): Promise<TaskResponse> { |
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.
Added pause and resume, tested it out on the updated vidcast.
this.webCallingService.unregisterCallListeners(); | ||
} | ||
break; | ||
case CC_EVENTS.AGENT_WRAPUP: |
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.
Need this in case user on other end drops off... there is an issue with the reading of events.
Will sync and look into this issue.
….com/Kesari3008/webex-js-sdk into dev/adhmenon-SPARK-562170
…th multiple login/logout
….com/Kesari3008/webex-js-sdk into dev/adhmenon-SPARK-562170
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.
Minor comments
packages/@webex/plugin-cc/test/unit/spec/services/task/TaskManager.ts
Outdated
Show resolved
Hide resolved
….com/Kesari3008/webex-js-sdk into dev/adhmenon-SPARK-562170
….com/Kesari3008/webex-js-sdk into dev/adhmenon-SPARK-562170
…/adhmenon-SPARK-562170
Merged with main feature branch and tested all cases once again. |
COMPLETES #< SPARK-562170 (Ticket with Logs Attached>
COMPLETES #< SPARK-562180>
COMPLETES #< SPARK-569541>
COMPLETES #< SPARK-562179>
This pull request addresses
by making the following changes
Task
class, we call the respective APIs for hold, resume, end and wrapup.Vidcast - https://app.vidcast.io/share/c2b25b2c-d316-4e41-bbcd-26cced6bc863
Change Type
The following scenarios were tested
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.