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-03-17] Fix broken logic in isIOUOwnedByCurrentUser #15390

Closed
luacmartins opened this issue Feb 22, 2023 · 5 comments
Closed
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering

Comments

@luacmartins
Copy link
Contributor

Problem

The logic in isIOUOwnedByCurrentUser is broken, since it always returns false as currentUserLogin is an object containing user login information and not the user email.

Additionally, this line always returns true for !report.isIOUReportOwner since isIOUReportOwner is not a property of the report object.

Why is this important

Broken logic results in unexpected behavior

Solution

Fix it

@luacmartins luacmartins self-assigned this Feb 22, 2023
@melvin-bot melvin-bot bot locked and limited conversation to collaborators Feb 22, 2023
@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Feb 22, 2023
@MelvinBot
Copy link

@luacmartins Whoops! This issue is 2 days overdue. Let's get this updated quick!

@luacmartins
Copy link
Contributor Author

PR is in review!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Mar 10, 2023
@melvin-bot melvin-bot bot changed the title Fix broken logic in isIOUOwnedByCurrentUser [HOLD for payment 2023-03-17] Fix broken logic in isIOUOwnedByCurrentUser Mar 10, 2023
@melvin-bot melvin-bot bot unlocked this conversation Mar 10, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 10, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.81-1 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-03-17. 🎊

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Mar 16, 2023
@luacmartins
Copy link
Contributor Author

This issue was reported, worked on and reviewed internally. So no payments are due. Closing it!

@melvin-bot melvin-bot bot removed the Overdue label Mar 20, 2023
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 Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

2 participants