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

first parameter is not customizable when using the getAll option in list method #457

Open
axelfahy opened this issue Sep 18, 2023 · 0 comments
Labels
feature use for describing a new feature to develop

Comments

@axelfahy
Copy link
Contributor

Description

When using the list method of entities with the getAll parameter, the first parameter is overwritten.

For example, trying to run:

reports = opencti_api_client.report.list(
    first=200,
    withPagination=True,
    orderBy="published",
    orderMode="desc",
    getAll=True,
)

will not fetch the report 200 by 200 since the first value is overwritten:

if get_all:
first = 100

This is the same for the list method of all entities.

Environment

  1. OS (where OpenCTI server runs): pycti client
  2. OpenCTI version: pycti==5.8.7
  3. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. List entities with the getAll parameter and the first parameter
  2. Observe that the first parameter has been changed.

Expected Output

I expected to be able to specify the first and the getAll parameter.

Actual Output

Number of queries done is not the one expected since the first parameter has been changed.

@SamuelHassine SamuelHassine added the feature use for describing a new feature to develop label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature use for describing a new feature to develop
Projects
None yet
Development

No branches or pull requests

2 participants