-
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
[CP Staging] Fix unable to add custom tag name in a new workspace #42734
Conversation
@mananjadhav 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] |
ios/Podfile.lock
Outdated
@@ -1852,7 +1852,7 @@ PODS: | |||
- RNGoogleSignin (10.0.1): | |||
- GoogleSignIn (~> 7.0) | |||
- React-Core | |||
- RNLiveMarkdown (0.1.70): |
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.
why do we have the Podfile.lock changes in this one?
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.
Missed to restore this change when running IOS.
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.
Reverted this change.
src/libs/actions/Policy/Policy.ts
Outdated
@@ -3792,6 +3792,27 @@ function enablePolicyTags(policyID: string, enabled: boolean) { | |||
}, | |||
], | |||
}; | |||
const policyTagList = allPolicyTags?.[policyID]; | |||
if (!policyTagList) { |
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.
do we need an isEmpty
check here?
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 don't need policyTagList
will never be an empty object.
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-custom-tags.movAndroid: mWeb Chromemweb-chrome-custom-tags.moviOS: Nativeios-custom-tags.moviOS: mWeb Safarimweb-safari-custom-tags.movMacOS: Chrome / Safariweb-custom-tags.movMacOS: Desktopdesktop-custom-tags.mov |
@cristipaval Please help to review the PR when you have a chance. Thanks. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
This should fix this deploy blocker so CPing #42885 |
Fix unable to add custom tag name in a new workspace (cherry picked from commit 92a7b15)
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.78-5 🚀
|
Details
Fix unable to add custom tag name in a new workspace
Fixed Issues
$ #42205
$ #42885
PROPOSAL: #42205 (comment)
Tests
Offline tests
Same as above
QA Steps
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
Screen.Recording.2024-05-29.at.11.19.49.mov
Android: mWeb Chrome
Screen.Recording.2024-05-29.at.11.10.24.mov
iOS: Native
Screen.Recording.2024-05-29.at.11.17.59.mov
iOS: mWeb Safari
Screen.Recording.2024-05-29.at.11.13.01.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-29.at.11.04.55.mov
MacOS: Desktop
Screen.Recording.2024-05-29.at.11.21.50.mov