Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.44k stars 2.8k forks source link

[CRITICAL] [$250] #announce room should default to 'Admins Only' for posting #42417

Open garrettmknight opened 4 months ago

garrettmknight commented 4 months ago

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: v1.4.73-7 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): N/A Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: N/A Issue reported by: @garrettmknight Slack conversation: https://expensify.slack.com/archives/C05RECHFBEW/p1715886822520169

Action Performed:

  1. Create a workspace
  2. Navigate to the #announce room for your new workspace
  3. Open the chat settings

Expected Result:

Who can post should be defaulted to Admin only as it was designed in this doc

Actual Result:

Who can post is set to All members

Workaround:

You can set it to admins only.

Platforms:

All

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d20a5670a3bdd03e
  • Upwork Job ID: 1792954078450966528
  • Last Price Increase: 2024-08-08
  • Automatic offers:
    • nkdengineer | Contributor | 102491174
Issue OwnerCurrent Issue Owner: @danieldoglas
melvin-bot[bot] commented 4 months ago

Triggered auto assignment to @miljakljajic (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

nkdengineer commented 4 months ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

Who can post is set to All members

What is the root cause of that problem?

When we create a new workspace, the announce room has writeCapability as undefined in optimistic data and then BE returns it as all.

https://github.com/Expensify/App/blob/e8ae3c5acedf0e6788dc574c7b6f3043ca37092a/src/libs/ReportUtils.ts#L4710

What changes do you think we should make in order to solve the problem?

We should pass writeCapability as CONST.REPORT.WRITE_CAPABILITIES.ADMINS here to fix the offline case for announce room

https://github.com/Expensify/App/blob/e8ae3c5acedf0e6788dc574c7b6f3043ca37092a/src/libs/ReportUtils.ts#L4710

And BE also need to return writeCapability of announce room as admin in CreateWorkspace API

What alternative solutions did you explore? (Optional)

NA

melvin-bot[bot] commented 4 months ago

Job added to Upwork: https://www.upwork.com/jobs/~01d20a5670a3bdd03e

melvin-bot[bot] commented 4 months ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (External)

eVoloshchak commented 4 months ago

The fix is pretty straightforward, @nkdengineer's proposal looks good to me! Changes to BE would also be needed

πŸŽ€πŸ‘€πŸŽ€ C+ reviewed!

melvin-bot[bot] commented 4 months ago

Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

melvin-bot[bot] commented 4 months ago

@eVoloshchak, @lakchote, @miljakljajic Eep! 4 days overdue now. Issues have feelings too...

lakchote commented 4 months ago

@nkdengineer's proposal LGTM.

I'll take care of the BE changes.

melvin-bot[bot] commented 4 months ago

πŸ“£ @nkdengineer πŸŽ‰ An offer has been automatically sent to your Upwork account for the Contributor role πŸŽ‰ Thanks for contributing to the Expensify app!

Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review πŸ§‘β€πŸ’» Keep in mind: Code of Conduct | Contributing πŸ“–

nkdengineer commented 4 months ago

We have a draft PR here @lakchote please let me know when BE is done

melvin-bot[bot] commented 4 months ago

@eVoloshchak, @lakchote, @miljakljajic, @nkdengineer Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] commented 4 months ago

@eVoloshchak @lakchote @miljakljajic @nkdengineer 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!

melvin-bot[bot] commented 4 months ago

@eVoloshchak, @lakchote, @miljakljajic, @nkdengineer 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

garrettmknight commented 4 months ago

Lucien is on parental leave. @miljakljajic Let's find another internal engineer to sort out the BE changes.

melvin-bot[bot] commented 4 months ago

Current assignee @miljakljajic is eligible for the Bug assigner, not assigning anyone new.

miljakljajic commented 4 months ago

@eVoloshchak can you type this again, Lucien is on leave and we're trying to trigger a new internal engineer:

πŸŽ€πŸ‘€πŸŽ€ C+ reviewed!

johncschuster commented 4 months ago

Following this one as it's a very big pain point for Recorded Future that their non-admins can post to the #announce room by default.

eVoloshchak commented 4 months ago

πŸŽ€πŸ‘€πŸŽ€ C+ reviewed!

melvin-bot[bot] commented 4 months ago

Triggered auto assignment to @danieldoglas, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

melvin-bot[bot] commented 3 months ago

@danieldoglas, @eVoloshchak, @miljakljajic, @nkdengineer Whoops! This issue is 2 days overdue. Let's get this updated quick!

miljakljajic commented 3 months ago

@danieldoglas are you good to assist with the BE changes required here?

danieldoglas commented 3 months ago

Yes, I will.

danieldoglas commented 3 months ago

Backend PR created

danieldoglas commented 3 months ago

This is WIP, we need to change some automated tests on web so we can deploy it.

melvin-bot[bot] commented 3 months ago

@danieldoglas, @eVoloshchak, @miljakljajic, @nkdengineer Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

miljakljajic commented 3 months ago

work continues on this one

melvin-bot[bot] commented 3 months ago

@danieldoglas @eVoloshchak @miljakljajic @nkdengineer this issue is now 4 weeks old, please consider:

Thanks!

danieldoglas commented 3 months ago

Yep, still working, other things took priority for now.

melvin-bot[bot] commented 3 months ago

@danieldoglas, @eVoloshchak, @miljakljajic, @nkdengineer Eep! 4 days overdue now. Issues have feelings too...

miljakljajic commented 3 months ago

still WIP

melvin-bot[bot] commented 3 months ago

@danieldoglas, @eVoloshchak, @miljakljajic, @nkdengineer Still overdue 6 days?! Let's take care of this!

danieldoglas commented 3 months ago

Still need to work on the Web part of the changes, Auth is done.

miljakljajic commented 2 months ago

Still working

danieldoglas commented 2 months ago

Yep. Lower priority compared to fast APIs now

danieldoglas commented 2 months ago

I'll be OOO during the next 2 weeks - I'll finish this one once I'm back.

danieldoglas commented 2 months ago

back from OOO

melvin-bot[bot] commented 1 month ago

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

nkdengineer commented 1 month ago

@danieldoglas friendly bump

danieldoglas commented 1 month ago

Sorry, there are some other competing priorities which are taking some time before this.

danieldoglas commented 1 month ago

All backend PRs were created. We need to wait for the reviews/deploys - probably done by the end of the week

danieldoglas commented 1 month ago

Last backend PR was merged, should be deployed Monday and we can close this.

danieldoglas commented 1 month ago

This is done in the backend. @nkdengineer all yours to finish the app pr

nkdengineer commented 1 month ago

@danieldoglas thank you, I'm working on this PR now

nkdengineer commented 1 month ago

@danieldoglas Currently, after creating a new workspace, I am unable to access the announce room.

https://github.com/user-attachments/assets/2f7cf737-e4a9-4144-9f2e-d680b5f96365

danieldoglas commented 1 month ago

You need your workspace with at least 4 people to have an announce room. This was changed recently.

nkdengineer commented 1 month ago

@eVoloshchak this PR is ready for review

garrettmknight commented 3 weeks ago

Merged, awaiting delpoy - should be deployed to staging today.

miljakljajic commented 2 weeks ago

seems like this PR went out over 7 days ago, so I've paid @nkdengineer and providing a payment summary below for @eVoloshchak

@eVoloshchak is owed 250 for their work reviewing this issue.

miljakljajic commented 2 weeks ago

If there are any further actions to take, please assign another BZ team member - I am out on extended leave from the end of the day.

eVoloshchak commented 3 days ago