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

fix(agents-api): Fix JobStatus name in get job endpoint #544

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

HamadaSalhab
Copy link
Contributor

@HamadaSalhab HamadaSalhab commented Oct 2, 2024

Important

Fixes name attribute in get_job_status in routers.py and updates string encoding and exception syntax in other files.

  • Behavior:
    • Fixes name attribute in get_job_status function in routers.py to use job_description.workflow_type instead of handle.id.
  • Formatting:
    • Adjusts string encoding in raise_complete_async.py and update_execution.py to use double quotes for ascii.
    • Updates exception raising syntax in update_execution.py for consistency.

This description was created by Ellipsis for bfc8490. 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.

👍 Looks good to me! Reviewed everything up to 5f6c6f5 in 5 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. agents-api/agents_api/routers/jobs/routers.py:53
  • Draft comment:
    Ensure that 'job_description.workflow_type' is the correct field for the 'name' attribute in JobStatus. Verify that this change aligns with the intended use of the 'name' field.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The change in the PR modifies the 'name' field of the JobStatus object to use 'job_description.workflow_type' instead of 'handle.id'. This seems to align with the intent of the PR title, which is to fix the JobStatus name in the get job endpoint. However, it's important to ensure that 'job_description.workflow_type' is the correct field to use for the 'name'.

Workflow ID: wflow_iZYbaCgJPS6jQfGM


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

@HamadaSalhab HamadaSalhab linked an issue Oct 2, 2024 that may be closed by this pull request
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 bfc8490 in 9 seconds

More details
  • Looked at 48 lines of code in 2 files
  • Skipped 2 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. agents-api/agents_api/routers/tasks/update_execution.py:61
  • Draft comment:
    Ensure the project is using Python 3.10 or later, as the match-case statement is not compatible with earlier versions.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The code uses a match-case statement to handle different request types. However, the match-case statement is only available in Python 3.10 and later. If the project supports older versions of Python, this could cause compatibility issues.

Workflow ID: wflow_7v66ktgsnBFqM7e4


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

@HamadaSalhab HamadaSalhab merged commit 990ea1a into dev Oct 2, 2024
6 of 7 checks passed
@HamadaSalhab HamadaSalhab deleted the x/fix-get-job-endpoint branch October 2, 2024 17:05
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.

agents-api: GET /job/{job-id} throws Internal Server Error
1 participant