Skip to content

Do not always print service is optional during failure#1428

Merged
Yavor16 merged 1 commit intomasterfrom
fix-fail-service-creation-message
Feb 1, 2024
Merged

Do not always print service is optional during failure#1428
Yavor16 merged 1 commit intomasterfrom
fix-fail-service-creation-message

Conversation

@Yavor16
Copy link
Contributor

@Yavor16 Yavor16 commented Jan 31, 2024

LMCROSSITXSADEPLOY-2878

@IvanBorislavovDimitrov
Copy link
Contributor

instead of having the condition in every step can you extract it in:
ServiceStep::processServiceActionFailure only?

You can have 2 types of messages:
Error creating or updating optional service instance (for optional)
Error creating or updating service instance (for non-optional)

This way in the steps Update,CreateService, etc, you're just throwing the exception and its message will be added.

Thus you will not have the code duplication

@Yavor16 Yavor16 force-pushed the fix-fail-service-creation-message branch 2 times, most recently from 5ffb76f to bea83b5 Compare January 31, 2024 13:19
@Yavor16 Yavor16 force-pushed the fix-fail-service-creation-message branch from bea83b5 to aa08cb6 Compare January 31, 2024 15:16
@Yavor16 Yavor16 force-pushed the fix-fail-service-creation-message branch from aa08cb6 to 414a70a Compare February 1, 2024 06:14
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 1, 2024

@Yavor16 Yavor16 merged commit e90a8a4 into master Feb 1, 2024
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