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

fix: report right command execution status #5500

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

CristiCanizales
Copy link
Contributor

What does this PR do?

  • Reports the command execution the right way

Functionality Before

  • steps would always show failure notification

Functionality After

  • steps show right notification

[skip-validate-pr]

@CristiCanizales CristiCanizales self-assigned this Mar 12, 2024
@CristiCanizales CristiCanizales requested a review from a team as a code owner March 12, 2024 22:10
@@ -444,9 +443,9 @@ export class IsvDebugBootstrapExecutor extends SfdxCommandletExecutor<{}> {
) {
channelService.streamCommandOutput(execution);
channelService.showChannelOutput();
notificationService.reportExecutionError(
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you explain this change please :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so the function we were calling before was 'reportExecutionError', which as the name says is used for reporting errors. I just changed it to the other function that is used to report general command execution

Copy link
Collaborator

Choose a reason for hiding this comment

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

got it. so now we will get a notification on command execution status?

Copy link
Contributor

@daphne-sfdc daphne-sfdc left a comment

Choose a reason for hiding this comment

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

Approved! 🎉

I ran SFDX: Create and Set Up Project for ISV Debugging and was able to go through all the steps without seeing any error notifications. The project was created successfully.

@CristiCanizales CristiCanizales merged commit e97f59f into develop Mar 15, 2024
12 checks passed
@CristiCanizales CristiCanizales deleted the cristi/fix-isv-notifications branch March 15, 2024 03:45
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.

None yet

4 participants