-
Notifications
You must be signed in to change notification settings - Fork 40
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: update meeting name after fetch meetinginfo #342
Conversation
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.
Please add screen-recording or screenshot for manual testing done in the PR description
src/MeetingsSDKAdapter.js
Outdated
@@ -595,9 +595,11 @@ export default class MeetingsSDKAdapter extends MeetingsAdapter { | |||
)), | |||
tap((meeting) => { | |||
const sdkMeeting = this.fetchMeeting(meeting.ID); | |||
const updatedTitle = sdkMeeting.meetingInfo.topic || meeting.title; | |||
const updatedMeeting = {...meeting, title: updatedTitle}; |
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.
Did we try updating the meeting object itself here with updated title instead of creating new object?
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.
Addressed
src/MeetingsSDKAdapter.test.js
Outdated
@@ -450,6 +450,40 @@ describe('Meetings SDK Adapter', () => { | |||
}); | |||
}); | |||
|
|||
it('should emit EVENT_MEETING_UPDATED with the updated title from sdkMeeting.meetingInfo.topic', (done) => { | |||
// Mock implementations | |||
meetingsSDKAdapter.fetchMeetingTitle = jest.fn(() => Promise.resolve('my meeting')); |
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.
Why do we need this mock as I can the mock needed is the one with meetingInfo.topic?
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.
addressed
src/MeetingsSDKAdapter.js
Outdated
this.meetings[meeting.ID] = meeting; | ||
sdkMeeting.emit(EVENT_MEETING_UPDATED, meeting); | ||
this.meetings[meeting.ID] = updatedMeeting; | ||
sdkMeeting.emit(EVENT_MEETING_UPDATED, updatedMeeting); |
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.
Did we test all the scenarios of joining the meeting and confirmed that the title appears in all the cases correctly?
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.
yes, attached screenshots
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.
Test different options : Join meeting using Person ID, email and SIP URI and verify title works in all three
src/MeetingsSDKAdapter.js
Outdated
@@ -634,6 +637,13 @@ export default class MeetingsSDKAdapter extends MeetingsAdapter { | |||
try { | |||
const sdkMeeting = this.fetchMeeting(ID); | |||
|
|||
// eslint-disable-next-line no-console | |||
console.log('ravi joinMeeting sdkMeeting ', sdkMeeting); |
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.
Please remove this console logs before merge
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.
removed
@@ -661,6 +671,10 @@ export default class MeetingsSDKAdapter extends MeetingsAdapter { | |||
}), | |||
})); | |||
} else { | |||
// update the meeting title if available after password verification |
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.
Why did we need this code and above now?
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.
removed from above
## [1.112.11](v1.112.10...v1.112.11) (2024-10-10) ### Bug Fixes * update meeting name after fetch meetinginfo ([#342](#342)) ([20a46f8](20a46f8))
🎉 This PR is included in version 1.112.11 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Issue: Meeting name not showing in meeting widget instead it shows sip address.
Fix: added update title code in fetchMeetingInfo.topic
https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-566707
![Screenshot 2024-10-09 at 7 27 58 PM](https://github.com/u
ser-attachments/assets/8e1c0bb1-686a-41a0-9bb6-da2a5398a4c7)