-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: Distance rates - Enabled distance rate changes to Disabled after deleting it. #48859
fix: Distance rates - Enabled distance rate changes to Disabled after deleting it. #48859
Conversation
… deleting it. Signed-off-by: krishna2323 <[email protected]>
@paultsimura Please 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] |
will be working on the other issue today. |
@Krishna2323 any updates on the PR? |
@paultsimura, sorry for the delay. I will provide an update today for sure. |
@paultsimura, I haven't find the solution for the other issue yet but here is the reason why #48290 (comment) is happening.
Please let me know if you know anything about this, I'm trying to find a solution. |
@Krishna2323 thanks for looking into this. This looks like an Onyx bug, I'll report it now. |
@Krishna2323 I think we are good to try again. Let's focus on the "enabled/disabled" change. As a temp solution for the report fields issue:
The full fix should be delivered in Expensify/react-native-onyx#583 |
@paultsimura, where should I add here?: App/src/libs/Network/SequentialQueue.ts Lines 151 to 155 in b1720c7
|
@Krishna2323 here: App/src/libs/actions/Policy/ReportField.ts Lines 43 to 73 in 9ff01cc
|
@paultsimura, I'm not sure if we should make the change to show feedback for optimistic data. App/src/libs/actions/Policy/ReportField.ts Lines 473 to 474 in a935a15
|
@Krishna2323 this change was only to enable testing removal of the "Report Field" list values, as we have to change the "enabled/disabled" behavior there as well. No need to commit the Moreover, the Onyx PR was merged, so you can just use the Onyx Please finish the author checklist and tag me when ready for review. |
Yeah, i'm asking the same, should we change that behaviour? Because the comment ( Do we only need to change the "enabled/disabled" behavior or we also need to change the value removal behaviour? |
Got you, I just didn't look at the referenced code properly, sorry about that. |
@paultsimura, sorry, but I'm still confused about which behavior we should change. Do we want to show the pending action state only when we edit a value, or do we also need to do that when we delete? I don't think we should make changes to the current behavior since it was very recently changed after discussion. |
@paultsimura, please let me know your thoughts on the comment above ^ |
I'm really sorry @Krishna2323 – I was partly available last week and only now was I able to fully dive deep into the matter of the report fields. You are correct – the report fields were implemented this way intentionally because they use an array, not objects, therefore it cannot support pending actions. We should implement the changes only on:
I'll start with the checklist now. Please merge |
Reviewer Checklist
Screenshots/VideosAndroid: Native2024-10-02.-.15.45.-.android.mp4Android: mWeb Chrome2024-10-02.-.15.22.-.chrome.mp4iOS: Native2024-10-02.-.15.06.-.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-10-02.at.15.05.17.mp4iOS: mWeb Safari2024-10-02.-.15.06.-.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-10-02.at.14.47.50.mp4MacOS: Chrome / Safari2024-10-02.-.15.06.-.Screen.Recording.2024-10-02.at.14.44.39.mp4MacOS: Desktop2024-10-02.-.15.22.-.Screen.Recording.2024-10-02.at.14.44.39.mp4 |
Will complete the checklist today. |
@paultsimura, checklist completed. |
Signed-off-by: krishna2323 <[email protected]>
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.
Let's use !!
to cast values to true/false
.
Signed-off-by: krishna2323 <[email protected]>
@paultsimura, all done. |
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.
LGTM ✔️
✋ 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/puneetlath in version: 9.0.46-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.46-5 🚀
|
Details
Fixed Issues
$ #48290
PROPOSAL: #48290 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4