Skip to content

Added support for SkipHandlers#3802

Open
v15h9 wants to merge 5 commits intoSFDO-Tooling:mainfrom
v15h9:feature/Add-SkipHandler
Open

Added support for SkipHandlers#3802
v15h9 wants to merge 5 commits intoSFDO-Tooling:mainfrom
v15h9:feature/Add-SkipHandler

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 ±

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.

2 participants