-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Allow some SalesSequence data to be retrieved by extensions for customisatioons #40237
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
base: 2.4-develop
Are you sure you want to change the base?
Allow some SalesSequence data to be retrieved by extensions for customisatioons #40237
Conversation
…rofile & entity type in Magento_SalesSequence::Model/Sequence
…urrentValue public, add getStoreId() function
Hi @workslop8264. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
The security team has been informed about this pull request due to the presence of risky security keywords. For security vulnerability reports, please visit Adobe's vulnerability disclosure program on HackerOne or email psirt@adobe.com. |
4 similar comments
The security team has been informed about this pull request due to the presence of risky security keywords. For security vulnerability reports, please visit Adobe's vulnerability disclosure program on HackerOne or email psirt@adobe.com. |
The security team has been informed about this pull request due to the presence of risky security keywords. For security vulnerability reports, please visit Adobe's vulnerability disclosure program on HackerOne or email psirt@adobe.com. |
The security team has been informed about this pull request due to the presence of risky security keywords. For security vulnerability reports, please visit Adobe's vulnerability disclosure program on HackerOne or email psirt@adobe.com. |
The security team has been informed about this pull request due to the presence of risky security keywords. For security vulnerability reports, please visit Adobe's vulnerability disclosure program on HackerOne or email psirt@adobe.com. |
@magento run all tests |
1 similar comment
@magento run all tests |
Failed to run the builds. Please try to re-run them later. |
Description (*)
Being able to change the sequence generation for a specific entity type is a reasonably common request. The objective of this PR is to allow extensions to more easily modify this: currently, it is impossible without overriding the whole model (read: copy and paste, since everything is private).
This PR will allow extensions or vendors to change the format, for instance with an
after
plugin:NB: this would probably be a good use case for some sort of expansion (having some di-defined array for entity types to calculate their values), but this is a good first step IMO.
Related Pull Requests
N/A
Fixed Issues (if relevant)
N/A
Manual testing scenarios (*)
This is a transparent API change: it should not change anything. Perhaps trying an after plugin like mentioned above.
Questions or comments
Unsure re: unit tests. I've added some, but they seem superfluous.
Contribution checklist (*)