Skip to content

Make project name optional #92

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

Merged
merged 12 commits into from
Jul 30, 2024
Merged

Conversation

alejandro-gonzalez-scale
Copy link
Contributor

Pull Request Summary

What's changed

Optional project_name Parameter for get_tasks() Function in Python SDK

Description:
This release includes an important update to the Scale API Python SDK that makes the project_name parameter optional for the get_tasks() function. Previously, project_name was a required parameter, which limited the flexibility of querying tasks.

Usage:

  • When calling get_tasks(), you can now omit the project_name parameter:

    tasks = scale_client.get_tasks(batch_name='example_batch', status='TaskStatus.Completed')
  • The function will work correctly with just the batch_name and status parameters, enhancing flexibility and ease of use.

Additional Notes:

  • This change is backward-compatible; existing code with the project_name parameter will continue to function without modification.

Thank you for using the Scale API Python SDK! If you have any questions or encounter any issues, please reach out to our support team.


Feel free to adjust any details to fit your specific needs or internal documentation style.

made project_name optional
new release tag
tests first draft
Copy link
Contributor

@jonathanfeng-scale jonathanfeng-scale left a comment

Choose a reason for hiding this comment

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

LGTM!

@alejandro-gonzalez-scale alejandro-gonzalez-scale merged commit f6d64cb into master Jul 30, 2024
3 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.

4 participants