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

Added support for SkipHandlers #3802

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

v15h9
Copy link

@v15h9 v15h9 commented Jun 15, 2024

  • Adding support for SkipHandlers added in PackageInstallRequest starting from API Version 61.0 (Summer '24)

@v15h9 v15h9 requested a review from a team as a code owner June 15, 2024 22:04
Copy link
Contributor

@jstvz jstvz left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, @v15h9. Requested changes/queries are marked with ±

@@ -62,6 +64,7 @@ class PackageInstallOptions(CCIModel):
security_type: SecurityType = SecurityType.FULL
apex_compile_type: Optional[ApexCompileType] = None
upgrade_type: Optional[UpgradeType] = None
skip_handlers: SkipHandlers = SkipHandlers.FEATURE_ENFORCEMENT
Copy link
Contributor

Choose a reason for hiding this comment

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

±: We don't want to silently change behavior, so it shouldn't be a default. Instead, it should be an optional Option set to None.

Copy link
Author

Choose a reason for hiding this comment

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

Updated to None

Comment on lines 92 to 93
if "skip_handlers" in task_options:
options.skip_handlers = SkipHandlers(task_options["skip_handlers"])
Copy link
Contributor

Choose a reason for hiding this comment

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

💭: Implementation note: The sf flag allows multiple values and combines them into a comma-separated string for PackageInstallCreateRequest. We don't need to do this here now, but we might need to if they add more SkipHandlers in the future.

Copy link
Author

Choose a reason for hiding this comment

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

Added a comment for future consideration.

@v15h9
Copy link
Author

v15h9 commented Jul 2, 2024

@jstvz Any more changes required for this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants