Skip to content

[Hold on 29107] [$500] [MEDIUM] Tag - Selected tag in split request only appears in the Recent list after details are entered #34996

Closed

Description

@lanitochka17

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: 1.4.30-0
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):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Issue found when executing PR #34236

Action Performed:

Precondition:

  • User is an employee of a Collect workspace
  • The workspace has categories and tags
  1. Go to workspace chat
  2. Create a split bill with category and tag
  3. While the scanning is ongoing, open category and tag to check Recent list in manual request confirmation page
  4. Click on the split preview
  5. Manually enter the details and click Split
  6. Repeat Step 3

Expected Result:

In Step 3, the selected tag will be present in the Recent list, like category

Actual Result:

In Step 3, the selected tag is missing in the Recent list, unlike category
The selected tag only appears in the Recent list after the details are entered manually in Step 5

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

Bug6352439_1706038191629.20240123_223237.1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01728abc54f34f3deb
  • Upwork Job ID: 1749882868272467968
  • Last Price Increase: 2024-02-13

Activity

  1. added
    External
    Daily
    Bug
    on Jan 23, 2024
  2. changed the title [-]Tag - Selected tag in split request only appears in the Recent list after details are entered[/-] [+][$500] Tag - Selected tag in split request only appears in the Recent list after details are entered[/+] on Jan 23, 2024
  3. melvin-bot commented on Jan 23, 2024

    @melvin-bot
  4. melvin-bot commented on Jan 23, 2024

    @melvin-bot

    Triggered auto assignment to @peterdbarkerUK (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  5. added
    Help Wanted
    on Jan 23, 2024
  6. melvin-bot commented on Jan 23, 2024

    @melvin-bot

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

  7. lanitochka17 commented on Jan 23, 2024

    @lanitochka17
    Author

    We think that this bug might be related to #wave6.
    CC @greg-schroeder

  8. dummy-1111 commented on Jan 24, 2024

    @dummy-1111
    Contributor

    Proposal

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

    Previously selected tags doesn't appear in the recent list when editing spilt bill

    What is the root cause of that problem?

    When editing tag in split bill edit page, EditRequestTagPage page is displayed as you can see below

    <EditRequestTagPage
    defaultTag={transactionTag}
    policyID={lodashGet(report, 'policyID', '')}
    onSubmit={(transactionChanges) => {
    setDraftSplitTransaction({tag: transactionChanges.tag.trim()});
    }}
    />
    );

    As you can see, we don't pass tagName props to the EditRequestTagPage component. So the tagName value is undefined here

    tag={tagName}

    In the TagPicker component, we get recently used tags list using this tag value

    const policyRecentlyUsedTagsList = lodashGet(policyRecentlyUsedTags, tag, []);

    tag is undefined here and so policyRecentlyUsedTagsList becomes []

    This is the root cause

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

    We get the tag value as the first key of policyTags as you can see below

    const tagListKey = _.first(_.keys(policyTags));

    const tagListKey = _.first(_.keys(policyTags));

    I think we don't need tag props in TagPicker component and can get its value from the policyTags
    Remove tag props from the TagPicker and update

    const policyRecentlyUsedTagsList = lodashGet(policyRecentlyUsedTags, tag, []);

    to

        const tagListKey = _.first(_.keys(policyTags));
        const policyRecentlyUsedTagsList = lodashGet(policyRecentlyUsedTags, tagListKey, []);
    

    This works as expected

    Result
    34996.mp4

    What alternative solutions did you explore? (Optional)

    Of course we can pass the right value of tagName in EditSplitBillPage but I think the suggested solution is the best

  9. s77rt commented on Jan 25, 2024

    @s77rt
    Member

    @s-alves10 Thanks for the proposal. Your RCA is correct. However I think we should just put this issue on hold as wave 5 clean up should fix this. EditSplitBillPage will be removed.

  10. s77rt commented on Jan 25, 2024

    @s77rt
    Member

    @peterdbarkerUK Let's put this on hold for #29107

  11. 55 remaining items

  12. s77rt commented on Apr 15, 2024

    @s77rt
    Member

    Same ^

  13. s77rt commented on Apr 23, 2024

    @s77rt
    Member

    Still on hold.

  14. s77rt commented on May 3, 2024

    @s77rt
    Member

    Same ^

  15. s77rt commented on May 13, 2024

    @s77rt
    Member

    This is fixed. We can close the issue. cc @anmurali

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugEngineeringExternalHelp WantedWeekly

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions