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

add pb validations #4273

Merged
merged 9 commits into from
May 21, 2024
Merged

add pb validations #4273

merged 9 commits into from
May 21, 2024

Conversation

merit-maita
Copy link
Contributor

@merit-maita merit-maita commented May 12, 2024

Related Issues

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

Description

Copy link

Changelog(s) in markdown:

  • Refactored PB101 and PB123 valildations. #4273

@merit-maita merit-maita requested review from dantavori and RosenbergYehuda and removed request for dantavori and RosenbergYehuda May 16, 2024 10:35
@merit-maita merit-maita marked this pull request as ready for review May 16, 2024 10:36
@merit-maita merit-maita requested review from YuvHayun and removed request for dantavori and RosenbergYehuda May 16, 2024 10:36
# Conflicts:
#	demisto_sdk/commands/validate/sdk_validation_config.toml
Copy link
Contributor

@thefrieddan1 thefrieddan1 left a comment

Choose a reason for hiding this comment

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

Good job.
Please see comments.
If for loops can run sequentially and are not dependent on each other it is better to break them to separate runs instead of nested for loops

# Rename the keys in dictionary to upper case
next_tasks_upper = {k.upper(): v for k, v in next_tasks.items()}

mapper_dict = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like we can define this once outside the nested for loops. as a CONST

# Rename the keys in dictionary to upper case
next_tasks_upper = {k.upper(): v for k, v in next_tasks.items()}

mapper_dict = {
Copy link
Contributor

Choose a reason for hiding this comment

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

move to CONST

@merit-maita merit-maita merged commit 85525ca into master May 21, 2024
27 checks passed
@merit-maita merit-maita deleted the PB_refactor_validate branch May 21, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants