magento / adobe-stock-integration

Magento Adobe Stock integration Community Project.
Open Software License 3.0
60 stars 92 forks source link

Сannot apply several filtering options for Orientation filter at the same time #861

Closed engcom-Delta closed 4 years ago

engcom-Delta commented 4 years ago

Preconditions (*)

  1. Install Magento with Adobe Stock Integration
  2. Configure the integration in Stores -> Configuration -> System -> Adobe Stock Integration fieldset

Steps to reproduce (*)

Expected result (*)

User can select several filtering options at the same time https://xd.adobe.com/view/0a8fc470-497b-4fd6-4043-62560c21d8db-7cbe/screen/db8a2237-788d-44ac-936f-98655c6854af/Stock-Filters-open-orientation-selected/

Actual result (*)

Only one filtering options is applied at same time

sivaschenko commented 4 years ago

Hi @coderimus are you working on this issue?

drpayyne commented 4 years ago

Hi @sivaschenko, I've started work on this.

The SearchCriteria's Filter returns an array of the selected orientation options at AdobeStockClient/Model/SearchParametersProvider/Orientation.php:27. We'll need to handle this, but AdobeStock\Api\Models\SearchParameters::setOrientation in vendor accepts only a single orientation value as a string. Do you have any suggestions on how we can pass multiple orientations to the API? Or does the API not support this at all?

Related: https://www.adobe.io/apis/creativecloud/stock/docs.html#!adobe/stock-api-docs/master/docs/api/11-search-reference.md#about-search-and-filter-criteria

sivaschenko commented 4 years ago

Hi @drpayyne I think we should close this issue as the API does not provide the required capability for this. Thank you for your investigation!