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 2024-07-24] [Closed & Archived] Pass in ReportNameValuePairs to isArchived #45323

Closed
srikarparsi opened this issue Jul 12, 2024 · 35 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production 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

@srikarparsi
Copy link
Contributor

srikarparsi commented Jul 12, 2024

Background:

We're changing how we detect if a report is archived. Before, we were using the report's state and status which are in the report onyx collection. Now, we want to use a report's isArchived property which is in the reportNameValuePairs onyx collection.

Request:

We need to pass in reportNameValuePairs wherever isArchivedRoom is called. This has already been done for the ReportFooter which can be used as an example. (Look at ReportScreen.tsx and ReportFooter.tsx changes).

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @dylanexpensify
@srikarparsi srikarparsi added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 12, 2024
@srikarparsi srikarparsi self-assigned this Jul 12, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 12, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

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

Copy link

melvin-bot bot commented Jul 12, 2024

Triggered auto assignment to @dylanexpensify (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.

@srikarparsi
Copy link
Contributor Author

We're on a pretty tight timeline so please only post a proposal if you're able to work on a PR today. This should be a relatively straightforward change but please ask if there's any questions.

@DylanDylann
Copy link
Contributor

@srikarparsi It is so straightforward. I can work on the PR now

🎀👀🎀

Copy link

melvin-bot bot commented Jul 12, 2024

Current assignee @srikarparsi is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@ShridharGoel
Copy link
Contributor

ShridharGoel commented Jul 12, 2024

Proposal

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

Pass in ReportNameValuePairs to isArchived.

What is the root cause of that problem?

New change.

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

Just pass reportNameValuePairs to isArchivedRoom as the second param.

I'm available to open a PR quickly.

@srikarparsi
Copy link
Contributor Author

Awesome, that would be great, thanks @DylanDylann

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 12, 2024
@srikarparsi
Copy link
Contributor Author

@Pujan92, sorry for the assignment, I can review this PR when @DylanDylann creates it. Do you have an ETA @DylanDylann?

@DylanDylann
Copy link
Contributor

Give me 2 hours for both implementation and testing

@srikarparsi
Copy link
Contributor Author

srikarparsi commented Jul 12, 2024

Cool, two things for testing.

  1. The Onyx key is named private_isArchived but in App it's currently called isArchived. So to test, you will need to use private_isArchived. I created a PR here to change the variable name but there's one problem so once that's figured out, we can switch all occurrences to either isArchived or private_isArchived.
image
  1. The backend isn't fully complete so there may be some cases where you don't get the private_isArchived onyx update inside the reportNameValuePairs collection. One way that will reliably work is creating a workspace and then deleting it. You should see the private_isArchived key for all the newly archived workspace chats which you can use to test.

@DylanDylann
Copy link
Contributor

The backend isn't fully complete so there may be some cases

@srikarparsi Should we keep the report's state and status condition in isArchivedRoom function. IMO, we can remove the report's state and status if BE fully complete, but now I think we still need to keep the report's state and status condition

@srikarparsi
Copy link
Contributor Author

Yes, let's keep it there for now as a fallback.

@DylanDylann
Copy link
Contributor

Please give me one more hour. There are many places that need to be updated

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 12, 2024
@DylanDylann
Copy link
Contributor

@srikarparsi The PR is ready for review

@dylanexpensify
Copy link
Contributor

Woot!

Copy link

melvin-bot bot commented Jul 16, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

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

Copy link

melvin-bot bot commented Jul 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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 2024-07-24. 🎊

For reference, here are some details about the assignees on this issue:

  • @DylanDylann requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Jul 17, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@DylanDylann] The PR that introduced the bug has been identified. Link to the PR:
  • [@DylanDylann] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@DylanDylann] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@DylanDylann] Determine if we should create a regression test for this bug.
  • [@DylanDylann] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@dylanexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@dylanexpensify
Copy link
Contributor

Payment coming up!

@dylanexpensify
Copy link
Contributor

Payment summary:

Please request/apply!

@dylanexpensify
Copy link
Contributor

@suneox
Copy link
Contributor

suneox commented Jul 24, 2024

Hi @dylanexpensify

I have reviewed the PR and reviewer checklist so can I have any compensation?

@DylanDylann
Copy link
Contributor

Thanks @dylanexpensify I applied to the job post 👍

Copy link

melvin-bot bot commented Jul 24, 2024

Payment Summary

Upwork Job

BugZero Checklist (@dylanexpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@dylanexpensify
Copy link
Contributor

@suneox please apply to!

@dylanexpensify dylanexpensify removed their assignment Jul 25, 2024
@dylanexpensify dylanexpensify added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Jul 25, 2024
Copy link

melvin-bot bot commented Jul 25, 2024

Triggered auto assignment to @puneetlath (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.

@dylanexpensify
Copy link
Contributor

@puneetlath I'm heading OOO now until 5th of August! Waiting for @suneox to apply and @DylanDylann to accept! TY! I owe ya one!

@suneox
Copy link
Contributor

suneox commented Jul 25, 2024

@suneox please apply to!

Hi @dylanexpensify I have applied this job https://www.upwork.com/jobs/~0158d0455594dee8e1

@puneetlath
Copy link
Contributor

@suneox can you complete the checklist?

Offers are out to @suneox and @DylanDylann. Waiting for both to accept. Please ping me on this issue when you have.

@suneox
Copy link
Contributor

suneox commented Jul 25, 2024

@suneox can you complete the checklist?

Offers are out to @suneox and @DylanDylann. Waiting for both to accept. Please ping me on this issue when you have.

@puneetlath Thank you, I have accepted an offer and I will complete the zero checklist in few hours

@suneox
Copy link
Contributor

suneox commented Jul 25, 2024

BugZero Checklist:

  • [@suneox] The PR that introduced the bug has been identified. Link to the PR: N/A: This is a new approach to detect if a report is archived.
  • [@suneox] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: N/A
  • [@suneox] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
  • [@suneox] Determine if we should create a regression test for this bug. N/A

@puneetlath
Copy link
Contributor

Great thanks. @suneox has been paid.

@DylanDylann please ping me here when you've accepted the contract and we can close this out.

@DylanDylann
Copy link
Contributor

@DylanDylann please ping me here when you've accepted the contract

@puneetlath I did, thanks 🙏

@melvin-bot melvin-bot bot added the Overdue label Jul 29, 2024
@puneetlath
Copy link
Contributor

All paid. Thanks everyone!

@melvin-bot melvin-bot bot removed the Overdue label Jul 29, 2024
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 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