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-10-09] [HOLD for payment 2023-10-05] [HOLD for payment 2023-09-27] [$1000] Stop using report.participants in favor of report.participantAccountIDs #25714

Closed
puneetlath opened this issue Aug 22, 2023 · 35 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. Weekly KSv2

Comments

@puneetlath
Copy link
Contributor

puneetlath commented Aug 22, 2023

We need to stop using report.participants and instead use report.participantAccountIDs. Now that #24320 is done, we should be able to remove all uses of report.participants in the App.

Let's go through and find everywhere that we use the participants array from the Onyx report object and instead use the participantAccountIDs array instead.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0155ce6d585250b4c1
  • Upwork Job ID: 1694376588443893760
  • Last Price Increase: 2023-08-23
@puneetlath puneetlath added Daily KSv2 NewFeature Something to build that is a new item. labels Aug 22, 2023
@puneetlath puneetlath self-assigned this Aug 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

Current assignee @puneetlath is eligible for the NewFeature assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Aug 22, 2023
@lukemorawski
Copy link
Contributor

Hey it's Lucas from Callstack. Happy to work on that ticket

@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Aug 23, 2023
@melvin-bot melvin-bot bot changed the title Stop using report.participants in favor of report.participantAccountIDs [$1000] Stop using report.participants in favor of report.participantAccountIDs Aug 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2023

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

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

melvin-bot bot commented Aug 23, 2023

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2023

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

@daordonez11
Copy link
Contributor

I would like to work on this, I have helped find some "unknown" user issues so I think I can help with migration and testing for the cases. In case Luke wants help or he is OOO I'm able to help with this issue.

@lukemorawski
Copy link
Contributor

@puneetlath Hey it's Lucas from Callstack. Happy to work on that

@puneetlath
Copy link
Contributor Author

Thanks @lukemorawski. Mind providing on ETA for when you think you'll be able to get a PR up?

@lukemorawski
Copy link
Contributor

Should be today :) @puneetlath

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Aug 29, 2023
@puneetlath puneetlath added Daily KSv2 and removed Weekly KSv2 labels Sep 10, 2023
@puneetlath
Copy link
Contributor Author

Ok, so #26102 got us one step further, but we need to fully remove any participants usage in the app from all report types: reports, IOUs, tasks, etc.

@lukemorawski can you do the following:

  1. list out every place in the app where we are currently using participants
  2. for any of those places where there isn't an obvious way to use participantAccountIDs instead, start a discussion either here or in slack about how we can go about removing them

This is a very high priority for us, so let me know if this is something you're able to focus on this week or whether we need to recruit more help. Thanks!

@melvin-bot melvin-bot bot changed the title [$1000] Stop using report.participants in favor of report.participantAccountIDs [HOLD for payment 2023-09-27] [$1000] Stop using report.participants in favor of report.participantAccountIDs Sep 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-12 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-09-27. 🎊

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:

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 Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Sep 20, 2023
@puneetlath
Copy link
Contributor Author

For now I'll push my changes with removing deprecated getChatByParticipantsByLoginList method which was using report.participants.

Sounds good.

The only additional change that comes to my mind now is to refactor both methods into one (to accept userLogins and accountIDs), but please let me know if it's necessary.

Yeah, good question. I'm trying to figure out if it's actually possible to start a group chat with someone you "know" and someone you "don't know" in NewDot today. It doesn't seem like there is from what I can find. So maybe this isn't necessary.

@koko57
Copy link
Contributor

koko57 commented Sep 21, 2023

ok, PR opened: #27828 🙂

@puneetlath
Copy link
Contributor Author

@koko57 I've merged that PR. We should be good to stop sending report.participants from the back-end now, correct?

@koko57
Copy link
Contributor

koko57 commented Sep 25, 2023

@puneetlath yeah, I think we're all set now. And as we decided to use participants for iou (as a temporary object in the Onyx) I think we can revert #27369

@puneetlath
Copy link
Contributor Author

Ok great! I'll get the back-end PR prepared.

Mind going ahead and creating the revert PR? And we can ask @burczu to review that one as well. Thank you!

@koko57
Copy link
Contributor

koko57 commented Sep 25, 2023

@puneetlath yeah, of course! I'll take care of it

@melvin-bot melvin-bot bot added Weekly KSv2 Daily KSv2 and removed Weekly KSv2 Daily KSv2 labels Sep 25, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-09-27] [$1000] Stop using report.participants in favor of report.participantAccountIDs [HOLD for payment 2023-10-05] [HOLD for payment 2023-09-27] [$1000] Stop using report.participants in favor of report.participantAccountIDs Sep 28, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 28, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 28, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 28, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.74-3 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-10-05. 🎊

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:

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

@puneetlath
Copy link
Contributor Author

There are no contributors to pay out here, so I'm going to go ahead and close this.

Thanks again for your help getting this across the finish line @koko57 @burczu and @lukemorawski!

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Oct 2, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-10-05] [HOLD for payment 2023-09-27] [$1000] Stop using report.participants in favor of report.participantAccountIDs [HOLD for payment 2023-10-09] [HOLD for payment 2023-10-05] [HOLD for payment 2023-09-27] [$1000] Stop using report.participants in favor of report.participantAccountIDs Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 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-10-09. 🎊

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:

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

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 External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. Weekly KSv2
Projects
None yet
Development

No branches or pull requests

5 participants