-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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/15048: Add successData into DeleteMembersFromWorkspace API #17078
Conversation
@grgia @aimane-chnaif 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] |
@aimane-chnaif Could you help to check this PR? |
on it |
Co-authored-by: Aimane Chnaif <96077027+aimane-chnaif@users.noreply.github.com>
src/libs/actions/Policy.js
Outdated
const successData = [{ | ||
onyxMethod: CONST.ONYX.METHOD.MERGE, | ||
key: membersListKey, | ||
value: _.object(members, Array(members.length).fill(null)), | ||
}]; |
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.
(NAB) Also, let's move this between optimisticData and failureData
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.
Just updated
Pusher seems stable at the moment. I am not able to reproduce pusher event received after api response, so cannot check the benefit of this PR. |
@aimane-chnaif Could you disable the Pusher before testing this PR? |
what is your best way of doing this? |
We can comment entire lines Lines 128 to 177 in 64f4a78
So that when receiving the eventdata from BE, The app will not update data to ONYX |
ok, force updating this to true should be enough Line 128 in 64f4a78
|
@tienifr this description needs updated. I tested on physical android device and it usually takes a few seconds (or more) to be online after turn on wifi.
|
@aimane-chnaif I just updated the description. Thanks for your comments |
Reviewer Checklist
Screenshots/VideosWebwith pusher with.pusher.movwithout pusher without.pusher.movMobile Web - Chromeandroid.mp4Mobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.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, tests as expected.
Note for QA team: this doesn't completely fix original issue, so it will fail when they quickly switch network (offline -> online -> offline) which isn't enough time to get api response.
@grgia all you!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/grgia in version: 1.2.98-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.2.98-2 🚀
|
Details
As soon as we receive a successful response, we ought to remove the user from Onyx without waiting for a pusher event. This will not fix the issue completely but make it harder to reproduce
Fixed Issues
$ #15048
PROPOSAL: #15048 (comment)
Tests
Offline tests
None
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting 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)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
228515935-e51a54dc-099d-4442-981f-c13c1c3467b7.mp4
Mobile Web - Chrome
15048chorme.mp4
Mobile Web - Safari
Screen.Recording.2023-04-06.at.23.06.23.mp4
Desktop
Screen.Recording.2023-04-06.at.23.09.03.mp4
iOS
Screen.Recording.2023-04-06.at.23.36.19.mp4
Android
Screen.Recording.2023-04-07.at.00.40.13.mp4