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

Update Client Library and API Integration for Backend Changes #92

Merged
merged 12 commits into from
Dec 12, 2024

Conversation

vividroyjeong
Copy link
Collaborator

  • Update client library and API integration to match backend changes
  • Re-config proxy for base path(start with '/api') change in backend api

Copy link

@dhlevi dhlevi left a comment

Choose a reason for hiding this comment

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

We shouldn't be disabling ts/es linting. If you're seeing errors popping up, try to correct them appropriately vs. disabling the rules.

Couple questions on the parameter factories around the use of async/promises. If they're required, no worries, just wasn't sure what the purpose of them was.

@@ -0,0 +1,152 @@
/* tslint:disable */
Copy link

Choose a reason for hiding this comment

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

We shouldn't be disabling tslint. If you're getting linting errors, it's better to correct them vs. disabling the checks.

Note that Sonar will check them anyway and they'll need to be corrected regardless.

configuration?: Configuration,
) {
return {
projectionDcsvPostForm: async (
Copy link

Choose a reason for hiding this comment

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

Why is this async? It includes a promise I'm just not sure why?

Copy link

Choose a reason for hiding this comment

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

I see the axios config, I just don't see it getting executed

Copy link

Choose a reason for hiding this comment

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

Is it only for the factory function below?

import type { RequestArgs } from '../base'
import type { FileUpload, Parameters } from '../models'

export const RunHCSVProjectionApiAxiosParamCreator = function (
Copy link

Choose a reason for hiding this comment

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

Same as previous comment, should this be a promise? Doesn't seem to execute anything in an async way

@@ -0,0 +1,170 @@
/* tslint:disable */
Copy link

Choose a reason for hiding this comment

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

As above, do not disable tslint/eslint

@@ -0,0 +1,302 @@
/* tslint:disable */
Copy link

Choose a reason for hiding this comment

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

As above, do not disable tslint/eslint

...baseOptions,
...options,
}
const localVarHeaderParameter = {} as any
Copy link

Choose a reason for hiding this comment

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

Ideally we don't use any. We should define a type for this if possible.

@vividroyjeong
Copy link
Collaborator Author

@dhlevi Thank you for your last review. I've made the following changes to address your concerns. Please review again.

  • Remove tslint/eslint disabling
  • Remove unused dcsvprojection/scsvprojection api client libraries
    : Remove csvprojection/scsvprojection api client libraries, which was causing issues with using async/promises. Currently it is not
    being used, it is only declared in the API, not implemented. The client library was generated incorrectly. I've removed it to avoid
    confusion. If it is implemented in the API in the future and we need it, I'll create it accordingly.
  • Clean up - Remove unnecessary comments and unused import class

@vividroyjeong vividroyjeong merged commit 43c2a0c into main Dec 12, 2024
11 checks passed
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.

2 participants