-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Penfield AI Pull Request 2 #15523
Penfield AI Pull Request 2 #15523
Conversation
Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @ShacharKidor will know he can start review the proposed changes. |
|
||
if demisto.command() == 'test-module': | ||
result = test_api(client) | ||
if result == 'healthy': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API response can be healthy
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've converted it a more standard 0=healthy and 1=error
|
||
# get online analyst ids | ||
analysts = demisto.executeCommand('getUsers', {'online': True})[0]['Contents'] | ||
analyst_ids = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is analyst_id supposed to be array? or comma-seperated string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is supposed to be an array of strings.
I have added my code changes which should address the questions. Let me know if you spot anything amiss. Thanks. |
@penfield-chan Hi, let’s schedule a demo call. |
This PR is starting to get a little stale. @penfield-chan are there any changes you wanted to make since @daryakoval's last comment? |
Re-scheduled demo for next week. |
This PR is starting to get a little stale. @penfield-chan are there any changes you wanted to make since @daryakoval's last comment? |
Hi, we have couple comments from demo:
|
|
||
|
||
def get_assignee(client: Client, args) -> CommandResults: | ||
analyst_ids = args.get('analyst_ids') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
analyst_ids = args.get('analyst_ids') | |
analyst_ids = argToList(args.get('analyst_ids')) |
This PR is starting to get a little stale. @penfield-chan are there any changes you wanted to make since @daryakoval's last comment? |
PR review updates: 1) update analyst_ids argument to use comma-separated values in a string instead of list. 2) add basic Penfield Assign playbook
@daryakoval sorry for the delayed update on this PR. Two main changes are introduced after the demo:
Could you please take another look? Thanks a lot. |
Update fromversion to 6.0.0 Co-authored-by: Darya Koval <[email protected]>
* Penfield AI Pull Request 2 (#15523) * penfield init * issue 1: remove unowned files from pack-ignore * address pull request issues * address pull request issues 2 * remove code comment * udpate command results * change healthy response code * xflake and unittest work * Update penfield content pack metadata with company info * Update to use string as analyst_ids arg * Add Penfield Assign playbook * Add playbook README with the playbook image (#2) * use argToList helper instead of split * Update Packs/PenfieldAI/Playbooks/Penfield_Assign.yml Update fromversion to 6.0.0 Co-authored-by: Darya Koval <[email protected]> Co-authored-by: the-naturel <[email protected]> Co-authored-by: Long <[email protected]> Co-authored-by: Long Tan <[email protected]> Co-authored-by: Darya Koval <[email protected]> * formatting files Co-authored-by: penfield-chan <[email protected]> Co-authored-by: the-naturel <[email protected]> Co-authored-by: Long <[email protected]> Co-authored-by: Long Tan <[email protected]> Co-authored-by: Darya Koval <[email protected]> Co-authored-by: Darya Koval <[email protected]>
Followup to: #15074
Contributing to Cortex XSOAR Content
Make sure to register your contribution by filling the contribution registration form
The Pull Request will be reviewed only after the contribution registration form is filled.
Status
Related Issues
11 issues were mentioned in the last PR. All should be addressed here. Unclear why test failed in remote environment, may need updated results for CircleCI to determine why.
Description
Resolve the 11 identified issues, perform some other supporting changes.
Screenshots
Paste here any images that will help the reviewer
Minimum version of Cortex XSOAR
Does it break backward compatibility?
Must have