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 2023-11-02] Category IOU - Incorrect ordering of subcategories in the category menu #28964

Closed
6 tasks done
lanitochka17 opened this issue Oct 5, 2023 · 27 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 External Added to denote the issue can be worked on by a contributor Monthly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 5, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

Prerequisites:
Account Setup https://sites.google.com/applausemail.com/applause-expensifyproject/guides/newdot-categories
Setting up categories 1) https://expensify.testrail.io/index.php?/tests/view/3767005
2) https://expensify.testrail.io/index.php?/tests/view/3767010

Steps:

  1. Open https://staging.new.expensify.com/
    or app
  2. Log in to your Employee account
  3. Click on the FAB button
  4. Click on 'Request Money'
  5. Choose 'Manual' and add an amount
  6. Click on the "Next" button
  7. Select the configured WS
  8. Click 'show more' and click on 'Category'

Expected Result:

Subcategories should be displayed laddered under each other with a space to the left

Actual Result:

The subcategory for the parent subcategory is not displayed in a ladder, but is displayed at the very end of the category list

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.78.0

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Notes/Photos/Videos: Any additional supporting documentation

Bug6226514_1696541611456.Recording__434.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot
Copy link

melvin-bot bot commented Oct 9, 2023

@puneetlath Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@puneetlath
Copy link
Contributor

@rezkiy37 would you want to look into this one? It does seem like there is an issue with multiple levels of nesting. For example, this is what I'm seeing on this policy titled Collect Policy (which I just added you to).

image image

@rezkiy37
Copy link
Contributor

rezkiy37 commented Oct 9, 2023

Hi, I’m Michael (Mykhailo) from Callstack and I would like to work in this issue.

@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Oct 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 9, 2023

Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue. cc @thienlnam

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 9, 2023

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

@puneetlath puneetlath removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 9, 2023
@rezkiy37
Copy link
Contributor

rezkiy37 commented Oct 10, 2023

@rezkiy37 would you want to look into this one? It does seem like there is an issue with multiple levels of nesting. For example, this is what I'm seeing on this policy titled Collect Policy (which I just added you to).

image image

So, I've investigated this case. We have a problem when there are 2 "same" named categories. Actually, the app checks for a duplicate and ignores duplicated names. This case I am trying to handle and fix.

Screenshot 2023-10-10 at 16 43 33

What about the attached video on a PR's description. Basically, the app does not order or re-order categories. I takes a list from the backend and iterates item by item. I want to make sure that we have a proper ordered list from the backend before.
@lanitochka17, could you please record network responses where there are updated category lists? Can we confirm that the backend sends the correct order?

@puneetlath
Copy link
Contributor

@rezkiy37 and I worked together today and were able to reproduce the issue. He's working on the fix.

@puneetlath puneetlath moved this from MEDIUM to CRITICAL in [#whatsnext] Wave 06 - Collect Submitters Oct 12, 2023
@rezkiy37
Copy link
Contributor

@puneetlath, I have 4 updates and a question:

  1. Already working on a draft PR - Fix incorrect ordering of subcategories #29281.
  2. I've fixed the bug, when the app hides a category with the same name, but one of them is nested - [HOLD for payment 2023-11-02] Category IOU - Incorrect ordering of subcategories in the category menu #28964 (comment).
  3. I've found and fixed a bug, when the app crashes, because of 2 nested categories with the same name, but different parent.
  4. I extended tests to cover more cases.

Question:
Actually, the app receives categories with incorrect ordering. So, is it OldDot, NewDot or backend work to order categories in proper way? If it is NewDot's work, I cannot guarantee the same order, as user has in OldDot.

User

@puneetlath
Copy link
Contributor

I think we should have NewDot do the ordering, because it isn't always going to receive a full list. For example, if we add a Category, the client will only receive the new category, not the updated entire list. So the client will need to do the ordering itself.

I cannot guarantee the same order, as user has in OldDot.

I think this is fine. Thanks for checking though!

@melvin-bot melvin-bot bot added the Overdue label Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

@puneetlath, @cubuspl42, @rezkiy37 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 16, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 26, 2023
@melvin-bot melvin-bot bot changed the title Category IOU - Incorrect ordering of subcategories in the category menu [HOLD for payment 2023-11-02] Category IOU - Incorrect ordering of subcategories in the category menu Oct 26, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 26, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 26, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.91-8 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 2023-11-02. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 26, 2023

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:

  • [@cubuspl42] The PR that introduced the bug has been identified. Link to the PR:
  • [@cubuspl42] 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:
  • [@cubuspl42] 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:
  • [@cubuspl42] Determine if we should create a regression test for this bug.
  • [@cubuspl42] 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.
  • [@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: https://github.com/Expensify/Expensify/issues/331796

@rezkiy37
Copy link
Contributor

I have to inform that starting tomorrow I have a short vocation until next Monday (6.11.2023). Feel free to left any comments, I will address them. See you soon 😉

@puneetlath
Copy link
Contributor

Thanks @rezkiy37. I think you're all done here anyways. Last think is just the checklist from @cubuspl42

@cubuspl42
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR:
  • 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:
  • 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:
    • No need for additional discussion
  • Determine if we should create a regression test for this bug.
    • Up to the QA team
  • 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.
    • Initiate the Money Request Flow with a workspace.
    • Navigate to the "Categories" page.
    • Confirm that the categories are accurately nested following a parent-child relationship.
    • Ensure all subcategories are listed in alphabetical order.

@Christinadobrzyn
Copy link
Contributor

whoops! sorry I thought I was on this GH. Well I created the regression test. Hopefully that's ok - https://github.com/Expensify/Expensify/issues/331796

@puneetlath
Copy link
Contributor

All good, thanks for the help @Christinadobrzyn 😄

@melvin-bot melvin-bot bot added Daily KSv2 Monthly KSv2 Overdue and removed Weekly KSv2 labels Nov 2, 2023
Copy link

melvin-bot bot commented Nov 7, 2023

@puneetlath, @cubuspl42, @rezkiy37 Eep! 4 days overdue now. Issues have feelings too...

@puneetlath
Copy link
Contributor

@Christinadobrzyn did you also issue payment or is that still needed?

@melvin-bot melvin-bot bot removed the Overdue label Nov 7, 2023
@Christinadobrzyn
Copy link
Contributor

Hi, no sorry I didn't issue payment, just created the regression GH. Let me know if you want me to do that and I'll be happy to!

@puneetlath
Copy link
Contributor

All good, I got it! Thanks for the quick response.

@cubuspl42 offer here: https://www.upwork.com/nx/wm/offer/27560910

Please ping me on this issue once you've accepted it.

@cubuspl42
Copy link
Contributor

@puneetlath Accepted

@puneetlath
Copy link
Contributor

Paid. Thanks everyone!

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 External Added to denote the issue can be worked on by a contributor Monthly KSv2
Projects
No open projects
Development

No branches or pull requests

5 participants