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

Remove checking 6.2 server version #30351

Merged
merged 40 commits into from Nov 2, 2023

Conversation

merit-maita
Copy link
Contributor

@merit-maita merit-maita commented Oct 23, 2023

Status

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

Related Issues

fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-8725

Description

removed usage of is_ge_version() method with version 6.2.0.

Must have

  • Tests
  • Documentation

@merit-maita merit-maita requested review from thefrieddan1 and DeanArbel and removed request for Ni-Knight October 30, 2023 12:25
@@ -9646,9 +9642,9 @@ def __init__(self,
sort=None,
):
# searchAfter is available in searchIndicators from version 6.1.0
self._can_use_search_after = is_demisto_version_ge('6.1.0')
self._can_use_search_after = True
Copy link
Contributor

Choose a reason for hiding this comment

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

@merit-maita it'll be a cleaner implementation if you remove this argument and its usage.
The same goes for _can_use_filter_fields.
These are feature flags - since they are no longer needed, the old implementation isn't needed either.

@@ -6843,8 +6803,8 @@ def test_iterator__empty_page(self, mocker):
results = []
for res in search_indicators:
results.append(res)
assert len(results) == 0
assert search_indicators.page == 19
assert len(results) == 7
Copy link
Contributor

Choose a reason for hiding this comment

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

@merit-maita please remove the test, using the page search should no longer be supported after 6.2.

Copy link
Contributor

@DeanArbel DeanArbel left a comment

Choose a reason for hiding this comment

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

Great job, well done.

@merit-maita merit-maita merged commit a1d2836 into master Nov 2, 2023
20 checks passed
@merit-maita merit-maita deleted the Remove_checking_6.2_server_version branch November 2, 2023 11:14
MosheEichler pushed a commit that referenced this pull request Nov 2, 2023
* removed usage of is_ge_version function with server version less than 6.2.0.

* added rn

* updated docker image

* added rn

* removed unit tests

* fixed unittests

* edit unittest

* fixed unittest

* edited unittests

* edited unittests

* mypy fixes

* fixes

* fixes

* updated docker image

* added rn

* mypy fixes

* edited unittests

* edit

* edit unit tests

* edited the tpb to work with ng server

* edited tpb

* removed paging unit tests, removed arguments

