Skip to content

TA-3794: Handle outstanding issues in refactor#209

Merged
Meris Nici (promeris) merged 8 commits into
content-cli-v2-refactoringfrom
promeris/ta-3794-fix-outstanding-bugs
May 30, 2025
Merged

TA-3794: Handle outstanding issues in refactor#209
Meris Nici (promeris) merged 8 commits into
content-cli-v2-refactoringfrom
promeris/ta-3794-fix-outstanding-bugs

Conversation

@promeris
Copy link
Copy Markdown
Contributor

@promeris Meris Nici (promeris) commented May 26, 2025

Description

  • Change log level of default profile usage logs to debug
    • Also fixed some other logging issue
  • Add dev parameter to allow running refactor version with IDE debugger
  • Handle form data types in http client
  • Fixed pull package command to use correct http client method

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

Comment thread src/content-cli.ts
@promeris Meris Nici (promeris) merged commit b0bc472 into content-cli-v2-refactoring May 30, 2025
1 check passed
@promeris Meris Nici (promeris) deleted the promeris/ta-3794-fix-outstanding-bugs branch May 30, 2025 06:48
Comment thread src/content-cli.ts
Comment on lines +86 to +91
const contentType = body instanceof FormData
? "multipart/form-data"
: "application/json;charset=utf-8";
const requestBody = typeof body === "string" || body instanceof String || body instanceof FormData
? body
: JSON.stringify(body)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This methods was design to work only with application/json and the postFile method here to be used for form-data. Did we try only changing the usage to postFile instead of post before modifying this? Asking to know if there was any issue with the postFile implementation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Didn't test it. I compared the implementations between old and refactor code base, and this method looked pretty much what was required, and left it as is because it fixed the issue. We can also go back to it and use proper method

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.

6 participants