Skip to content
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

#29 User configures Adobe Stock integration #52

Merged
merged 14 commits into from
Jun 11, 2019
Merged

#29 User configures Adobe Stock integration #52

merged 14 commits into from
Jun 11, 2019

Conversation

diazwatson
Copy link
Contributor

@diazwatson diazwatson commented May 12, 2019

Resolved Issue: #29
Blocked by: magento/magento2#22844

Raul E Watson added 2 commits May 18, 2019 02:30
* upstream/develop:
  #53: Code review fixes
  Fixed typo in type name
  Introduced request builder
  Fixed method annotation
  Fix details_url column
  Add setup script (#10)
  Introduced search builder interface
  Add documentation in classes, in the form of comments.
* develop:
  #53: Code review fixes
  Fixed typo in type name
  Introduced request builder
  Fixed method annotation
  #11 Implement setup script for user metadata
  Fix details_url column
  Add setup script (#10)
  #29 User configures Adobe Stock integration
  Introduced search builder interface
  Add documentation in classes, in the form of comments.
Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @diazwatson , thanks for the pull request!

Please see my review comments

Raul E Watson added 5 commits May 29, 2019 01:11
* upstream/develop:
  #11 requested changes during PR review
  #11 Add a separate table to link languages and users
  Fixed installation link issue
  Removed email from slack signup text
  Improved GitHUb pull request template and added useful links to the README.MD
  #11 requested changes during PR review
  Added title to the slide panel. Removed default buttons
  #11 Change type text to varchar with lengh
  #11 changes suggested by lewisvoncken
  #11 Implement setup script for user metadata
* upstream/develop:
  Removed unused class import
  #5: Introduce pagination for image listing UI component
  #17: Implement search filter for the "orientation" attribute
  #3: Filters support
  #3: Client refactoring
  #3: Refactored API structure
  #11 remove db_schema from AdobeStockImage
  #11 Add additional foreign key constraints
  Move locale assignment to RequestBuilder
  Add Magento admin locale to request
@diazwatson diazwatson requested a review from sivaschenko June 6, 2019 01:26
Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates @diazwatson ! Please see my review comments, also I think that all the code in this pull request should be moved to AdobeStockAsset module as it is general configuration for the integration and is not specifically related to Image. @sidolov can you please confirm my opinion?

];

try {
$response = $this->getImageList->execute($this->getSearchCriteria());
Copy link
Member

@sivaschenko sivaschenko Jun 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering that the configuration is general and not specifically related to image I would avoid dependency on AdobeStockImage module. For this purpose, I propose to introduce a getAssetList or testConnection API to AdobeStockAssetApi and use it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey guys, I have applied the requested changes. Could you please review when you get a chance?

Note: I am not very happy with the implementation of testConnection method, can you see a better way to implement it?

Copy link
Member

@sivaschenko sivaschenko Jun 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, @diazwatson ! I think test connection implementation is perfect for now, also, we can improve it later if there will be ideas.

The only adjustments I would do now - is changing the return type to bool

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sivaschenko I'll change that tonight

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@diazwatson actually, I did this already. Pull request is merged! Please take a look at my changes and feel free to create a new pull request if you'd like to adjust anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants