[Onyx Audit] Remove try/catch block from getCollectionKey#737
Merged
roryabraham merged 4 commits intoExpensify:mainfrom Feb 19, 2026
Conversation
fabioh8010
reviewed
Feb 18, 2026
fabioh8010
approved these changes
Feb 19, 2026
Contributor
|
@ChavdaSachin will test |
|
Is it urgent? or is it alright if I review tomorrow |
Contributor
|
Tomorrow is ok |
neil-marcellini
approved these changes
Feb 19, 2026
Contributor
neil-marcellini
left a comment
There was a problem hiding this comment.
Looks good. Please update the pull request description to have a short explanation of the change, or link to the issue and say that is explained there. All PRs should have an explanation.
I will also tag @roryabraham for review because it sounds like he's the one who originally requested this.
| return false; | ||
| } | ||
| const collectionKey = getCollectionKey(key); | ||
| // If the key is longer than the collection key, it's a collection member |
Contributor
There was a problem hiding this comment.
NAB: please put a blank line above comments.
roryabraham
approved these changes
Feb 19, 2026
Contributor
Contributor
|
@ChavdaSachin Please test the onyx bump |
|
On it |
|
LGTM 👍 Bump tests well, except for these warnings being handled here |
Contributor
|
I think @JKobrynski still has to make the onyx bump pr |
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.
Details
Related Issues
$ Expensify/App#81830
Automated Tests
Unit test covering related logic was added.
Manual Tests
As this is a minor change that only slightly alters how the library handles some edge cases, we just need to test the basic flows of the app and make sure everything works correctly, especially the following:
Everything worked correctly in my tests.
Author Checklist
### Related Issuessection aboveTestssectiontoggleReportand notonIconClick)myBool && <MyComponent />.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)Avataris modified, I verified thatAvataris working as expected in all cases)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
web-compressed.mov
MacOS: Desktop