Unable to deploy, failing on slug prepare/upload

There is an issue in some of our shared environments where deployment fails intermittently on the “Preparing slugs” step. No other details are in the error log. Has anyone experienced this or can think of possible root causes? Deploying applications Starting deployment Preparing slugs E: Failed to upload slugs E: Command ‘[‘ssh’, u’2.xxxxxx.ent.magento.cloud’, ‘sudo /etc/platform/xxxxxx/rebuild_slug.sh…

Sorting repository by more than one attribute

I want to sort a repository by more than one attribute. Any ideas of how to achieve this? What I have so far is this: public function getLatestPosts() { return $this->postRepository ->getList($this->buildSearchCriteriaForLatestPosts()) ->getItems(); } private function buildSearchCriteriaForLatestPosts() { $this->prepareSearchCriteriaBuilder(); $this->searchCriteriaBuilder->setPageSize(1); return $this->searchCriteriaBuilder->create(); } private function prepareSearchCriteriaBuilder() { /** @var \Magento\Framework\Api\SortOrder $publishDateOrder */ $publishDateOrder = $this->sortOrderBuilder…

How Shopping Cart, Order Summary get quantity value?

I found this page vendor/magento/module-checkout/view/frontend/web/ template/summary/item/details.html <!– /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ –> <!– ko foreach: getRegion(‘before_details’) –> <!– ko template: getTemplate() –><!– /ko –> <!– /ko –> <div class=”product-item-details”> <div class=”product-item-inner”> <div class=”product-item-name-block”> <strong class=”product-item-name” data-bind=”html: $parent.name”></strong> <div class=”details-qty”> <span class=”label”><!– ko i18n:…