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

Report fields - Blank list is shown briefly after deleting all report fields #44983

Closed
6 tasks done
lanitochka17 opened this issue Jul 8, 2024 · 10 comments
Closed
6 tasks done
Assignees
Labels
Daily KSv2 Engineering Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 8, 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.5-3
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 chat
  3. Go to Report fields (enable in More features if not yet)
  4. Add a report field
  5. Click on the report field
  6. Click Delete
  7. Delete the report field

Expected Result:

The report field page will show the empty state screen immediately (like it does on Categories and Tags page)

Actual Result:

The report field shows blank first briefly before showing empty state screen

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

Bug6535972_1720449739031.20240708_223735.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jul 8, 2024
Copy link

melvin-bot bot commented Jul 8, 2024

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

Copy link
Contributor

github-actions bot commented Jul 8, 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.

@lanitochka17
Copy link
Author

@francoisl 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

@Krishna2323
Copy link
Contributor

Proposal

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

Report fields - Blank list is shown briefly after deleting all report fields

What is the root cause of that problem?

We aren't checking for pending state like we do in tags and category page.

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

Add similar check in WorkspaceReportFieldsPage.

const hasVisibleTag = Object.values(filteredPolicyFieldList).some((tag) => tag.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE || isOffline);

What alternative solutions did you explore? (Optional)

@mountiny mountiny added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels Jul 8, 2024
@mountiny mountiny assigned rushatgabhane and mountiny and unassigned francoisl Jul 8, 2024
@francoisl
Copy link
Contributor

This is probably from #44493, not going to block on this as it's not breaking anything.

@francoisl francoisl added DeployBlockerCash This issue or pull request should block deployment and removed DeployBlockerCash This issue or pull request should block deployment labels Jul 8, 2024
@mountiny
Copy link
Contributor

mountiny commented Jul 8, 2024

Going to handle this with @rezkiy37 and @waterim as we are working on the project

Copy link

melvin-bot bot commented Jul 8, 2024

Current assignee @mountiny is eligible for the DeployBlockerCash assigner, not assigning anyone new.

@github-actions github-actions bot added Hourly KSv2 and removed Daily KSv2 labels Jul 8, 2024
@mountiny
Copy link
Contributor

mountiny commented Jul 8, 2024

The report fields is behind beta still

@mountiny mountiny added Daily KSv2 and removed Hourly KSv2 labels Jul 8, 2024
@Expensify Expensify deleted a comment from github-actions bot Jul 8, 2024
@waterim
Copy link
Contributor

waterim commented Jul 9, 2024

Hello, Im Artem and would like to help with this issue!
This issue will be fixed here

@mountiny mountiny added the Reviewing Has a PR in review label Jul 9, 2024
@rushatgabhane
Copy link
Member

PR reviewed and merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering Reviewing Has a PR in review
Development

No branches or pull requests

6 participants