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

[HOLD for payment 2024-05-22] [CRITICAL] [VIP-Travel] Workspace - Unable to select country in Company address #41505

Closed
6 tasks done
lanitochka17 opened this issue May 2, 2024 · 26 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented May 2, 2024

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: 1.4.70-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings
  3. Click Company address
  4. Without entering address first, click Country
  5. Select a country

Expected Result:

The country is selected

Actual Result:

The country is not selected. It shows the error "This field is required"

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6468902_1714658282392.address.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @anmurali
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

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

@lanitochka17
Copy link
Author

@anmurali FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@cretadn22
Copy link
Contributor

Proposal

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

The error message appears upon selecting a country

What is the root cause of that problem?

After selecting a country from the country screen, we store this value in route, but fail to update the corresponding field because we don't invoke handleAddressChange.

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

Within the WorkspaceProfileAddressPage, we need to incorporate logic that automatically updates both the country and state fields upon selection similar to what we implemented in the AddressPage

const countryFromUrlTemp = route?.params?.country;

    // Check if country is valid
    const countryFromUrl = CONST.ALL_COUNTRIES[countryFromUrlTemp as keyof typeof CONST.ALL_COUNTRIES] ? countryFromUrlTemp : '';
    const stateFromUrl = useGeographicalStateFromRoute();
   
    useEffect(() => {
        if (!countryFromUrl) {
            return;
        }
        handleAddressChange(countryFromUrl, 'country');
    }, [countryFromUrl, handleAddressChange]);

    useEffect(() => {
        if (!stateFromUrl) {
            return;
        }
        handleAddressChange(stateFromUrl, 'state');
    }, [handleAddressChange, stateFromUrl]);

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels May 2, 2024
Copy link
Contributor

github-actions bot commented May 2, 2024

👋 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.

@rlinoz
Copy link
Contributor

rlinoz commented May 2, 2024

This is related to a new feature coming from this PR #38381

cc: @smelaa @shubham1206agra

@rlinoz
Copy link
Contributor

rlinoz commented May 2, 2024

Oh this is a new feature and behind a beta, so no need to be a deploy blocker.

@rlinoz rlinoz added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels May 2, 2024
@melvin-bot melvin-bot bot added the Overdue label May 6, 2024
@anmurali anmurali added this to #Travel May 6, 2024
@anmurali
Copy link

anmurali commented May 6, 2024

I will post this bug to the PR #38381 and they can look into it.

@smelaa
Copy link
Contributor

smelaa commented May 7, 2024

Hi! I am Aleksandra Smela from Software Mansion, an expert agency and I am the author of #38381. I can work on this issue.

@cretadn22
Copy link
Contributor

What do you think about my proposal #41505 (comment). Is it a good way to address this issue?

@rlinoz
Copy link
Contributor

rlinoz commented May 7, 2024

Hey @cretadn22 we usually only accept proposals on issues that have the external and help wanted labels. Since this is an issue caused by another PR we try to let the original author to fix it.

@twisterdotcom twisterdotcom changed the title Workspace - Unable to select country in Company address [CRITICAL] [VIP-Travel] Workspace - Unable to select country in Company address May 14, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 15, 2024
@melvin-bot melvin-bot bot changed the title [CRITICAL] [VIP-Travel] Workspace - Unable to select country in Company address [HOLD for payment 2024-05-22] [CRITICAL] [VIP-Travel] Workspace - Unable to select country in Company address May 15, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 15, 2024
Copy link

melvin-bot bot commented May 15, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented May 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.73-7 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 2024-05-22. 🎊

For reference, here are some details about the assignees on this issue:

  • @smelaa does not require payment (Contractor)

Copy link

melvin-bot bot commented May 15, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@rlinoz] The PR that introduced the bug has been identified. Link to the PR:
  • [@rlinoz] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@rlinoz] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@smelaa] Determine if we should create a regression test for this bug.
  • [@smelaa] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@anmurali] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@twisterdotcom twisterdotcom moved this from Critical - V1 to Done in #Travel May 20, 2024
@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels May 21, 2024
@melvin-bot melvin-bot bot removed the Overdue label May 21, 2024
@rlinoz
Copy link
Contributor

rlinoz commented May 21, 2024

@s77rt reviewed the PR

Copy link

melvin-bot bot commented May 22, 2024

Payment Summary

Upwork Job

  • ROLE: @s77rt paid $(AMOUNT) via Upwork (LINK)
  • Contributor: @smelaa is from an agency-contributor and not due payment

BugZero Checklist (@anmurali)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@melvin-bot melvin-bot bot added the Overdue label May 24, 2024
Copy link

melvin-bot bot commented May 27, 2024

@rlinoz, @anmurali, @s77rt, @smelaa Eep! 4 days overdue now. Issues have feelings too...

@rlinoz
Copy link
Contributor

rlinoz commented May 28, 2024

friendly bump @anmurali

Copy link

melvin-bot bot commented May 31, 2024

@rlinoz, @anmurali, @s77rt, @smelaa 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

@anmurali
Copy link

anmurali commented Jun 4, 2024

@s77rt - offer is here

@melvin-bot melvin-bot bot removed the Overdue label Jun 4, 2024
@s77rt
Copy link
Contributor

s77rt commented Jun 4, 2024

@anmurali Accepted! Thanks!

@melvin-bot melvin-bot bot added the Overdue label Jun 6, 2024
Copy link

melvin-bot bot commented Jun 7, 2024

@rlinoz, @anmurali, @s77rt, @smelaa Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented Jun 11, 2024

@rlinoz, @anmurali, @s77rt, @smelaa Still overdue 6 days?! Let's take care of this!

@anmurali
Copy link

Paid.

@melvin-bot melvin-bot bot removed the Overdue label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
Status: Done
Development

No branches or pull requests

6 participants