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-12-30] [$250] Refactor createDistanceRequest to use a parameter object #53789

Open
neil-marcellini opened this issue Dec 9, 2024 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Improvement Item broken or needs improvement. Weekly KSv2

Comments

@neil-marcellini
Copy link
Contributor

neil-marcellini commented Dec 9, 2024

As part of the tracking issue, and as advised in its description, refactor createDistanceRequest to use a parameter object.

cc @mkzie2 @dukenv0307

Issue OwnerCurrent Issue Owner: @
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021866886683506920885
  • Upwork Job ID: 1866886683506920885
  • Last Price Increase: 2024-12-11
Issue OwnerCurrent Issue Owner: @OfstadC
@mkzie2
Copy link
Contributor

mkzie2 commented Dec 9, 2024

Proposal

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

Refactor createDistanceRequest to use a parameter

What is the root cause of that problem?

This is an improvement

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

Wrap all parameters of this function into one object and in this object, we can have some sub-objects that will wrap the related data.

function createDistanceRequest(

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

What alternative solutions did you explore? (Optional)

@mkzie2
Copy link
Contributor

mkzie2 commented Dec 9, 2024

@neil-marcellini I'm here.

@dukenv0307
Copy link
Contributor

I can take it as C based on this comment

@mkzie2
Copy link
Contributor

mkzie2 commented Dec 11, 2024

@neil-marcellini Is this ready?

@neil-marcellini neil-marcellini added the External Added to denote the issue can be worked on by a contributor label Dec 11, 2024
@melvin-bot melvin-bot bot changed the title Refactor createDistanceRequest to use a parameter object [$250] Refactor createDistanceRequest to use a parameter object Dec 11, 2024
Copy link

melvin-bot bot commented Dec 11, 2024

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

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

melvin-bot bot commented Dec 11, 2024

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

@neil-marcellini neil-marcellini added the Bug Something is broken. Auto assigns a BugZero manager. label Dec 11, 2024
Copy link

melvin-bot bot commented Dec 11, 2024

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

@neil-marcellini
Copy link
Contributor Author

Not actually a bug but assigning you to handle payment when the time comes.

@neil-marcellini
Copy link
Contributor Author

@mkzie2's proposal looks good. Please go ahead and get started.

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

mkzie2 commented Dec 12, 2024

@dukenv0307 The PR is ready.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Dec 23, 2024
@melvin-bot melvin-bot bot changed the title [$250] Refactor createDistanceRequest to use a parameter object [HOLD for payment 2024-12-30] [$250] Refactor createDistanceRequest to use a parameter object Dec 23, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 23, 2024
Copy link

melvin-bot bot commented Dec 23, 2024

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

Copy link

melvin-bot bot commented Dec 23, 2024

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

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

  • @dukenv0307 requires payment through NewDot Manual Requests
  • @mkzie2 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Dec 23, 2024

@dukenv0307 @OfstadC @dukenv0307 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@dukenv0307
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other: Refactor issue

Where bug was reported:

  • 2a. Reported on production
  • 2b. Reported on staging (deploy blocker)
  • 2c. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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: Refactor issue

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. Yes

Regression Test Proposal Template
  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Test:

  1. Open a workspace chat
  2. Create a distance request
  3. Verify that the request is created successfully

Do we agree 👍 or 👎

@Christinadobrzyn
Copy link
Contributor

Hi @dukenv0307 @mkzie2 we have a deploy blocker #54513

Is it related to this?

This comment was marked as off-topic.

@mkzie2
Copy link
Contributor

mkzie2 commented Dec 24, 2024

@Christinadobrzyn My PR is deployed to production so I don't think it's related to the blocker.

@Christinadobrzyn
Copy link
Contributor

Okay thanks for checking @mkzie2 - I'll keep digging to see if I can find what's linked to the blocker

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. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Improvement Item broken or needs improvement. Weekly KSv2
Projects
None yet
Development

No branches or pull requests

5 participants