-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Deprecate the default rooms beta for #admins and #announce rooms #18393
Deprecate the default rooms beta for #admins and #announce rooms #18393
Conversation
Asked about test domains here (see QA steps for context) |
@@ -843,7 +843,6 @@ function getMemberInviteOptions( | |||
return getOptions([], personalDetails, { | |||
betas, | |||
searchInputValue: searchValue.trim(), | |||
excludeDefaultRooms: true, |
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.
Just removed this because I found that this param wasn't being used anywhere in getOptions
Adding CP Staging label as there's some urgency around this |
|
…DefaultRoomsBetaExceptForDomainRooms
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.
LGTM! But why CP to staging? Can this not just follow the normal deploy process?
@yuwenmemon Yeah it can, just thought there was some urgency around this. If you don't agree feel free to remove the label. |
@0xmiroslav @PauloGasparSv 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] |
@jasperhuangg yeah better to err on the side of caution IMO. If someone wants it right now we can always CP it later too. |
@jasperhuangg how can I |
Ah @0xmiroslav you need to be an internal employee to do that on your dev environment. You can just test the changes to admins and announce rooms for now. Ignore anything that has anything to do with domain rooms. |
Hey @jasperhuangg I think the steps under "Last viewed report" repeat, is that's intentional? |
@PauloGasparSv fixed them, was a typo, thanks for pointing that out! |
@0xmiroslav will you be able to compete your review today? |
// Include any public announce rooms, since they could include people who should have access but we don't know to add to the beta | ||
if (report.visibility === CONST.REPORT.VISIBILITY.PUBLIC_ANNOUNCE) { | ||
// Include any admins and announce rooms, since only non partner-managed domain rooms are on the beta now. | ||
if (isAdminRoom(report) || isAnnounceRoom(report)) { |
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.
All #admins, #announce rooms are free policy so not able to reach this condition as early returned here:
Lines 1495 to 1497 in 5f649d5
if (getPolicyType(report, policies) === CONST.POLICY.TYPE.FREE) { | |
return true; | |
} |
I had to remove this manually to test this PR properly.
sortedReports = _.filter(sortedReports, report => !isDefaultRoom(report) || isPublicAnnounceRoom(report) | ||
// Domain rooms are now the only type of default room that are on the defaultRooms beta. | ||
sortedReports = _.filter(sortedReports, report => !isDomainRoom(report) | ||
|| getPolicyType(report, policies) === CONST.POLICY.TYPE.FREE |
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.
Same here
Reviewer Checklist
Screenshots/VideosWebweb.mov |
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.
LGTM 🎉
#admins and #announce rooms work well. not able to test domain rooms.
🎯 @0xmiroslav, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #18463. |
✋ 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/jasperhuangg in version: 1.3.11-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.12-0 🚀
|
Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/280874
Tests
Before performing any local tests
|| canUseAllBetas(betas)
from the condition incanUseDefaultRooms
.LHN Options
|| canUseAllBetas(betas)
to the condition incanUseDefaultRooms
.Last viewed report
If you added
|| canUseAllBetas(betas)
to the condition incanUseDefaultRooms
, delete it again.Offline tests
N/A
QA Steps
ping @jasperhuangg to QA
LHN Options
1 Verify that the #admins room for your workspace appears in the LHN
2. Verify that the #announce room for your workspace appears in the LHN.
3. Verify that the #domain.com room does not appear in the LHN
Last viewed report
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-05-04.at.12.37.37.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-05-04.at.12.48.16.PM.mov
Mobile Web - Safari
Screen.Recording.2023-05-04.at.12.52.10.PM.mov
Desktop
iOS
Android