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

feat: add custom auth data in JS SDK #758

Merged
merged 5 commits into from
Oct 22, 2024
Merged

Conversation

utkarsh-dixit
Copy link
Collaborator

@utkarsh-dixit utkarsh-dixit commented Oct 22, 2024

Important

Add Parameter and CustomAuthData types for custom authentication in ExecuteActionData, update error handling, and remove logger warning in JS SDK.

  • New Types:
    • Add Parameter type with name, in, and value fields.
    • Add CustomAuthData type with base_url, parameters, and optional body.
  • Data Structure Changes:
    • Update ExecuteActionData in actions.ts to include authConfig field of type CustomAuthData.
  • Error Handling:
    • Update error message in Entity.ts to include documentation link for unsupported local tools.
  • Misc:
    • Remove logger warning in factory.ts for unsupported local tools in host environment.

This description was created by Ellipsis for 72b8ec8. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to 6d4f4d1 in 21 seconds

More details
  • Looked at 57 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_GL9n0pf3nXvMzU09


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

js/src/sdk/models/actions.ts Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Oct 22, 2024

This comment was generated by github-actions[bot]!

JS SDK Coverage Report

📊 Coverage report for JS SDK can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/coverage-11466997240/coverage/index.html

📁 Test report folder can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/html-report-11466997240/html-report/report.html

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot 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 to me! Incremental review on 23d7924 in 10 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_oFNm6WoCTK3cO1qm


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot 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 to me! Incremental review on 68e58d1 in 25 seconds

More details
  • Looked at 26 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js/src/sdk/models/Entity.ts:38
  • Draft comment:
    The error message is too specific and assumes the user is trying to use local tools. Consider making it more general to cover other possible scenarios.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment is addressing a change made in the diff, specifically the modification of the error message. The comment suggests that the error message might be too specific, which could be a valid point if the error message is intended to cover a broader range of scenarios. However, without additional context on the intended use cases, it's difficult to definitively say if the comment is correct.
    The comment might be assuming too much about the intended use cases of the error message. The specificity could be intentional and necessary for the context in which this code is used.
    The comment raises a valid point about the potential over-specificity of the error message, which could be worth considering if the error message is meant to be more general.
    The comment is relevant to the change made in the diff and raises a potentially valid concern about the specificity of the error message. It should be kept for consideration.

Workflow ID: wflow_qldsQqD4CKXnkM0i


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot 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 to me! Incremental review on a45299e in 11 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js/src/sdk/models/Entity.ts:38
  • Draft comment:
    Consider including a documentation link or additional guidance in the error message to help users troubleshoot the issue.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The error message in line 38 was updated to remove the documentation link. This change might reduce the helpfulness of the error message for users who encounter this issue.

Workflow ID: wflow_pdkDqOpJ1G1HeUIy


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot 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 to me! Incremental review on 72b8ec8 in 11 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js/src/sdk/models/Entity.ts:38
  • Draft comment:
    Consider adding a period at the end of the error message for consistency with standard error message formatting.
throw new Error(`Could not find action: ${actionName}.`);
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The error message in line 38 was updated to remove the period at the end. This change is unnecessary and inconsistent with standard error message formatting, which typically includes a period at the end of sentences.

Workflow ID: wflow_7eJraBWVCUWBs9GX


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@utkarsh-dixit utkarsh-dixit merged commit c574679 into master Oct 22, 2024
3 checks passed
@utkarsh-dixit utkarsh-dixit deleted the ft-add-custom-auth-data branch October 22, 2024 19:17
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.

1 participant