[CP Staging & Production] Make export onyx state feature have a whitelist of things we can export and have it redact everything else#72932
Conversation
Codecov Report❌ Patch coverage is
... and 12 files with indirect coverage changes 🚀 New features to boost your workflow:
|
| [ONYXKEYS.CARD_LIST]: { | ||
| allowList: ['accountID', 'bank', 'isVirtual', 'cardID'], | ||
| maskList: ['lastFourPAN', 'nameOnCard'], | ||
| }, |
There was a problem hiding this comment.
I temporary put some keys that I think we need them to be masked and keys that I think we they should be in white list. Please let me know if there are any new keys need to be here. I will update them accordingly
|
Here is the sample exported data based on current configuration |
|
@ishpaul777 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] |
mjasikowski
left a comment
There was a problem hiding this comment.
@ishpaul777 I'll have to review and merge this one, as we've seen some unwanted keys exported, so it's time senstitive
(cherry picked from commit 517b82a) (cherry-picked to staging by mountiny)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.2.36-7 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.2.36-7 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.2.37-1 🚀
|
|
@mjasikowski @ishpaul777 @mkzie2 Hi there! If I try to import onyx state, exported after this PR was merged, the app craches for me! Steps:
|
|
@VickyStash I'll look into this today, thanks |
|
@VickyStash this will be fixed in #73428 |
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.2.37-8 🚀
|
| }, | ||
| [ONYXKEYS.COLLECTION.REPORT]: { | ||
| allowList: [ | ||
| 'reportID', |
There was a problem hiding this comment.
Missing read-state fields (like lastReadTime) which then caused the issue #87517
Explanation of Change
Fixed Issues
$ #71334
PROPOSAL: #71334 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov