-
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
Initial Bonusly Package Content #7198
Initial Bonusly Package Content #7198
Conversation
Tyler Rorabaugh seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
@roysagi let's change the base too |
…m for all of the nice work on the updated dev docs. I also wish I could provide AutoGratitude but I dont have admin level points
Hi Everyone, I fixed the commit by amending my email. I don't quite follow the CircleCI failures. |
@@ -0,0 +1,52 @@ | |||
commonfields: |
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.
please split this file to python and yml files. You can use demisto-sdk split-yml -i Packs/Bonusly/Scripts/IncOwnerToBonuslyUser.yml -o Packs/Bonusly/Scripts/IncOwnerToBonuslyUser
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 the output command missing a file extension? I don't see what file extension it should be.
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 assume this will create a directory with the split files?
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.
That command produced a python 3.7 error...but Im running 3.8...
Detected python version: [3.8] for docker image: demisto/python3:3.8.2.8159 Copying pipenv files from: /Users/******/IdeaProjects/demisto_content/venv/lib/python3.8/site-packages/demisto_sdk/commands/lint/resources/pipfile_python3 Warning: the environment variable LANG is not set! We recommend setting this in ~/.profile (or equivalent) for proper expected behavior. Warning: Python 3.7 was not found on your system… Would you like us to install CPython 3.7.7 with pyenv? [Y/n]:
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.
this seems to be pipenv related - I'll send over a possible solution by slack.
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.
should be fixed
|
||
|
||
def inc_owner_bonusly_user(): | ||
owner_username = demisto.incidents()[0].get("owner") |
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.
same issue as above - I am not sure this is what you wanted to achieve - please explain.
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.
Both of these are used to get the owner of the incident's email address and utilized in the playbook as the owner in the product is only the username and not their email. For their playbook to work, you need the incident owners email.
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.
same as above - please create an argument for owner_username and remove this line. Use the incident context to fill this argument in the playbook.
|
||
|
||
def inc_owner_bonusly_user(): | ||
owner_username = demisto.incidents()[0].get("owner") |
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.
same as above - please create an argument for owner_username and remove this line. Use the incident context to fill this argument in the playbook.
@@ -0,0 +1,52 @@ | |||
commonfields: |
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.
this seems to be pipenv related - I'll send over a possible solution by slack.
@roysagi can I begin playbook review here (is the code finalized)? |
@idovandijk - I talked to @trorabaugh today, he needs to make some changes in his scripts that will affect the playbooks. I think it is best if I ping you once I see the changes have been made. |
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 like the idea, the playbooks look good. I have a few comments for changes though.
I know you are working on a change for the script so the way the playbook looks may change a bit.
Please reach out if you have any questions or need assistance with making the changes.
Once the changes are done we can probably close this out with a short meeting to see an incident running smoothly.
Bonusly - AutoGratitude
-
I like the use of Lists. In the playbook input
BonuslyLookupList
I suggest starting the description with a short explanation of what this input is. Then proceed with the explanation you already added which explains how to do it. -
Task Added scripts (with scripts.json), playbooks and reports. #6 starts a timer but it is never stopped. I think timers are automatically when incidents close, but since this playbook doesn't contain a task that closes the investigation, I recommend using the
Done
task to stop the time to assignment
-
Why do we want an input checking whether SLA should be checked? The description of the playbook implies that that is the purpose of it, so it would make sense to remove that input and always check SLA, or to change it to "true" by default.
But removing the SLA part would leave us with a 2-task playbook, one is the script and the other is the create bonus command, so I recommend keeping that - it's a good use case. -
To make the playbook even more customizable and generic, you could specify the SLAs as playbook inputs, and then look at those inputs. This would make it very easy for other users to simply use this playbook in their incidents and specify in the inputs which SLAs matter for them
-
Please add descriptions to all tasks
Bonusly - Create Bonus
Let's remove this playbook and use the task directly in the other one. If the task can be used just like that then we should avoid complicating with extra playbooks.
Yeah I will have to get to this hopefully either later this week or on the weekend as its a challenge to do during the work week.
ok
Ok great ill update that
Not sure I quite follow
Yeah the thing I was trying to figure out is how you can use SLA's as inputs as they are generally set by the incident I think. Any thoughts on how to make this customization?
Thx for pointing this out ill check them all again
This part I might disagree on. The challenge I've seen with customers is that sometimes they just want to be able to drop a create task in without having to think about how the command works or learn the command. That was why I created a separate playbook so that it could just be included without needing to know how it works. I can remove it though if people don't think its useful. For me I like when I have example CRUD playbooks as it allows me to just drop them into larger playbooks. |
I was wondering about this task which determines whether to check the SLA before granting the Bonusly. My thought was that this playbook is there to only provide bonusly of SLA was met, so I can't see the reason in making this check I thought that if we are not checking the SLA then the playbook kinda loses its purpose.
SLAs can be changed throughout the incident, yes. I believe you can still pass their values as inputs to the playbook. So if
Can you please elaborate? I understand your position but since this playbook only contains 1 task: I can't see the reason for a customer to prefer to edit the playbook inputs instead of task inputs. Thanks again, please tell me if there are any problems or if something is still unclear. |
…te bonus playbook
adding line at the end of py file
|
||
def bonusly_test(self): | ||
suffix = 'bonuses' | ||
self._http_request('GET', suffix) |
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.
self._http_request('GET', suffix) | |
return self._http_request('GET', suffix) |
I see your test_module is failing, I believe this is the reason
fixing test_module
Me and @trorabaugh are waiting on a bonusly dummy user for testing - then we proceed with this PR |
@roysagi - intro was sent if you need anything else just ping them |
Do I need to do anything for the conflicting files? |
Anything else I need to do here? |
Looks like just fixing conflicts.. @roysagi and I both approved |
@roysagi please the validation and lets merge this |
@roysagi please fix the validation error and make sure this PR is merged |
* Initial Bonusly Package Content (#7198) * Initial Add * Initial Add of Bonusly. I want to thank francesco and the content team for all of the nice work on the updated dev docs. I also wish I could provide AutoGratitude but I dont have admin level points * Added additional readme content based on generate docs request * Updated Ignore * fixed validation outputs * fixed validation outputs * updating validation checks * initial commit * added again and also added new comments and fixed incorrect logic * Fixed commit issues, removed duplicate files, removed individual create bonus playbook * Added new adjustments based on feedback thanks a bunch Roy * Added new adjustments based on feedback thanks a bunch Roy * Update IncOwnerToBonuslyUser.py adding line at the end of py file * added pb readme, img * updated img link in pb readme * Updated secrets ignore file to ignore the email addresses * Updated descriptions * Updated * Updated descriptions * Update Bonusly.py fixing test_module * Update IncOwnerToBonuslyUser.py * Update IncOwnerToBonuslyUser.yml * Update IncOwnerToBonuslyUser.yml * Update IncOwnerToBonuslyUser.py * Update IncOwnerToBonuslyUser.py * Update Bonusly_-_AutoGratitude.yml * Update Bonusly_-_AutoGratitude.yml * Update Bonusly_-_AutoGratitude.yml * Update Bonusly_-_AutoGratitude.yml * Update IncOwnerToBonuslyUser.yml * Update IncOwnerToBonuslyUser.yml * Update Packs/Bonusly/pack_metadata.json * Update Bonusly.yml * Update IncOwnerToBonuslyUser.yml Co-authored-by: Tyler Rorabaugh <[email protected]> Co-authored-by: roysagi <[email protected]> Co-authored-by: idovandijk <[email protected]> Co-authored-by: Alex Fiedler <[email protected]> Co-authored-by: Anar Azadaliyev <[email protected]> * remove TPB * Update Bonusly.yml (#9002) Co-authored-by: Tyler Rorabaugh <[email protected]> Co-authored-by: Tyler Rorabaugh <[email protected]> Co-authored-by: idovandijk <[email protected]> Co-authored-by: Alex Fiedler <[email protected]> Co-authored-by: Anar Azadaliyev <[email protected]> Co-authored-by: ronykoz <[email protected]> Co-authored-by: syaakovi <[email protected]>
Status
Related Issues
fixes: link to the issue
Description
This is an initial bonusly package content.
Bonus.ly is an employee recognition platform which enterprises use to for employee recognition. We're building tools to help people feel a sense of purpose and progress at work. The platform which also has an API enables employees to recognize each other by providing a point based bonus system. Bonus.ly helps your employees feel connected, engaged, and aligned is mission critical right now. Bonusly makes employee recognition easy and fun, fostering community and creating company-wide alignment. It also provides employees with positive feedback in the work that they are doing.
Screenshots
Minimum version of Demisto
Does it break backward compatibility?
Must have
Demisto Partner?