Repository navigation
Conversation
…unsubscribe() Co-Authored-By: Fabio Henriques <fabioh8010@gmail.com>
Contributor
|
|
42 tasks done
Codecov Report✅ All modified and coverable lines are covered by tests. |
…bdd5 # Conflicts: # tests/actions/IOU/MoneyRequestSettersTest.ts # tests/actions/IOUTest/SplitTest.ts # tests/actions/IOUTest/UpdateMoneyRequestTest.ts
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
For testing react-native-onyx PR: Expensify/react-native-onyx#884
Only real change is pinning to onyx commit
40d1c56Fixed Issues
$
PROPOSAL:
Tests
rm -rf node_modules && npm cigrep -n '"react-native-onyx"' package.jsonreturnsgithub:Expensify/react-native-onyx#40d1c56c79faab96cb4149309a5f9ac8161b1a2fgrep -n 'react-native-onyx.git#' package-lock.jsonreturnsgit+ssh://git@github.com/Expensify/react-native-onyx.git#40d1c56c79faab96cb4149309a5f9ac8161b1a2f3.0.148, the same as the npm release, sincepackage.jsonin the onyx repo is not bumped on every commit. The version alone does not prove the pin, so step 3 matters.3.0.148and from the previouscb8bdd5:grep -rln "addRemovedInOtherInstanceKey" node_modules/react-native-onyx/dist/hitsOnyx.js,OnyxCache.js,OnyxCache.d.tsgrep -rln "hasRemovedInOtherInstanceKey" node_modules/react-native-onyx/dist/hitsOnyxCache.js,OnyxCache.d.ts,OnyxSubscriptionManager.jsgrep -rn "Sync removed a key while this tab was writing it" node_modules/react-native-onyx/dist/returns nothing. That log was deliberate incb8bdd5ande057b8fbremoved it.grep -rn "Cache held no value for a key storage still has" node_modules/react-native-onyx/dist/hitsOnyxSubscriptionManager.js.npm run web(ornpm run desktop), sign in, and use the app normally: navigate chats, send a message, open a workspace. Verify the app boots and noOnyx.disconnect is not a functionerror appears in the console.Onyx.registerLoggerat levelhmmm(src/Expensify.tsx:48) and surfaces as[Onyx] ...viaLog.hmmm. It is expected to be rare rather than on every launch:Cache held no value for a key storage still has: <key>fires once per collection key when the memory cache holds no value for a key that storage still has. Any platform. In this commit it is additionally silenced for keys another tab removed, which is the behaviour onyx#884 is testing, so the point of watching for it is that it should now appear less often than oncb8bdd5.Sync removed a key...message from the earlier pin no longer exists, so there is nothing to watch for there.Offline tests
Not run. The cache-miss diagnostic reads from storage, so it is worth watching for the message above while going offline, navigating around, and reconnecting.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Testing build for an unpublished Onyx commit, not intended to merge. Adhoc builds install dependencies from the npm registry, so they would not pick up this pin.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.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
Not tested.
Android: mWeb Chrome
Not tested.
iOS: Native
Not tested.
iOS: mWeb Safari
Not tested.
MacOS: Chrome / Safari
Not tested in a browser. Verified locally with
npm run typecheck,npm run lint-changedandnpm run react-compiler-compliance-check check-changed(all green), plus Jest on the Onyx-heavy suites:OnyxUpdateManagerTest,MiddlewareTest,OnyxDerivedTest,SequentialQueueTest,OnyxDerivedRestoredValueTest,OnyxDerivedSelfHealTest(170 tests passed).lint-changedreports "No lintable files changed" since onlypackage.jsonandpackage-lock.jsondiffer from main.