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 - waiting on deploy][$250] Category - Default spend categories not displayed when creating workspace offline #48741

Closed
4 of 6 tasks
IuliiaHerets opened this issue Sep 6, 2024 · 16 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 6, 2024

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: 9.0.30.11
Reproducible in staging?: Yes
Reproducible in production?: N/A
Issue was found when executing this PR: #48708
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/ and log in
  2. Disable internet connection
  3. Create a new workspace
  4. Open the workspace settings > Categories
  5. Select Settings

Expected Result:

The default category selector is displayed

Actual Result:

The default category selector is not displayed when creating a workspace offline

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6595607_1725648023167.Recording__760.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021832156142441767995
  • Upwork Job ID: 1832156142441767995
  • Last Price Increase: 2024-09-06
Issue OwnerCurrent Issue Owner: @
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 6, 2024
Copy link

melvin-bot bot commented Sep 6, 2024

Triggered auto assignment to @johncschuster (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 Sep 6, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 6, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 6, 2024
Copy link
Contributor

github-actions bot commented Sep 6, 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.

@IuliiaHerets
Copy link
Author

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

@gijoe0295
Copy link
Contributor

gijoe0295 commented Sep 6, 2024

Edited by proposal-police: This proposal was edited at 2023-10-17T00:49:00Z.

Proposal

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

The default category selector is not displayed when creating a workspace offline

What is the root cause of that problem?

We should the default spend categories description even when there's no such categories because the workspace is created offline and BE does not return that yet.

{!!currentPolicy && listItems && (
<>
<View style={[styles.mh5, styles.mt2, styles.mb1]}>
<Text style={[styles.headerText]}>{translate('workspace.categories.defaultSpendCategories')}</Text>
<Text style={[styles.mt1, styles.lh20]}>{translate('workspace.categories.spendCategoriesDescription')}</Text>
</View>
<ScrollView>{listItems}</ScrollView>
</>
)}

Note that listItems here is an array initialized to [] so even when there's no mccGroup data, we would still have an empty array:

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

Modify the above condition to check length of listItems.

!!currentPolicy && listItems.length > 0

@Nodebrute
Copy link
Contributor

@BartoszGrajdek from this pr #48708

@ishpaul777
Copy link
Contributor

I think @BartoszGrajdek is not around i'll take care of this as C+ on offending PR

@marcochavezf marcochavezf added the External Added to denote the issue can be worked on by a contributor label Sep 6, 2024
@melvin-bot melvin-bot bot changed the title Category - Default spend categories not displayed when creating workspace offline [$250] Category - Default spend categories not displayed when creating workspace offline Sep 6, 2024
Copy link

melvin-bot bot commented Sep 6, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 6, 2024
Copy link

melvin-bot bot commented Sep 6, 2024

Current assignee @ishpaul777 is eligible for the External assigner, not assigning anyone new.

@ishpaul777
Copy link
Contributor

ishpaul777 commented Sep 6, 2024

Draft PR is here #48747

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Sep 6, 2024
@ishpaul777
Copy link
Contributor

@marcochavezf Opened for review 🙏

@marcochavezf
Copy link
Contributor

Thanks @gijoe0295 @ishpaul777 for the quick solution!

@mountiny mountiny removed DeployBlockerCash This issue or pull request should block deployment Help Wanted Apply this label when an issue is open to proposals by contributors labels Sep 9, 2024
@mountiny
Copy link
Contributor

mountiny commented Sep 9, 2024

CP ing the PR

@johncschuster johncschuster changed the title [$250] Category - Default spend categories not displayed when creating workspace offline [HOLD for payment][$250] Category - Default spend categories not displayed when creating workspace offline Sep 10, 2024
@johncschuster
Copy link
Contributor

johncschuster commented Sep 11, 2024

Payment Summary

Contributor: @ishpaul777 owed $250 via Upwork

@johncschuster johncschuster changed the title [HOLD for payment][$250] Category - Default spend categories not displayed when creating workspace offline [HOLD for payment - waiting on deploy][$250] Category - Default spend categories not displayed when creating workspace offline Sep 12, 2024
@ishpaul777
Copy link
Contributor

Hey i am not due payment here this came from a PR i reviewed

@johncschuster
Copy link
Contributor

Thanks for letting me know, @ishpaul777!

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. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants