Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Conversation

akaplya
Copy link
Contributor

@akaplya akaplya commented Mar 5, 2019

Service contracts MUST NOT rely on the execution context

whatsnew
Added a technical guideline 6.4.4.13.

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Mar 5, 2019

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ dshevtsov
❌ Anton Kaplia


Anton Kaplia seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.

@magento-engcom-team
Copy link

@akaplya thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@magento-cicd2
Copy link
Contributor

An admin must run tests on this PR before it can be merged.

@@ -610,6 +610,8 @@ class View extends Template

6.4.4.12. Any customizations to the domain/business logic MUST be executed on the Service Contracts layer, and so MUST be declared in the `global` area of configuration.

6.4.4.13. Service contracts MUST NOT rely on the execution context(application area). Services implementation MUST NOT know about the application state.
Copy link
Collaborator

@dshevtsov dshevtsov Mar 5, 2019

Choose a reason for hiding this comment

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

Suggested change
6.4.4.13. Service contracts MUST NOT rely on the execution context(application area). Services implementation MUST NOT know about the application state.
6.4.4.13. A service contract MUST NOT rely on the execution context (application area). The service implementation MUST NOT depend on the application state.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@dshevtsov dshevtsov requested a review from jfrontain March 5, 2019 18:12
@YevSent YevSent self-requested a review March 5, 2019 19:30
@@ -610,6 +610,8 @@ class View extends Template

6.4.4.12. Any customizations to the domain/business logic MUST be executed on the Service Contracts layer, and so MUST be declared in the `global` area of configuration.

6.4.4.13. Service contracts MUST NOT rely on the execution context (application area). Services implementation MUST NOT know about the application state.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
6.4.4.13. Service contracts MUST NOT rely on the execution context (application area). Services implementation MUST NOT know about the application state.
6.4.4.13. A service contract MUST NOT rely on execution context (application area). The service implementation MUST NOT depend on the application state.

@@ -610,6 +610,8 @@ class View extends Template

6.4.4.12. Any customizations to the domain/business logic MUST be executed on the Service Contracts layer, and so MUST be declared in the `global` area of configuration.

6.4.4.13. Service contracts MUST NOT rely on the execution context (application area). Services implementation MUST NOT know about the application state.
Copy link
Member

Choose a reason for hiding this comment

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

Should it be SHOULD or can it be applied in all cases today?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for all cases, for all service contracts

@dshevtsov
Copy link
Collaborator

running tests

@dshevtsov dshevtsov merged commit 95be911 into magento:master Mar 5, 2019
@ghost
Copy link

ghost commented Mar 5, 2019

Hi @akaplya, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@dshevtsov dshevtsov added Major Update Significant original updates to existing content 2.2.x 2.3.x Magento 2.3 related changes labels Mar 5, 2019
@Vinai
Copy link
Contributor

Vinai commented Mar 5, 2019

It would be helpful to add a reason for the rule to the document, or link to a resource explaining the rationale behind it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.2.x 2.3.x Magento 2.3 related changes Major Update Significant original updates to existing content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants