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-30] DRY up the logic for the backTo param in ROUTES.ts #29799

Closed
tgolen opened this issue Oct 17, 2023 · 18 comments
Closed
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@tgolen
Copy link
Contributor

tgolen commented Oct 17, 2023

Problem

There is repeated code in ROUTES.ts that adds an optional backTo parameter to URLs.

Why is this important?

If it is not DRY, then is more difficult to maintain and keep consistent

Solution

Move the code into a method called addBackToParam() that is used in the routes that need it

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c7e63f69a8031ac1
  • Upwork Job ID: 1714329935530221568
  • Last Price Increase: 2023-10-17
@tgolen tgolen self-assigned this Oct 17, 2023
@tgolen tgolen added Engineering Weekly KSv2 Internal Requires API changes or must be handled by Expensify staff labels Oct 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

Triggered auto assignment to Contributor Plus for review of internal employee PR - @Ollyws (Internal)

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Oct 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 21, 2023

⚠️ 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 added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 23, 2023
@melvin-bot melvin-bot bot changed the title DRY up the logic for the backTo param in ROUTES.ts [HOLD for payment 2023-10-30] DRY up the logic for the backTo param in ROUTES.ts Oct 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 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 Oct 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

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

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 Daily KSv2 and removed Weekly KSv2 labels Oct 29, 2023
@tgolen tgolen added the Bug Something is broken. Auto assigns a BugZero manager. label Oct 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

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

@melvin-bot

This comment was marked as off-topic.

@tgolen
Copy link
Contributor Author

tgolen commented Oct 30, 2023

@kevinksullivan Can you please facilitate the payment for @Ollyws reviewing the PR?

@Ollyws
Copy link
Contributor

Ollyws commented Oct 30, 2023

There was a regression on this PR, happy to take the hit for it because I really should have spotted it.

@tgolen
Copy link
Contributor Author

tgolen commented Oct 30, 2023 via email

@tgolen
Copy link
Contributor Author

tgolen commented Nov 1, 2023

I think I'll just close this out then without payment.

@tgolen tgolen closed this as completed Nov 1, 2023
@Ollyws
Copy link
Contributor

Ollyws commented Nov 1, 2023

@tgolen Should the C+ not be paid 50% of the original compensation, or did you mean for that to be handled in the regression issue?

@tgolen
Copy link
Contributor Author

tgolen commented Nov 1, 2023

I am so sorry about that! I needed to read up on the payment rules for regressions. I'm reopening this and @kevinksullivan can you please pay @Ollyws 50% of the original compensation.

@tgolen tgolen reopened this Nov 1, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 6, 2023
@tgolen
Copy link
Contributor Author

tgolen commented Nov 6, 2023

bump @kevinksullivan Can you please help with payment here?

@melvin-bot melvin-bot bot removed the Overdue label Nov 6, 2023
@tgolen
Copy link
Contributor Author

tgolen commented Nov 7, 2023

Pinged Kevin 1:1

@kevinksullivan
Copy link
Contributor

offer sent @Ollyws , let me know when you accept!

@Ollyws
Copy link
Contributor

Ollyws commented Nov 7, 2023

@kevinksullivan Accepted, thanks!

@kevinksullivan
Copy link
Contributor

all set!

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 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

3 participants