-
Notifications
You must be signed in to change notification settings - Fork 0
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
Expand user #3
Expand user #3
Conversation
…4041/cc-34137-extend-user-transfer
/** | ||
* Specification: | ||
* - Iterates over `UserCollectionTransfer.users`. | ||
* - Requires `UserTransfer.idUser` for each user in collection to be set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Requires...
part usually goes first in the specification.
* | ||
* @return list<int> | ||
*/ | ||
protected function getUserIds(UserCollectionTransfer $userCollectionTransfer): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
protected function getUserIds(UserCollectionTransfer $userCollectionTransfer): array | |
protected function extractUserIds(UserCollectionTransfer $userCollectionTransfer): array |
* | ||
* @return \Generated\Shared\Transfer\UserCollectionTransfer | ||
*/ | ||
public function expandUserCollectionWithQuicksightUser( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function expandUserCollectionWithQuicksightUser( | |
public function expandUserCollectionWithQuicksightUsers( |
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
declare(strict_types=1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, remove this line
<property name="role" dataBuilderRule="lexify('??????????')"/> | ||
<property name="arn" dataBuilderRule="lexify('??????????')"/> | ||
<property name="principalId" dataBuilderRule="lexify('??????????')"/> | ||
<property name="uuid" dataBuilderRule="unique()->uuid()"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should avoid generating UUIDs in data builders.
* @method \SprykerEco\Zed\AmazonQuicksight\Business\AmazonQuicksightFacadeInterface getFacade() | ||
* @method \SprykerEco\Zed\AmazonQuicksight\Communication\AmazonQuicksightCommunicationFactory getFactory() | ||
*/ | ||
class QuicksightUserUserExpanderPlugin extends AbstractPlugin implements UserExpanderPluginInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can make an exception from our conventions and name this plugin QuicksightUserExpanderPlugin
to avoid duplication in the class name?
a30a781
into
feature/cc-34041/dev-quick-sight-mvp
Ticket: https://spryker.atlassian.net/browse/CC-34137