Skip to content

[$250] [HOLD for payment 2024-02-07] Create centralized types for API params #33965

Closed

Description

@roryabraham

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 OwnerCurrent Issue Owner: @joekaufmanexpensify
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017c2ec18790b398be
  • Upwork Job ID: 1754981618246774784
  • Last Price Increase: 2024-02-06

Activity

  1. self-assigned this
    on Jan 4, 2024
  2. melvin-bot commented on Jan 4, 2024

    @melvin-bot
  3. roryabraham commented on Jan 4, 2024

    @roryabraham
    ContributorAuthor

    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.

  4. roryabraham commented on Jan 4, 2024

    @roryabraham
    ContributorAuthor
  5. blazejkustra commented on Jan 4, 2024

    @blazejkustra
    Contributor

    Commenting for assignment, thanks for creating this one @roryabraham

  6. blazejkustra commented on Jan 9, 2024

    @blazejkustra
    Contributor

    I got sick and work half hours, I'll get back to this next week 🤗

  7. roryabraham commented on Jan 17, 2024

    @roryabraham
    ContributorAuthor

    @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.

  8. 21 remaining items

  9. roryabraham commented on Feb 6, 2024

    @roryabraham
    ContributorAuthor

    @joekaufmanexpensify assigning you back here to help issue C+ payment to @s77rt for their review of #34542

  10. joekaufmanexpensify commented on Feb 6, 2024

    @joekaufmanexpensify
    Contributor

    Sounds good. Payment here is $250 for TS PR review to @s77rt. Paid via Upwork.

  11. changed the title [-][HOLD for payment 2024-02-07] Create centralized types for API params[/-] [+][$500] [HOLD for payment 2024-02-07] Create centralized types for API params[/+] on Feb 6, 2024
  12. melvin-bot commented on Feb 6, 2024

    @melvin-bot
  13. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Feb 6, 2024
  14. melvin-bot commented on Feb 6, 2024

    @melvin-bot

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

  15. removed
    Help WantedApply this label when an issue is open to proposals by contributors
    on Feb 6, 2024
  16. changed the title [-][$500] [HOLD for payment 2024-02-07] Create centralized types for API params[/-] [+][$250] [HOLD for payment 2024-02-07] Create centralized types for API params[/+] on Feb 6, 2024
  17. melvin-bot commented on Feb 6, 2024

    @melvin-bot

    Upwork job price has been updated to $250

  18. joekaufmanexpensify commented on Feb 6, 2024

    @joekaufmanexpensify
    Contributor

    @s77rt offer sent for $250!

  19. s77rt commented on Feb 6, 2024

    @s77rt
    Member

    @joekaufmanexpensify Accepted! Thanks!

  20. joekaufmanexpensify commented on Feb 6, 2024

    @joekaufmanexpensify
    Contributor

    $250 sent and contract ended!

  21. joekaufmanexpensify commented on Feb 6, 2024

    @joekaufmanexpensify
    Contributor

    All set!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNewFeatureSomething to build that is a new item.Typescript Migration

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions