-
Notifications
You must be signed in to change notification settings - Fork 176
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
Helper reorg #1380
Helper reorg #1380
Conversation
global_helpers/default_test.py
Outdated
@@ -6,7 +6,7 @@ | |||
import unittest | |||
|
|||
sys.path.append(os.path.dirname(__file__)) | |||
import panther_default as p_d # pylint: disable=C0413 | |||
import panther_aws_helpers as p_d # pylint: disable=C0413 |
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.
Also the disable=C0413
smells. Probably it's because it has to be bellow the sys.path.append
, but we can fix that by moving the sys.path.append in an __init__.py
file under the global_helpers
directory.
@@ -19,14 +19,16 @@ | |||
|
|||
import panther_asana_helpers as p_a_h # pylint: disable=C0413 |
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.
Interesting, the disable=C0413
is all over the place. I can address it after you merge this PR 😄
@@ -19,14 +19,16 @@ | |||
|
|||
import panther_asana_helpers as p_a_h # pylint: disable=C0413 | |||
import panther_auth0_helpers as p_auth0_h # pylint: disable=C0413 | |||
import panther_aws_helpers as p_aws_h # pylint: disable=C0413 | |||
import panther_azuresignin_helpers as p_asi_h # pylint: disable=C0413 |
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.
Maybe p_azuresignin_h
instead?
import panther_cloudflare_helpers as p_cf_h # pylint: disable=C0413 | ||
import panther_crowdstrike_fdr_helpers as p_cf_fdr_h # pylint: disable=C0413 |
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.
Maybe p_crowdstrike_fdr_h
instead?
import panther_cloudflare_helpers as p_cf_h # pylint: disable=C0413 | ||
import panther_crowdstrike_fdr_helpers as p_cf_fdr_h # pylint: disable=C0413 | ||
import panther_greynoise_helpers as p_greynoise_h # pylint: disable=C0413 | ||
import panther_ipinfo_helpers as p_i_h # pylint: disable=C0413 |
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.
p_ipinfo_h
?
import panther_cloudflare_helpers as p_cf_h # pylint: disable=C0413 | ||
import panther_crowdstrike_fdr_helpers as p_cf_fdr_h # pylint: disable=C0413 | ||
import panther_greynoise_helpers as p_greynoise_h # pylint: disable=C0413 | ||
import panther_ipinfo_helpers as p_i_h # pylint: disable=C0413 | ||
import panther_lookuptable_helpers as p_l_h # pylint: disable=C0413 |
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.
p_lut_h
?
import panther_greynoise_helpers as p_greynoise_h # pylint: disable=C0413 | ||
import panther_ipinfo_helpers as p_i_h # pylint: disable=C0413 | ||
import panther_lookuptable_helpers as p_l_h # pylint: disable=C0413 | ||
import panther_notion_helpers as p_notion_h # pylint: disable=C0413 | ||
import panther_oss_helpers as p_o_h # pylint: disable=C0413 | ||
import panther_snyk_helpers as p_snyk_h # pylint: disable=C0413 | ||
import panther_tailscale_helpers as p_tscale_h # pylint: disable=C0413 |
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.
p_tailscale_h
?
😱 |
😱 |
Background
panther_base_helpers
is overloaded and contains helpers that are specific to various log sources. This is a large reorg of helper functions to make things more consistent.Changes
panther_base_helpers
to their appropriatepanther_<logtype>_helpers
modulepanther_base_helpers
is no longer dependent onpanther_config
panther_config_defaults
Testing