Skip to content
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

Workspace- Workspace name could not be edited/updated #54696

Closed
4 of 8 tasks
mitarachim opened this issue Jan 1, 2025 · 14 comments
Closed
4 of 8 tasks

Workspace- Workspace name could not be edited/updated #54696

mitarachim opened this issue Jan 1, 2025 · 14 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Weekly KSv2

Comments

@mitarachim
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: v9.0.80-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Windows 10 / Chrome, Samsung s10/ Chrome
App Component: Workspace Settings

Action Performed:

  1. Navigate to https://staging.new.expensify.com
  2. Create a WS and navigate to WS profile
  3. Try to edit WS name

Expected Result:

WS name can be edited/ Updated

Actual Result:

WS name could not be edited/ updated

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6704696_1735687069171.bandicam_2025-01-01_02-13-42-508.mp4

View all open jobs on GitHub

@mitarachim mitarachim added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 1, 2025
Copy link

melvin-bot bot commented Jan 1, 2025

Triggered auto assignment to @marcaaron (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Jan 1, 2025

Triggered auto assignment to @mallenexpensify (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.

Copy link

melvin-bot bot commented Jan 1, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jan 1, 2025
Copy link
Contributor

github-actions bot commented Jan 1, 2025

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@mallenexpensify
Copy link
Contributor

mallenexpensify commented Jan 1, 2025

Confirming I am able to reproduce on staging and not on production.
@marcaaron is working ~25% today so he might already be off.

We're not deploying to production on NYE or New Year's Day, right ? Which makes me think that Thurs would be the earliest.

Only issue I could quickly find that looked like it could be related

@NJ-2020
Copy link
Contributor

NJ-2020 commented Jan 1, 2025

Offending PR: #52812

We're changing the param name here from
policyID, name, currencyValue
to
name, currencyValue, policyID

But we're not updating here which is (policyID, name, currencyValue)

Policy.updateGeneralSettings(policy.id, values.name.trim(), policy.outputCurrency);

So inside the onSubmit function here we will exit from updating the workspace name if the policy value is undefined

Since we do not update it here the policyID value is the currencyValue and when we check here it will return true

Policy.updateGeneralSettings(policy.id, values.name.trim(), policy.outputCurrency);

function updateGeneralSettings(name: string, currencyValue?: string, policyID?: string) {
const policy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${policyID}`];
if (!policy || !policyID) {
return;
}

cc: @mallenexpensify


I can raise a PR if needed

Copy link

melvin-bot bot commented Jan 1, 2025

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@Beamanator
Copy link
Contributor

cc @pasyukevich @hungvu193 - messaged y'all in slack, but this may related to your PR

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Jan 1, 2025
@hungvu193
Copy link
Contributor

#54722 is ready!

@Beamanator Beamanator assigned Beamanator and unassigned marcaaron Jan 2, 2025
@Beamanator
Copy link
Contributor

Beamanator commented Jan 2, 2025

PR merged, CPing now

  • no payment needed as this was a regression, also the solution didn't follow the above proposal

@Beamanator
Copy link
Contributor

PR CP'd - @hungvu193 are you free to test in staging?

@hungvu193
Copy link
Contributor

PR CP'd - @hungvu193 are you free to test in staging?

Yep. Checking now

@hungvu193
Copy link
Contributor

Confirm it's fixed on Staging 🎉

Screen.Recording.2025-01-02.at.16.06.09.mov

@Beamanator Beamanator added Daily KSv2 and removed Reviewing Has a PR in review DeployBlockerCash This issue or pull request should block deployment labels Jan 2, 2025
@Beamanator
Copy link
Contributor

amazing, thanks!! closing since no payment due 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants