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

[$500] Violation error messages are not shown on the expenses for admin account #35031

Closed
1 of 6 tasks
kavimuru opened this issue Jan 24, 2024 · 20 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Jan 24, 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: 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: @puneetlath
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1706024549828789

Action Performed:

  1. Create a Collect policy on Newdot, if you do not have one already (steps here) and add at least one non-admin member
  2. As a member (non-admin) of the workspace, create an expense with violations
  3. Log in as a admin
  4. Open the expense report created in step 2

Expected Result:

violation error messages appear

Actual Result:

No error message shown when login as admin

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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

Recording.1705.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01431218f64ad15b55
  • Upwork Job ID: 1750036395342786560
  • Last Price Increase: 2024-01-31
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 24, 2024
Copy link

melvin-bot bot commented Jan 24, 2024

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

@kavimuru kavimuru added the External Added to denote the issue can be worked on by a contributor label Jan 24, 2024
@melvin-bot melvin-bot bot changed the title Violation error messages are not shown on the expenses for admin account [$500] Violation error messages are not shown on the expenses for admin account Jan 24, 2024
Copy link

melvin-bot bot commented Jan 24, 2024

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

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

melvin-bot bot commented Jan 24, 2024

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

@kameshwarnayak
Copy link
Contributor

kameshwarnayak commented Jan 24, 2024

Unable to reproduce in the latest main

@puneetlath
Copy link
Contributor

This happens to me consistently as the approver. Example reportID 563335175022642 from rocio@expensify.com. Transaction reportID 3206138938661089.

image

@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2024
Copy link

melvin-bot bot commented Jan 29, 2024

@eVoloshchak, @stephanieelliott Huh... This is 4 days overdue. Who can take care of this?

@stephanieelliott
Copy link
Contributor

Still waiting for proposals for this

@melvin-bot melvin-bot bot removed the Overdue label Jan 30, 2024
Copy link

melvin-bot bot commented Jan 31, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@stephanieelliott
Copy link
Contributor

Posted in #expensify-swm to see if we can get an expert contrib to jump on this, since it's affecting us internally. https://expensify.slack.com/archives/C04878MDF34/p1706741963165049

@SzymczakJ
Copy link
Contributor

Hey! I’m Jakub Szymczak from Software Mansion, an expert agency, and I’d like to work on this issue!

@SzymczakJ
Copy link
Contributor

SzymczakJ commented Feb 1, 2024

I lack information to reproduce this bug. I tried creating Workspace on new-dot but these workspaces don't have tag section. Additionally Category section seems to be not required because it doesn't show 'Missing category" error. How to create a workspace that has a required tag section and has a required category section? Below the screenshot of expense from workspace I created.
Screenshot 2024-02-01 at 15 29 33
Can somebody make reproduction steps clearer 😁 ?

@stephanieelliott
Copy link
Contributor

Ah @SzymczakJ the Category and Tag features are only present on Collect workspaces, and not on free workspaces (which is what you created).

I'll update the repro steps, but also adding the steps to create the Collect workspace here too. If you run into problems, let me know the email you're using and name of the test workspace so I can try and help!

  1. Create a collect policy in OldDot
  2. Execute the following JS snippet in the OldDot policy to enable workspace chats creation:
    if (Url.getCurrentPageName()!="policy" ){ alert('Only run this snippet from a policy editor!'); } else { var p = Policy.getCurrent(); p.policy.isPolicyExpenseChatEnabled = "true"; p.save().done(function(){$.jGrowl('Workspace chat creation enabled!')}); }

@SzymczakJ
Copy link
Contributor

SzymczakJ commented Feb 5, 2024

Great, I managed to reproduce the bug and I'm working to fix it. For now, we don't get violations info from backend as admin, but I think it's front end related.

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

SzymczakJ commented Feb 6, 2024

@stephanieelliott after some research I've found that every update of "request money"(for example change of tag) is triggering a Pusher update that gives new data to UI. All data (transaction data, report data, reportActions data, etc.) is sent through pusher except of transactionViolations data which is responsible for showing violation errors, and that's why we have bugs like this one. I don't have much knowledge about how Pusher works on backend, so I might be mistaken but I think that making Pusher send transactionViolation data when it changes on the backend would solve this issue.
It might be also on frontend side(not setting proper fields) but please check if transactionViolations data is sent properly through the pusher.

@puneetlath
Copy link
Contributor

cc @cead22 on the above.

@cead22
Copy link
Contributor

cead22 commented Feb 7, 2024

Yeah we need to send transaction violations to clients from backend commands like UpdateMoneyRequestAmountAndCurrency, which I have an issue for

@SzymczakJ
Copy link
Contributor

@cead22 could you notify me when transaction violations issue is completed? Then I would check if it solves this bug completely

Copy link

melvin-bot bot commented Feb 7, 2024

@eVoloshchak @stephanieelliott @SzymczakJ this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@stephanieelliott
Copy link
Contributor

Bump @cead22, could you share that transaction violations issue here? Thinking we'll want to hold on that to see if the fix resolves this issue

@cead22
Copy link
Contributor

cead22 commented Feb 9, 2024

The issue is here https://github.com/Expensify/Expensify/issues/361948. I think we can close this issue since we have that one, and the problem in the description of this issue isn't accurate, since violations show for employees, not admins

@cead22 cead22 closed this as completed Feb 9, 2024
@cead22 cead22 self-assigned this Feb 9, 2024
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. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants