Change Fullstory recording start conditions#50516
Conversation
|
@paultsimura @ 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] |
|
No need for C+ testing here. |
|
The lint error is:
This is not related to any changes I'm doing in this PR, and I'm not sure how changing those would impact the PR app. @AndrewGable should I implement those either way? |
|
Yes I think we are supposed to update any of them that are included in the files changed, is it a big change? |
|
Not huge: Lines 309 to 333 in e8c4fdc |
|
I'd prefer to include it then just to follow our process |
|
|
||
| // Initialize Fullstory lib | ||
| FS.init(); | ||
| FS.init(userMetadata); |
There was a problem hiding this comment.
@AndrewGable We don't need to rerun useLayoutEffect when userMetadata changes since that will be updated through another flow. Will userMetadata be available inside useLayoutEffect if it's not part of the dependencies?
There was a problem hiding this comment.
This is giving a warning:
155:8 warning React Hook useLayoutEffect has a missing dependency: 'userMetadata'. Either include it or remove the dependency array react-hooks/exhaustive-deps
There was a problem hiding this comment.
Yes I believe it should be available still, however, this function will just be run once on initial render and that's it.
There was a problem hiding this comment.
That's fine, the next runs will happen when user_metadata key is updated. Added a linter disable here.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
bump @AndrewGable, if we can try to merge this today it'd be great! |
|
✋ 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/AndrewGable in version: 9.0.50-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.50-8 🚀
|
| updateRequired: { | ||
| key: ONYXKEYS.UPDATE_REQUIRED, | ||
| initWithStoredValues: false, | ||
| }, |
There was a problem hiding this comment.
@danieldoglas I think there's a very likely possibility this change has been leading to issues with the updateRequired logic. The intended behavior is that this value will only be true when it is explicitly set to true AFTER the component has mounted. If the value gets stuck on true then the user will get stuck and be unable to upgrade since they'd be on the correct version already, but have out of date Onyx values.
|
@AndrewGable I think we should revert the |
|
Oh I see you can pass |
| const [lastRoute] = useOnyx(ONYXKEYS.LAST_ROUTE); | ||
| const [userMetadata] = useOnyx(ONYXKEYS.USER_METADATA); | ||
| const [shouldShowRequire2FAModal, setShouldShowRequire2FAModal] = useState(false); | ||
| const [isCheckingPublicRoom] = useOnyx(ONYXKEYS.IS_CHECKING_PUBLIC_ROOM); |
There was a problem hiding this comment.
We should keep the default value of isCheckingPublicRoom = true as previously, there is a hidden bug that cause login page briefly shown when navigate via public room link as anonymous. More details here: #64638 (comment)
Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/434803
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop