-
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
[Due for payment 2025-02-18] [$250] All members should be able to post in the workspace chat and Who can post
option should not have Admins only
#55820
Comments
Triggered auto assignment to @johncschuster ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.All members should be able to post in the workspace chat and Who can post option should not have Admins only What is the root cause of that problem?We don't filter the options here on App/src/pages/settings/Report/WriteCapabilityPage.tsx Lines 37 to 42 in 50df6eb
What changes do you think we should make in order to solve the problem?Add a filter to const writeCapabilityOptions = Object.values(CONST.REPORT.WRITE_CAPABILITIES)
.filter((value) => !isPolicyExpenseChat(report) || value === CONST.REPORT.WRITE_CAPABILITIES.ALL)
.map((value) => ({
value,
text: translate(`writeCapabilityPage.writeCapability.${value}`),
keyForList: value,
isSelected: value === (report?.writeCapability ?? CONST.REPORT.WRITE_CAPABILITIES.ALL),
})); What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)We could remove the App/src/pages/settings/Report/ReportSettingsPage.tsx Lines 68 to 91 in 50df6eb
{shouldShowWriteCapability && (
<View style={[styles.ph5, styles.pv3]}>
<Text
style={[styles.textLabelSupporting, styles.lh16, styles.mb1]}
numberOfLines={1}
>
{translate('writeCapabilityPage.label')}
</Text>
<Text
numberOfLines={1}
style={[styles.optionAlternateText, styles.pre]}
>
{writeCapabilityText}
</Text>
</View>
)} Result |
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The admin can change the write capability to admins only on a workspace chat. What is the root cause of that problem?Currently, the condition to decide whether the user can change the write capability or not is this. Lines 7696 to 7698 in 50df6eb
There is no check whether the report is a workspace chat or not. What changes do you think we should make in order to solve the problem?Add a check for workspace chat too, so it returns false when it's a workspace chat.
This will not allow the user to click the Who can post and a not found show is shown if the user directly accesses the page through url. we can add more condition if needed What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can do unit test for |
Who can post
option should not have Admins only
Who can post
option should not have Admins only
Job added to Upwork: https://www.upwork.com/jobs/~021885116331419624859 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
@johncschuster, @rayane-djouah Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Sorry for the delay; I was sick at the end of last week. I'll review the issue today. |
I wouldn't say this is a migration issue (despite being reported there) as chat isn't part of Classic. So I'd suggest moving this to #retain. |
@bernhardoj's proposal looks good to me. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @puneetlath, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @rayane-d 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
PR is ready cc: @rayane-d |
Who can post
option should not have Admins only
Who can post
option should not have Admins only
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.95-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2025-02-18. 🎊 For reference, here are some details about the assignees on this issue:
|
@rayane-d @johncschuster @rayane-d The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
@puneetlath @johncschuster @bernhardoj @rayane-d this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Payment SummaryContributor: @bernhardoj owed $250 via NewDot @rayane-d I see you are now on the list of contributors that can accept payment via NewDot and I've modified the payment summary to reflect that. Let me know if you need me to issue payment via Upwork instead! |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:Do we agree 👍 or 👎 |
Requested in ND. |
$250 approved for @bernhardoj |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
Requested in NewDot |
$250 approved for @rayane-d |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.89-7
Reproducible in staging?: y
Reproducible in production?: y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @danielrvidal
Slack conversation (hyperlinked to channel name): migrate
Action Performed:
Expected Result:
Admins only
Shouldn't be an option as all members can postActual Result:
There is an option for the employees to not allow to post
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Recording.929.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @johncschusterThe text was updated successfully, but these errors were encountered: