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

🌱 Remove APIClient, update effected rest functions #1822

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Apr 5, 2024

Changes:

  • Remove APIClient
  • Update the affected functions in rest.ts to use axios directly
  • Double check the return types of the effected functions
  • Updated a few API model types based on current hub handler function responses
  • getApplicationSummaryCSV() URL query param was incorrectly named and could lead to more results returned than expected. Query param updated to the correct name as per the OpenAPI definition / golang handler code.

Resolves: #1821
Part-of: #1411

client/src/app/api/rest.ts Show resolved Hide resolved
client/src/app/api/models.ts Show resolved Hide resolved
@sjd78 sjd78 force-pushed the remove-apiClient branch 2 times, most recently from b83ebdf to 58b1d3e Compare April 16, 2024 17:57
@rszwajko rszwajko self-requested a review April 18, 2024 17:35
Copy link
Collaborator

@rszwajko rszwajko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. The case of param name importSummary.id (and why it worked before!) is worth documenting but I leave it to you.

Changes:
  - Remove `APIClient`
  - Update the affected functions in `rest.ts` to use
    axios directly
  - Double check the return types of the effected functions
  - Updated a few API model types based on current hub
    handler function responses

Resolves: konveyor#1821
Part-of: konveyor#1411

Signed-off-by: Scott J Dickerson <[email protected]>
Signed-off-by: Scott J Dickerson <[email protected]>
@sjd78
Copy link
Member Author

sjd78 commented Apr 19, 2024

Looks good. The case of param name importSummary.id (and why it worked before!) is worth documenting but I leave it to you.

It worked didn't fail before because the query param is not required.

@sjd78 sjd78 merged commit 8b13af6 into konveyor:main Apr 19, 2024
7 checks passed
@sjd78 sjd78 deleted the remove-apiClient branch April 19, 2024 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TECH DEBT] Remove use of APIClient
3 participants