-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] [HOLD for payment 2024-02-07] Create centralized types for API params #33965
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
While we think this is a good idea in the short-term for its own merits, part of our thinking here is that in the long-term we'll be able to define API params in the API (where they are actually defined), and build some compile-time tool that can generate this map in the front-end so that the front-end is always up-to-date with all of the params accepted by each API endpoint. |
Commenting for assignment, thanks for creating this one @roryabraham |
I got sick and work half hours, I'll get back to this next week 🤗 |
@blazejkustra put up a PR for centralized API params. Overall it looks good but it's very large and as such things would likely go smoother if we break it up into multiple PRs and migrate one actions file at a time. Unless I'm mistaken these PRs should be almost 100% compile-time type changes, so I think we could loosen the screenshot and review requirements for each, unless there are any runtime changes introduced, as is often the case when types are found to be incorrect in TS migration PRs. |
Chatted with @blazejkustra, I'm ok with doing a single PR as long as our C+ is thoroughly testing. It's a fair amount of overhead to review such a big PR but ultimately it does look quite safe. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.33-5 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-02-07. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@joekaufmanexpensify assigning you back here to help issue C+ payment to @s77rt for their review of #34542 |
Sounds good. Payment here is $250 for TS PR review to @s77rt. Paid via Upwork. |
Job added to Upwork: https://www.upwork.com/jobs/~017c2ec18790b398be |
Current assignee @s77rt is eligible for the External assigner, not assigning anyone new. |
Upwork job price has been updated to $250 |
@s77rt offer sent for $250! |
@joekaufmanexpensify Accepted! Thanks! |
$250 sent and contract ended! |
All set! |
context: #28695 (comment)
Problem
Currently, we're defining a type for API params before each use of that API endpoint. This could lead to inconsistent application of API params and might make it difficult to know the params (and associated types) accepted by each API endpoint.
Solution
Create a centralized map mapping API endpoint (string) to the params accepted by that endpoint.
Issue Owner
Current Issue Owner: @joekaufmanexpensifyUpwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: