-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat: add hmmm
log level to onyx
#39076
Conversation
@kirillzyusko thanks for your PR TSC checks are failing |
@lakchote it's kind of expected, because this PR relies on Expensify/react-native-onyx#524 I think the correct action would be to merge PR in Onyx, then publish a new version, and then use a new version here and merge this PR. Am I right? |
Exactly, that'd be the way to go 👍 |
@lakchote I bumped, but it looks like latest version of @marcaaron Is it a known issue? 👀 |
Hmmm... not sure about the TS checks to be honest. Maybe we can ask in the Slack channel. There was a problem with Onyx not automatically deploying a new package version. I believe it was resolved, but maybe that is related. @roryabraham I think we just need to bump to the latest, but use the commit from here: |
hmmm
log level to onyxhmmm
log level to onyx
Thank you for the bump! The process now is to do a full regression testing on web and some native platform by QA on any new onyx bump. Given we havent been able to bump in a while there is a backlog and we are adding Regression completed there and we need to resolve/ confirm if 3 issues are related to the onyx changes or not. Its looking promising but lets wait for that PR to make it to production in case we would need to make any revert/ hotfixes in Onyx. Also noting that the TS errors been fixed on that PR, jest units still failing I think |
@@ -40,6 +40,8 @@ Onyx.registerLogger(({level, message}) => { | |||
if (level === 'alert') { | |||
Log.alert(message); | |||
console.error(message); | |||
} else if (level === 'hmmm') { | |||
Log.hmmm(message); |
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.
I think we can get this part merged now - it will start working once the version is bumped. Can you remove the package.json stuff?
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.
@marcaaron I reverted but now it throws expected TS compilation problem, because level
definition comes from onyx
and current version from main
doesn't have a new type hmmm
yet 🤔
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.
Ok, I see. Then let's update the type and then we can hold this one some more.
This PR is not too critical since the default is to do an info
instead of hmm
so we can just fix the types then come back and bump this one again.
hmmm
log level to onyxhmmm
log level to onyx
What's the latest here? This looks ready to merge to me apart from the TS checks. |
I'd like the TS checks to pass, you'd like to proceed without it? |
7324440
to
8f08c43
Compare
@marcaaron @lakchote I fixed TS errors 👍 Would love to see it being merged 😊 |
Thank you both @marcaaron @kirillzyusko for your involvement in this! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
LOL, no, but I can see the confusion there. Just asking for the status update 😄 And now we are ready for merge 😂 |
Haha yes, I was confused 😄 Now that I've read it again it was clear. Good thing we've merged this one! |
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.70-5 🚀
|
Details
Added
hmmm
logger to Onyx.Fixed Issues
$ Expensify/react-native-onyx#485 (comment)
PROPOSAL: N/A
Tests
N/A
Offline tests
N/A
QA Steps
N/A
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop