Remove harcoded first value when getting all indicators#796
Conversation
|
Hi @jorgeacjitx, |
Yes, @yassine-ouaamou the problem is that the pre-commit hook is reformatting my code again. I just skipped the pre-commit hook and now the formatting looks good. Please look at the formatting pre-commit hook because it's not working fine. |
| with_pagination = kwargs.get("withPagination", False) | ||
| with_files = kwargs.get("withFiles", False) | ||
| if get_all: | ||
| first = 100 |
There was a problem hiding this comment.
can you take "first" value when present and keep 100 as default when "fisrt" is not present ?
There was a problem hiding this comment.
Hi @aHenryJard,
The param "first" has a default value of 500:
When the "get_all" param is true, it is still used for querying (L121):
client-python/pycti/entities/opencti_indicator.py
Lines 109 to 121 in 58a624b
aHenryJard
left a comment
There was a problem hiding this comment.
Tested locally all good for me, thank you.
Proposed changes
Related issues
firstparameter is not customizable when using thegetAlloption inlistmethod #457Checklist
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...