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

Changed the unify process to add a constant of the pack version to each Python file. #4844

Merged
merged 13 commits into from
Mar 23, 2025

Conversation

moishce
Copy link
Contributor

@moishce moishce commented Mar 4, 2025

…y process.

Related Issues

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

Description

Changed the unify process to add a constant of the pack version to each Python file.

@moishce moishce requested a review from ShahafBenYakir March 4, 2025 09:41
Copy link
Contributor

@ShahafBenYakir ShahafBenYakir left a comment

Choose a reason for hiding this comment

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

nice

global_name = f"{pack_id.upper()}_PACK_VERSION"
pack_version_statement = (
f"{global_name} = '{pack_version}'"
f"\ndemisto.debug(f'pack id = {pack_id}, pack version = {{{global_name}}}')"
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't it be only 2?

Suggested change
f"\ndemisto.debug(f'pack id = {pack_id}, pack version = {{{global_name}}}')"
f"\ndemisto.debug(f'pack id = {pack_id}, pack version = {{global_name}}')"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, with two, will it print "pack id = the_pack_id, pack version = {global_name}"

Copy link
Contributor

Choose a reason for hiding this comment

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

r u sure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2025-03-10 at 13 07 15

@moishce moishce merged commit 720005e into master Mar 23, 2025
24 checks passed
@moishce moishce deleted the pack-version branch March 23, 2025 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants