-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Prevent infinite loop in notificationPreference switcher #12728
Conversation
@eVoloshchak @srikarparsi One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2022-11-16.at.16.09.34.movMobile Web - Chrome22-11-16-16-15-33.mp4Mobile Web - SafariRPReplay_Final1668609957.MP4DesktopScreen.Recording.2022-11-16.at.16.37.03.moviOSRPReplay_Final1668609704.MP4Android22-11-16-16-13-12.mp4 |
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.
Looks good and tests well!
hey @roryabraham, the code changes look good to me and I don't think this is related to this PR but my results are different than your screen recording. I'm able to click the save button while offline and the name switches to Chat Report instead of the new report name. Is this something worth looking at in this PR or is this another issue. Also could it be something I'm doing wrong? Screen.Recording.2022-11-16.at.7.18.19.PM.mov |
I saw this too. I think we should address it with a separate issue. |
sounds good, will merge. Are you planning on creating the issue with the chat room name or would you like me to? |
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.
looks good to me
@srikarparsi looks like this was merged without the checklist test passing. Please add a note explaining why this was done and remove the |
🚀 Deployed to staging by @srikarparsi in version: 1.2.29-2 🚀
|
🚀 Deployed to production by @AndrewGable in version: 1.2.29-7 🚀
|
Details
Prevents an issue where the notification preference changes in an infinite loop.
Fixed Issues
$ #11262 (partial)
Tests / QA Steps
settings
Save
PR Author Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Screenshots
Screen.Recording.2022-11-14.at.3.37.46.PM.mov