* reverted removing the args
MosheEichler added a commit that referenced this pull request Nov 2, 2023
* add a way to upload binary file (#30532)

* add a way to upload binary file

* patch ci/cd error

* patch ci/cd error

* Apply suggestions from code review

Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>

---------

Co-authored-by: Pierre SOLER <9917674+Winultimatum@users.noreply.github.com>
Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>

* Update Docker Image To demisto/crypto  (#30624)

* Updated Metadata Of Pack AzureSecurityCenter

* Added release notes to pack AzureSecurityCenter

* Packs/AzureSecurityCenter/Integrations/AzureSecurityCenter_v2/AzureSecurityCenter_v2.yml Docker image update

* fix jira convert issues print (#30608)

fix jira convert issues print #30608

* fix merge dev secrets and sync buckets (#30609)

fix merge dev secrets and sync buckets #30609

* Fixed Gitlab event collector fetch (#30379)

* Fix GitLab collector

* release notes

* pre-commit fix

* pre-commit fix

* increase coverage

* CR fixes

* fix

* Update 2_2_19.md

* CR fix

* default limit to 500

* update docker

* Remove checking 6.2 server version (#30351)

* removed usage of is_ge_version function with server version less than 6.2.0.

* added rn

* updated docker image

* added rn

* removed unit tests

* fixed unittests

* edit unittest

* fixed unittest

* edited unittests

* edited unittests

* mypy fixes

* fixes

* fixes

* updated docker image

* added rn

* mypy fixes

* edited unittests

* edit

* edit unit tests

* edited the tpb to work with ng server

* edited tpb

* removed paging unit tests, removed arguments

* reverted removing the args

* Fix for dhcp (#30610)

* Updated the modeling rule of microsoft dhcp

* Updated the modeling rule of microsoft dhcp

* Update 1_0_3.md

---------

Co-authored-by: eepstain <116078117+eepstain@users.noreply.github.com>

* Xdr lite playbbok (#30497)

* new incidents fields

* New playbook,incident type,script,layout for xdr lite
changing integration default incident type and classifier

* resolve conflicts - RN

* update RN, update unsearchable to true in incident fields and remove unnecessary incident fields from the layout

* updated layout - InvestigationVerdict dynamic section

* Apply suggestions from code review

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

* fixes after review

* Update Packs/CortexXDR/Scripts/InvestigationVerdict/README.md

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

* fix for test playbooks Test_XDR_Playbook_execute_script_commands.yml

* fix after review. change script name

* RN after fixes

* RN after fixes

* change name of the script yml file in pack ignore

* lint fix

* time range fix

---------

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

* comment out us its looks unused and adding unchanged_files to the changed_files (#30632)

* OpsGenie v3 - Fix polling commands (#30579)

* fix get_request_command method

* update RN

* validate results.content is not empty

* add "." to missing descriptions

* added test_get_request_command_valid_raw_response

* fix mypy

* fix flake8

* [Marketplace Contribution] Atlassian Jira - Content Pack Update (#30512)

* [Marketplace Contribution] Atlassian Jira - Content Pack Update (#29838)

* "contribution update to pack "Atlassian Jira""

* Update YML

* Update Readme

* Add missing docstrings

* Apply suggestions from code review

Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com>
Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com>

* Adjust response type to empty body response

* Added periods on various strings, per pre-commit test failure

* Unit tests for JIRA assignee

---------

Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com>
Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com>
Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com>
Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com>
Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com>

* updated docker and fixed RN

* added self to the class function

* restored some yml marketplace download changeS

* fixed the unit test

* typing

---------

Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com>
Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com>
Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com>
Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com>
Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com>
Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com>
Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com>

---------

Co-authored-by: Pierre <Winultimatum@users.noreply.github.com>
Co-authored-by: Pierre SOLER <9917674+Winultimatum@users.noreply.github.com>
Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>
Co-authored-by: Koby Meir <kobymeir@users.noreply.github.com>
Co-authored-by: Yaakov Praisler <59408745+yaakovpraisler@users.noreply.github.com>
Co-authored-by: merit-maita <49760643+merit-maita@users.noreply.github.com>
Co-authored-by: yasta5 <112320333+yasta5@users.noreply.github.com>
Co-authored-by: eepstain <116078117+eepstain@users.noreply.github.com>
Co-authored-by: OmriItzhak <115150792+OmriItzhak@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Co-authored-by: Moshe Galitzky <112559840+moishce@users.noreply.github.com>
Co-authored-by: Adi Daud <46249224+adi88d@users.noreply.github.com>
Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com>
Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com>
Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com>
Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com>
Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com>
Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com>
Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com>
Co-authored-by: MosheEichler <meichler@paloaltonetworks.com>
sapirshuker pushed a commit that referenced this pull request Dec 21, 2023
* removed usage of is_ge_version function with server version less than 6.2.0.

* added rn

* updated docker image

* added rn

* removed unit tests

* fixed unittests

* edit unittest

* fixed unittest

* edited unittests

* edited unittests

* mypy fixes

* fixes

* fixes

* updated docker image

* added rn

* mypy fixes

* edited unittests

* edit

* edit unit tests

* edited the tpb to work with ng server

* edited tpb

* removed paging unit tests, removed arguments

* reverted removing the args
sapirshuker pushed a commit that referenced this pull request Dec 21, 2023
* add a way to upload binary file (#30532)

* add a way to upload binary file

* patch ci/cd error

* patch ci/cd error

* Apply suggestions from code review

Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>

---------

Co-authored-by: Pierre SOLER <9917674+Winultimatum@users.noreply.github.com>
Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>

* Update Docker Image To demisto/crypto  (#30624)

* Updated Metadata Of Pack AzureSecurityCenter

* Added release notes to pack AzureSecurityCenter

* Packs/AzureSecurityCenter/Integrations/AzureSecurityCenter_v2/AzureSecurityCenter_v2.yml Docker image update

* fix jira convert issues print (#30608)

fix jira convert issues print #30608

* fix merge dev secrets and sync buckets (#30609)

fix merge dev secrets and sync buckets #30609

* Fixed Gitlab event collector fetch (#30379)

* Fix GitLab collector

* release notes

* pre-commit fix

* pre-commit fix

* increase coverage

* CR fixes

* fix

* Update 2_2_19.md

* CR fix

* default limit to 500

* update docker

* Remove checking 6.2 server version (#30351)

* removed usage of is_ge_version function with server version less than 6.2.0.

* added rn

* updated docker image

* added rn

* removed unit tests

* fixed unittests

* edit unittest

* fixed unittest

* edited unittests

* edited unittests

* mypy fixes

* fixes

* fixes

* updated docker image

* added rn

* mypy fixes

* edited unittests

* edit

* edit unit tests

* edited the tpb to work with ng server

* edited tpb

* removed paging unit tests, removed arguments

* reverted removing the args

* Fix for dhcp (#30610)

* Updated the modeling rule of microsoft dhcp

* Updated the modeling rule of microsoft dhcp

* Update 1_0_3.md

---------

Co-authored-by: eepstain <116078117+eepstain@users.noreply.github.com>

* Xdr lite playbbok (#30497)

* new incidents fields

* New playbook,incident type,script,layout for xdr lite
changing integration default incident type and classifier

* resolve conflicts - RN

* update RN, update unsearchable to true in incident fields and remove unnecessary incident fields from the layout

* updated layout - InvestigationVerdict dynamic section

* Apply suggestions from code review

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

* fixes after review

* Update Packs/CortexXDR/Scripts/InvestigationVerdict/README.md

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

* fix for test playbooks Test_XDR_Playbook_execute_script_commands.yml

* fix after review. change script name

* RN after fixes

* RN after fixes

* change name of the script yml file in pack ignore

* lint fix

* time range fix

---------

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

* comment out us its looks unused and adding unchanged_files to the changed_files (#30632)

* OpsGenie v3 - Fix polling commands (#30579)

* fix get_request_command method

* update RN

* validate results.content is not empty

* add "." to missing descriptions

* added test_get_request_command_valid_raw_response

* fix mypy

* fix flake8

* [Marketplace Contribution] Atlassian Jira - Content Pack Update (#30512)

* [Marketplace Contribution] Atlassian Jira - Content Pack Update (#29838)

* "contribution update to pack "Atlassian Jira""

* Update YML

* Update Readme

* Add missing docstrings

* Apply suggestions from code review

Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com>
Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com>

* Adjust response type to empty body response

* Added periods on various strings, per pre-commit test failure

* Unit tests for JIRA assignee

---------

Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com>
Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com>
Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com>
Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com>
Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com>

* updated docker and fixed RN

* added self to the class function

* restored some yml marketplace download changeS

* fixed the unit test

* typing

---------

Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com>
Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com>
Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com>
Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com>
Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com>
Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com>
Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com>

---------

Co-authored-by: Pierre <Winultimatum@users.noreply.github.com>
Co-authored-by: Pierre SOLER <9917674+Winultimatum@users.noreply.github.com>
Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>
Co-authored-by: Koby Meir <kobymeir@users.noreply.github.com>
Co-authored-by: Yaakov Praisler <59408745+yaakovpraisler@users.noreply.github.com>
Co-authored-by: merit-maita <49760643+merit-maita@users.noreply.github.com>
Co-authored-by: yasta5 <112320333+yasta5@users.noreply.github.com>
Co-authored-by: eepstain <116078117+eepstain@users.noreply.github.com>
Co-authored-by: OmriItzhak <115150792+OmriItzhak@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Co-authored-by: Moshe Galitzky <112559840+moishce@users.noreply.github.com>
Co-authored-by: Adi Daud <46249224+adi88d@users.noreply.github.com>
Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com>
Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com>
Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com>
Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com>
Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com>
Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com>
Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com>
Co-authored-by: MosheEichler <meichler@paloaltonetworks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants