Skip to content

Commit

Permalink
Action runs limit (#126)
Browse files Browse the repository at this point in the history
* limit to 100 recent action runs

* bump version
  • Loading branch information
dfederschmidt authored Sep 27, 2023
1 parent 9a07112 commit 11fc43f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"icon": "media/soarcloud.png",
"publisher": "Splunk",
"license": "Apache-2.0",
"version": "0.0.31",
"version": "0.0.32",
"engines": {
"vscode": "^1.72.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/soar/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ export class SoarClient {
}

listActionRuns = async() => {
return await this.httpClient.get<models.SoarCollection<models.SoarActionRun>>("action_run", {params: {"pretty": true, "page_size": 0, "sort": "create_time", "order": "desc"}})
return await this.httpClient.get<models.SoarCollection<models.SoarActionRun>>("action_run", {params: {"pretty": true, "page_size": 100, "sort": "create_time", "order": "desc"}})
}

listUserActionRuns = async() => {
return await this.httpClient.get<models.SoarCollection<models.SoarActionRun>>("action_run", {params: {"pretty": true, "page_size": 0, "sort": "create_time", "order": "desc", "_filter_owner__username": `'${this.username}'`}})
return await this.httpClient.get<models.SoarCollection<models.SoarActionRun>>("action_run", {params: {"pretty": true, "page_size": 100, "sort": "create_time", "order": "desc", "_filter_owner__username": `'${this.username}'`}})
}

getLastUserActionRun = async() => {
Expand Down

0 comments on commit 11fc43f

Please sign in to comment.