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

ACP-3738 Fixed Disconnect message. #15

Merged

Conversation

vol4onok
Copy link
Contributor

@vol4onok vol4onok commented Aug 20, 2024

PR Description

https://spryker.atlassian.net/browse/ACP-3738

The message should be more abstract. It's not only registration; it can also be updated and disconnected.

Checklist

  • I agree with the Code Contribution License Agreement in CONTRIBUTING.md

@@ -29,7 +29,7 @@ class ConfigWriter implements ConfigWriterInterface
/**
* @var string
*/
protected const FAILED_TO_REGISTER_TENANT_MESSAGE = 'Tenant registration failed';
protected const FAILED_TO_OPERATION_TENANT_MESSAGE = 'Tenant operation failed';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
protected const FAILED_TO_OPERATION_TENANT_MESSAGE = 'Tenant operation failed';
protected const FAILED_TENANT_ACTION_MESSAGE = 'Tenant action failed';

@@ -59,14 +59,14 @@ public function saveConfig(AppConfigTransfer $appConfigTransfer): AppConfigRespo
return $this->getSuccessResponse($appConfigTransfer);
} catch (Throwable $throwable) {
$this->getLogger()->error(
static::FAILED_TO_REGISTER_TENANT_MESSAGE,
static::FAILED_TO_OPERATION_TENANT_MESSAGE,
Copy link
Contributor

Choose a reason for hiding this comment

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

why is the message is generic here if the method is saveConfig()?
So "Failed to save tenant configuration." is more suitable here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it processes connect, new, disconnect statuses. you can check doSaveAppConfig

@@ -29,7 +29,7 @@ class ConfigWriter implements ConfigWriterInterface
/**
* @var string
*/
protected const FAILED_TO_REGISTER_TENANT_MESSAGE = 'Tenant registration failed';
protected const FAILED_TO_OPERATION_TENANT_MESSAGE = 'Tenant operation failed';
Copy link
Collaborator

Choose a reason for hiding this comment

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

The constant is not in correct English. Should be TENANT_OPERATION_FAILED

@matweew matweew merged commit 691c91b into master Aug 23, 2024
4 checks passed
@matweew matweew deleted the feature/acp-3670/acp-3580/master-klarna-and-pre-payment-methods branch August 23, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants