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

[DBotAverageScore] Migrate to Python, and fix '0' average causing a null value #28030

Merged
merged 16 commits into from Jul 11, 2023

Conversation

MichaelYochpaz
Copy link
Contributor

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: link to the issue

Description

Fix an issue where if all reputation values are '0', a null value is added to context.
Also migrate to Python, and update the logic to ignore '0' values in the calculation (after consulting @Ni-Knight).

Screenshots

Output before changes:
Screenshot 2023-07-10 at 13 46 51

Output after changes:
Screenshot 2023-07-10 at 13 46 59

@MichaelYochpaz MichaelYochpaz changed the title [DBostAverageScore] Migrate to Python, and fix '0' issue [DBostAverageScore] Migrate to Python, and fix '0' average causing a null value Jul 10, 2023
@MichaelYochpaz MichaelYochpaz force-pushed the xsup-26026-fix-dbotaveragescore branch 2 times, most recently from fe33b12 to 83fab98 Compare July 10, 2023 11:56
@MichaelYochpaz
Copy link
Contributor Author

@DeanArbel adding you since we'll need a force-merge, as a validation fails for removing the previous JS file.

@MichaelYochpaz MichaelYochpaz force-pushed the xsup-26026-fix-dbotaveragescore branch from 83fab98 to 322585b Compare July 10, 2023 12:03
@MichaelYochpaz MichaelYochpaz changed the title [DBostAverageScore] Migrate to Python, and fix '0' average causing a null value [DBotAverageScore] Migrate to Python, and fix '0' average causing a null value Jul 10, 2023
Copy link
Contributor

@bziser bziser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great

MichaelYochpaz and others added 2 commits July 10, 2023 16:47
Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com>
@ShirleyDenkberg
Copy link
Contributor

@Ni-Knight @bziser @DeanArbel Doc review completed.

MichaelYochpaz and others added 3 commits July 11, 2023 11:07
@DeanArbel DeanArbel merged commit b8c441e into master Jul 11, 2023
11 of 14 checks passed
@DeanArbel DeanArbel deleted the xsup-26026-fix-dbotaveragescore branch July 11, 2023 09:52
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Aug 2, 2023
…ull value (demisto#28030)

* Rewrite & replace JS script with Python

* Update code structure for better unit-tests

* Add unit-tests

* Ruff auto-fixes

* Add release-notes, bump version

* Update README.md

* Add JavaScript to known words

* Minor changes

* Apply suggestions from code review

Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com>

* Fix issue where script fails if there is only a single entry

* Bump version to resolve conflict

* Add release-notes note

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Add types to outputs

---------

Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Aug 2, 2023
…ull value (demisto#28030)

* Rewrite & replace JS script with Python

* Update code structure for better unit-tests

* Add unit-tests

* Ruff auto-fixes

* Add release-notes, bump version

* Update README.md

* Add JavaScript to known words

* Minor changes

* Apply suggestions from code review

Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com>

* Fix issue where script fails if there is only a single entry

* Bump version to resolve conflict

* Add release-notes note

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Add types to outputs

---------

Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants