broad-mouse-68653
11/09/2022, 6:30 PMajaxProvider.fetch
is called.
I'm looking for a way to perform the fetch only once the ajax-loader component was mounted.
I thought of some possible solutions, but I lack some understanding to realize them:
• ajaxLoader.addEventListener('mounted', () => performMyAjaxCall());
I figured there has to be an event that is triggered once a component is mounted, however I didn't find such an event.
• Is there a way to specify the order in which components are mounted? Can I specify that the ajax-loader should be mounted before my custom component? Also, here I'm not quite sure if there are 2 ajax-loaders on the page is it one component mount or two?
A solution that works, is to retrieve the ajax-loader and then call ajaxLoader.mountCallback
, but this seems like it's a suboptimal.
I'm grateful for any help,
best regards,
Tomelegant-cartoon-61249
11/09/2022, 7:17 PMcalm-book-45174
11/10/2022, 5:39 AMcalm-book-45174
11/10/2022, 5:39 AMcalm-book-45174
11/10/2022, 5:40 AMcalm-book-45174
11/10/2022, 5:41 AMcalm-book-45174
11/10/2022, 5:41 AMcalm-book-45174
11/10/2022, 5:41 AM<http://yves.de|yves.de>.spryker.local
• Back Office: <http://backoffice.de|backoffice.de>.spryker.local
• Frontend API: <http://glue-storefront.de|glue-storefront.de>.spryker.local
and its schema swagger.spryker.local
calm-book-45174
11/10/2022, 5:42 AMcalm-toddler-60539
11/10/2022, 10:15 AMException - Exception: Writer is not defined.
Any clue?fast-activity-30172
11/10/2022, 11:08 AMelegant-cartoon-61249
11/10/2022, 12:37 PMgreen-dinner-62699
11/11/2022, 10:35 AMvendor/bin/codecept run
on the host machine gives an error
Webdriver server never became reachable.
running vendor/bin/codecept run
inside the cli container gives this error
Webdriver executable not found: vendor/bin/chromedriver
running docker/sdk console code:test
gives
In WebDriverHelper.php line 166:
SprykerTest\Shared\Testify\Helper\WebDriverHelper
Webdriver executable not found: vendor/bin/chromedriver
is there another command or something else I need to do to allow the test suite to run?calm-book-45174
11/11/2022, 1:02 PMcalm-book-45174
11/11/2022, 1:02 PMcalm-book-45174
11/11/2022, 1:02 PMgit clone git@github.com:spryker/docker-sdk.git docker
calm-book-45174
11/11/2022, 1:03 PM@github.com:spryker/docker-sdk.git docker
Cloning into 'docker'...
<mailto:git@github.com|git@github.com>: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
calm-book-45174
11/11/2022, 1:03 PMcalm-toddler-60539
11/11/2022, 1:38 PMcool-beard-17954
11/14/2022, 9:18 AMfull-potato-10807
11/14/2022, 11:10 AMcalm-toddler-60539
11/14/2022, 12:33 PM$this->addPublishEvents(...
. Here is the code for the writer step:
class AntelopeWriterStep extends PublishAwareStep implements DataSetWriterInterface
{
public const KEY_NAME = 'name';
public const KEY_COLOR = 'color';
use DataSetWriterPersistenceStateAwareTrait;
/**
* @throws PropelException
* @throws AmbiguousComparisonException
*/
public function write(DataSetInterface $dataSet)
{
$this->setDataSetWriterPersistenceState(false);
$antelopeEntity = PyzAntelopeQuery::create()->filterByName($dataSet[static::KEY_NAME])->findOneOrCreate();
$antelopeEntity->setColor($dataSet[static::KEY_COLOR]);
if ($antelopeEntity->isNew() || $antelopeEntity->isModified()) {
$antelopeEntity->save();
// for publish event
$this->addPublishEvents(
AntelopeEvents::ENTITY_PYZ_ANTELOPE_CREATE,
$antelopeEntity->getIdAntelope()
);
}
}
public function flush()
{
$this->setDataSetWriterPersistenceState(true);
}
}
And here is how I am adding the writer step in the factory :
public function getAntelopeQueueDataImporter(): DataImporter
{
/** @var DataImporter $dataImporter */
$dataImporter = $this->createQueueDataImporter(
$this->getConfig()->getAntelopeDataImporterConfiguration()
);
$dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker();
// validation step
$dataSetStepBroker->addStep( $this->getAntelopeValidatorStep());
// publisher step
$dataSetStepBroker->addStep( $this->getAntelopePublisherStep());
$dataImporter->addDataSetStepBroker($dataSetStepBroker);
// writing step
$dataImporter->setDataSetWriter(new AntelopeWriterStep());
return $dataImporter;
}
Can you please tell me if this the right way to do it?rough-agency-88294
11/14/2022, 1:19 PMdry-dawn-42072
11/14/2022, 2:02 PMdry-dawn-42072
11/14/2022, 2:54 PMdry-dawn-42072
11/14/2022, 4:58 PMcalm-toddler-60539
11/15/2022, 10:13 AMRestResponseInterface
that my Glue actions return will soon be depreciated. Can someone please advise me what is the alternative to this? For reference, please see the following code:
public function getAction(RestRequestInterface $restRequest): RestResponseInterface // <--- This return type is depreciated
{
...
return (new RestResponse())->addResource($resource);
clever-student-2834
11/15/2022, 11:01 AMspy_oauth_client
table I have a default frontend
identifier but I would want the token to be generated for backoffice users. Am I missing any steps here. Or is there a resource I can refer to for the steps that are required to generate token for backoffice users?
Thanks in Advance.!refined-artist-40095
11/15/2022, 2:08 PM/common/common/
but here it doesn't look there. I know it reads some other files, because there are events published to queues and also company_business_unit_user.csv
isn't the first entity in full_EU.yml(When I commented this out another csv file wasn't found). Does anyone know why it uses specified path only for some data entities?fierce-agency-72925
11/15/2022, 4:45 PM