oracle / oracle/accelerated-data-science
[Bug]: List methods ignores limit kwarg
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 124
- Forks
- 67
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 2
Description
Oracle-ads version used
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of oracle-ads.
-
I have confirmed this bug exists on the main branch of oracle-ads.
-
I agree to follow Code of Conduct.
Description
DataScienceJob.list_jobs,
ModelDeployment.list(
compartment_id=oci_environment.compartment_id,
project_id=oci_environment.project_id,
limit=15
)
This methods ignores the limit variable. Maybe another similar methods for other classes too.
How to Reproduce
ModelDeployment.list(
compartment_id=oci_environment.compartment_id,
project_id=oci_environment.project_id,
limit=15
)
What was Observed
returns a lot more then 15
What was Expected
Only 15 items
Version
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the ModelDeployment.list and DataScienceJob.list_jobs entry points, then trace how the limit argument is handled. Reproduce the ModelDeployment.list example with limit=15 and check related list methods for the same behavior. Done means the call returns no more than 15 items.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100