As this module come with three sub-modules/plugins named Amazon (affiliates_connect_amazon), Flipkart (affiliates_connect_flipkart) and Ebay (affiliates_connect_ebay) which will inherit the features from the main module. As of now, This will add the basic structure of sub-modules/plugins in this project and also inherit the config form from the parent (main) module.

CommentFileSizeAuthor
#64 interdiff_60-64.txt7.07 KBchiranjeeb2410
#64 add_amazon_module-2977044-64.patch24.8 KBchiranjeeb2410
#60 interdiff_55-60.txt12.72 KBchiranjeeb2410
#60 add_amazon_module-2977044-60.patch24.84 KBchiranjeeb2410
#55 interdiff_47-55.txt663 byteschiranjeeb2410
#55 add_amazon_module_rerolled-2977044-55.patch25.1 KBchiranjeeb2410
#51 interdiff_47-51.txt663 byteschiranjeeb2410
#51 final-changes-2977044-51.patch28.28 KBchiranjeeb2410
#47 interdiff_41-47.txt6.41 KBchiranjeeb2410
#47 add_amazon_changes-2977044-47.patch28.2 KBchiranjeeb2410
#41 amazon final done.png153.73 KBchiranjeeb2410
#41 interdiff_32-41.txt15.27 KBchiranjeeb2410
#41 add_amazon_complete-2977044-41.patch27.57 KBchiranjeeb2410
#34 Screen Shot 2018-06-09 at 11.20.01.png96.16 KBborisson_
#32 interdiff_23-32.txt8.99 KBchiranjeeb2410
#32 add_amazon_fix-2977044-32.patch21.03 KBchiranjeeb2410
#31 add_amazon_fix-2977044-31.patch22.25 KBchiranjeeb2410
#23 interdiff_17-23.txt21.03 KBchiranjeeb2410
#23 completed_amazon_plugin.png160.87 KBchiranjeeb2410
#23 add_amazon_plugin-2977044-23.patch19.71 KBchiranjeeb2410
#17 amazon plugin form 3.png140.04 KBchiranjeeb2410
#17 amazon plugin form.png152.09 KBchiranjeeb2410
#17 add_amazon_plugin-2977044-17.patch27.99 KBchiranjeeb2410
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ankitjain28may created an issue. See original summary.

dbjpanda’s picture

Affiliates_connect_browser, Affiliates_connect_searchpage etc are the submodules of affiliate_connect. For affiliate_connect_amazon better to create another project. But again all the mentors need to subscribe that project. So if it is okay for others then I will create another project. And if its not okay then we can include 2-3 submodules as example initially in this project itself.

chiranjeeb2410’s picture

@dbjpanda,

I guess it would be ok to include few submodules as part of this project itself as for the initial phase it concerns only three sub modules for Amazon, Flipkart and eBay.

Assigning myself to this issue.

chiranjeeb2410’s picture

Assigned: Unassigned » chiranjeeb2410
dbjpanda’s picture

Assigned: chiranjeeb2410 » Unassigned

Don't work on it still we listen from others. And it is not a good idea to include those inside this module. Ask to @borisson_ or gvso what they are saying.

chiranjeeb2410’s picture

@dbjpanda, okay open for discussion.

borisson_’s picture

I'm not sure if we should include all of them in the main module. I figure we should start by using the most common provider (probably amazon) as an example and create other drupal.org projects for others in the future. That way we can keep this module as easy as possible to start.

thedrupalkid’s picture

My suggestion will be to have it as a base project on which the other affiliate modules will be dependent upon. As an end user I may be an affiliate to one, none in the list or all the affiliates. So it'll be good we keep the affiliate projects different. Users/developers can install them on the fly.

Also we can have plugins like Affiliates_connect_browser and search which will be a good idea to keep it in the base project as dbjpanda #2 suggested above.

We can list the other modules in the Related module list in the description of this project.

chiranjeeb2410’s picture

@borrison_ sounds like a good plan. So should I add the code for the amazon plugin here for a start then and post a patch for the plugin for review?

borisson_’s picture

Sounds good @chiranjeeb2410.

dbjpanda’s picture

Okay. Thats fine. For simplicity, lets include modules/affilaites_connect_amazon inside the base module for now. Later on we will shift it to a separate project.

ankitjain28may’s picture

@dbjpanda, @borisson_, @chiranjeeb2410, @thedrupalkid Sounds good to me. It will be easy for reviewing and later we can shift it to a separate module.

chiranjeeb2410’s picture

Okay, cool then I'll post the patch for the affiliates_connect_amazon sub-module by tonight for review :)

chiranjeeb2410’s picture

Assigned: Unassigned » chiranjeeb2410
chiranjeeb2410’s picture

@borrison_, @thedrupalkid, @dbjpanda, the basic structure for the amazon sub-module is almost done with. However, I seem to have a confusion regarding the plugin form as to whether it should inherit directly from the main config form created earlier for affiliates_connect module or should the data storage part for the amazon plugin form be taken from the main config form manually and modified accordingly.

@borrison_, @thedrupalkid please provide some quick suggestions.

thedrupalkid’s picture

@chiranjeeb2410 : Posting it again so that it will be better for anyone who reviews it:

Change:
You need to first create Amazon Associates at @affiliate-marketing
to
If you are not an Amazon Associate, Please Sign up for Amazon Associate program here: @affiliate-marketing

Enable to use Affiliate Marketing using tracking ID to Enable Affiliate Marketing using tracking ID

Please also see here Amazon provided an Access Key ID and Secret Key...

Change : keys : native_affiliate_id to native_access_key_id : title: Affiliate Tracking ID to Access Key ID
Same for native_affiliate_token : native_affiliate_secret_key : title: Affiliate Tracking Token: Secret key

chiranjeeb2410’s picture

@thedrupalkid, @borrison_, @dbjpanda,

Patch contains the code for the amazon plugin sub-module which seems to be working well as of now as per the screeshots attached below.

Also the data storage section from the main config form has been moved to the amazon plugin settings form as it would be convenient to have it in each plugin form for their specific functionalities. Additionally, the route and menu links for the main config form have been discarded for convenience as now the 'edit' button on the overview page redirects to the amazon settings page. So the existing amazon plugin for has its data storage section and also inherits the remaining common functionalities from the main config settings page.

Additionally, the suggestions made by @thedrupalkid in #16 have been addressed. However, the form validation required for the fields native_access_key_id and native_affiliate_secret_key hasnt been added as of now as they are not part of the main config form inheritance. and can be written once the testing is done by the devs.

Attached screenshots below.

Please review.

ankitjain28may’s picture

Status: Needs review » Needs work
  1. +++ b/modules/affiliates_connect_amazon/src/Form/AffiliatesAmazonSettingsForm.php
    @@ -0,0 +1,330 @@
    +      '#title' => t('Access Key ID'),
    

    This should be $this->t()

  2. +++ b/modules/affiliates_connect_amazon/src/Form/AffiliatesAmazonSettingsForm.php
    @@ -0,0 +1,330 @@
    +      '#title' => t('Secret Key'),
    

    This too

  3. +++ b/modules/affiliates_connect_amazon/src/Form/AffiliatesAmazonSettingsForm.php
    @@ -0,0 +1,330 @@
    +  /**
    +   * {@inheritdoc}
    +   */
    +  public function validateForm(array &$form, FormStateInterface $form_state) {
    +    parent::validateForm($form, $form_state);
    +  }
    

    As u didn't add any validation, You can remove this section.

@chiranjeeb2410 There is no need to move the data_storage section from the main form to plugin form as this section is common in all the plugins so if I need to create new plugin I need to write the same code again and again which means redundant code, instead you can inherit the parent form in all the plugins and save its content in the plugin configuration rather than main module configuration as it can be different for different plugins.

@dbjpanda @borisson_ @thedrupalkid Your suggestions ?

ankitjain28may’s picture

+++ b/config/install/affiliates_connect.settings.yml
@@ -1,15 +1,3 @@
-scrape_timer: true

+++ b/config/schema/affiliates_connect.schema.yml
@@ -2,42 +2,6 @@ affiliates_connect.settings:
-    scrape_timer:
-      type: string
-      label: 'Import period for content scraping'

It can not be set to 'true' as you have defined it as 'string' in the schema

chiranjeeb2410’s picture

Status: Needs work » Needs review

@ankitjain28may, I'll make the changes asap.

Also on the part about the plugin form, I understand you trying to say that the code in the main configuration form should be retained as it is and inherited by the each plugin form. But didn't properly get the part about saving its content in the plugin config forms. Could you please elaborate a bit on that?

Also quick suggestions on the above matter from @borrison_, @thedrupalkid and @dbjpanda would be appreciated.

ankitjain28may’s picture

@chiranjeeb2410 Posting it here too, You can define some common key for the 'data_Storage' section something like-

    $form['plugins']['data_storage'] = [
      '#type' => 'checkbox',
      '#title' => $this->t('Plugin Data Storage'),
      '#description' => $this->t('Enable to store product data in your site database.'),
      '#default_value' => $config->get('data_storage'),
    ];

And all the associated part of data storage will also be added under plugin section which you can use while defining plugin form something like this-

    $form['plugins'] = [
      '#type' => 'details',
      '#title' => $this->t('Affiliates Connect Amazon Settings'),
      '#open' => TRUE,
      '#description' => $this->t('You need to first create Amazon Associates at <a href="@amazon-affiliate-marketing">@amazon-affiliate-marketing</a>',
          ['@amazon-affiliate-marketing' => 'https://affiliate-program.amazon.in/']),
    ];

In this way, It will also come under the plugin config box section.

chiranjeeb2410’s picture

@ankitjain28may, I have done the changes and it seems to work fine as of now. Attaching updated patch shortly.

chiranjeeb2410’s picture

@borrison_, @ankitjain28may, @thedrupalkid, @dbjpanda,

Following patch contains the complete code for the amazon plugin sub-module with all the changes suggested as in #16, #18 and #19.
I have also attached screenshots of the required working plugin form. Also modified the code and removed redundancy as suggested by @ankitjain28may.

Please review.

ankitjain28may’s picture

  1. +++ b/modules/affiliates_connect_amazon/src/Form/AffiliatesAmazonSettingsForm.php
    @@ -0,0 +1,149 @@
    +    $this->config('affiliates_connect_amazon.settings')
    +      ->set('native_api', $values['native_api'])
    +      ->set('native_affiliate_id', $values['native_affiliate_id'])
    +      ->set('native_affiliate_token', $values['native_affiliate_token'])
    +      ->set('scraper_api', $values['scraper_api'])
    +      ->save();
    +    parent::submitForm($form, $form_state);
    

    You need to save the data_storage section here rather saving it in main module as that part is for plugin config.

  2. +++ b/modules/affiliates_connect_amazon/src/Form/AffiliatesAmazonSettingsForm.php
    @@ -0,0 +1,149 @@
    +      '#default_value' => '',
    

    default value should be taken from config.

  3. +++ b/modules/affiliates_connect_amazon/src/Form/AffiliatesAmazonSettingsForm.php
    @@ -0,0 +1,149 @@
    +      '#default_value' => '',
    

    Same here.

  4. +++ b/modules/affiliates_connect_amazon/src/Plugin/AffiliatesNetwork/AffiliatesNetwork.php
    @@ -0,0 +1,42 @@
    +use Drupal\affiliates_connect\Plugin\AffiliatesNetworkInterface;
    

    It should be 'use Drupal\affiliates_connect\AffiliatesNetworkInterface;'

Remaining changes look good to me, I am still not sure about the schema where it should be placed exactly.
@borisson_ @thedrupalkid @dbjpanda Please suggest for schema file.

borisson_’s picture

Issue summary: View changes
Status: Needs review » Needs work
  1. +++ b/modules/affiliates_connect_amazon/affiliates_connect_amazon.info.yml
    --- /dev/null
    +++ b/modules/affiliates_connect_amazon/affiliates_connect_amazon.links.menu.yml
    

    This shouldn't need it's own page, but rather be configured trough the plugin form already provided.

  2. +++ b/modules/affiliates_connect_amazon/affiliates_connect_amazon.module
    --- /dev/null
    +++ b/modules/affiliates_connect_amazon/affiliates_connect_amazon.routing.yml
    
    +++ b/modules/affiliates_connect_amazon/affiliates_connect_amazon.routing.yml
    @@ -0,0 +1,10 @@
    +affiliates_connect_amazon.settings:
    

    ^

  3. +++ b/modules/affiliates_connect_amazon/src/Form/AffiliatesAmazonSettingsForm.php
    @@ -0,0 +1,149 @@
    +/**
    + * @file
    + * Contains \Drupal\affiliates_connect\Form\AffiliatesAmazonSettingsForm.
    + */
    

    Docblock should be removed.

  4. +++ b/modules/affiliates_connect_amazon/src/Form/AffiliatesAmazonSettingsForm.php
    @@ -0,0 +1,149 @@
    +  public function __construct(ConfigFactoryInterface $config_factory) {
    +    parent::__construct($config_factory);
    +  }
    

    Constructor is the same as the base class, can be removed.

  5. +++ b/modules/affiliates_connect_amazon/src/Form/AffiliatesAmazonSettingsForm.php
    @@ -0,0 +1,149 @@
    +  public static function create(ContainerInterface $container) {
    

    Same here.

  6. +++ b/modules/affiliates_connect_amazon/src/Plugin/AffiliatesNetwork/AffiliatesNetwork.php
    @@ -0,0 +1,42 @@
    +class AffiliatesNetwork implements  AffiliatesNetworkInterface {
    

    This class isn't named correctly. It should be AmazonConnect or something like that?

    It should probably also contain the form, instead of the form being added like it is currently.

dbjpanda’s picture

@chiranjeb have you decided to write only form and schema, schema and form in the entire month. I don't find any mechanism to fetch data from amazon in this patch. Please keep posting updates in the same issue till achieve the complete goal. Don't wait for mentors review. Mentors will review when they become free from their work. But your first evaluation is knocking. So do your progress fast.

thedrupalkid’s picture

Hello @ankit @chiranjeeb & Mentor's, I think the approach of creating different plugins will have lot of unnecessary schema and redundant code. I'll be very open to any discussion and highly appreciate further improvisation to the below suggestions to make the solution scalable and reduce the amount of code we write in future. Please also help me validate my approach, so @dbjpanda & @borrison_ Please let me know your views on it.

We have different affiliates which have common attributes as an Entity in Drupal and they can further increase.

Why don't we create them as an bundles custom entity ?

We just need to create affiliate as an entity like this : https://www.drupal.org/docs/8/api/entity-api/creating-a-content-entity-t....

So we'll save lot of schema definitions, routes and further coding different forms for different affiliates.

Now Suppose I have created an Amazon affiliate it will have the AffiliateID, AffiliateToken and other attribute it requires, that can be handled easily if we have it as an entity like we have for Users or any other entity.

Also further when we are connected to an affiliate, we can have sub_modules for those affiliates which will provide us the Rest Resources, blocks and views in future as per the affiliates. We'll cover it as per the scope of the project defined for now and in future we can have more features in like Affiliate_Connect_Commerce... as it's based on the products and their inventory as well.

Cheers

dbjpanda’s picture

@thedrupalkid if I am correctly getting you. Are you asking custom schema vs entity then may be this link answer it. And as per my understanding plugins are only to hold the methods of different affiliate apis. E.g amazon api have a diffefent product discovery method and ebay have another method to discover product from their respective databases. https://www.drupal.org/forum/support/post-installation/2013-09-10/custom...

And probably you are right to store the products as custom entity/nodes will add advantages.
@borisson can help us to take a right decession.

chiranjeeb2410’s picture

@borrison_, @ankitjain28may, thanks for the suggestions. Would be posting an updated patch right away.

chiranjeeb2410’s picture

@dbjpanda, regarding what you asked in #26, I just put up a patch with code for a whole sub-module and not just a form with its schema. The sole purpose of this patch and the contributed module is to integrate a vendor's affiliate API, in this case, the Amazon's affiliate API with D8. This would be carried out by affiliates_connect_amazon providing a plugin, native_api_amazon, specifically for this purpose, which would further be used to connect the Amazon Affiliate API with a D8 site.

So this patch the complete amazon sub-module structure to work with upon which the native_api_amazon plugin can be built

chiranjeeb2410’s picture

Status: Needs work » Needs review
FileSize
22.25 KB

@borrison_, @ankitjain28may, @thedrupalkid, @dbjpanda,

Following patch contains the updated and complete code and addressed all issues as mentioned in #24 and #25. Also removed the .menu file for the amazon sub module as the plugin form would be routed through the 'overview' page itself thus removing its need, as said by @borrison_. However, keeping the .routing file for now, as I think keeping it wouldn't be an issue.

Also didn't understand the need to include the form within AffiliatesNetwork file as suggested by @borrison_ in 6. for #25, as the plugin form serves its purpose well and also the AffiliatesNetwork file would serve as the base for the implementation of native_api_amazon plugin for affiliates_connect_amazon sub-module. However, suggestion are welcome.

chiranjeeb2410’s picture

Status: Needs review » Needs work
FileSize
21.03 KB
8.99 KB

Ignore patch in #31 as it's not correct. Uploaded correct patch here alongwith proper interdiff containing all points addressed in #24 and #25 with all the important issues highlighted in #31. Patch contains complete code for amazon sub-module structure and a base for native_api_amazon to work upon.

Please review.

chiranjeeb2410’s picture

Status: Needs work » Needs review
borisson_’s picture

Status: Needs review » Needs work
FileSize
96.16 KB

So, the way I was thinking this would work is similar to how Search API with their subforms work.

The part of the form shown here is from a plugin, not from the actual module.

I don't think it's going to be a good idea to create custom entities or bundles for all of the possible providers, that is much harder for others to write compared to plugins.

I don't think that the AffiliatesConnectSettingsForm should contain the form structure for the plugins. That way it's going to be easier to create new plugins for custom projects.

chiranjeeb2410’s picture

@borrison,

Understood the changes you suggested. So I would move the data storage section for the custom modules exclusively from the AffiliatesConnectSettingsForm to the AffiliatesAmazonSettingsForm so that the plugin modification could be done from there itself. The other common settings could be inherited from the parent form itself.

As far as I can understand I need to change only the amazon plugin form settings like the one stated above and get inputs from the Search API sub-module screenshot you referenced. Apart from that, what else do you suggest for the completion of this Amazon custom module?

borisson_’s picture

That is my only suggestion. Otherwise this is already looking solid.

chiranjeeb2410’s picture

@borrison_,

Thanks a lot for the review. So just for confirmation again moving the plugin settings from AffiliatesConnectSettingsForm to the plugin form would do the trick right? No need to add further changes I suppose?

borisson_’s picture

There might be additional code needed in the form to load the plugin form. But yes, that is the idea, moving the form to the plugin form.

chiranjeeb2410’s picture

@borrison_, didn't get you by what you meant by additional code to load plugin form?

chiranjeeb2410’s picture

@borrison_, the plugin form would be loaded though the Overview page itself, the code for which is committed in the issue https://www.drupal.org/project/affiliates_connect/issues/2975659. Making the changes you suggested and posting a patch now.

chiranjeeb2410’s picture

@borrison_,

Uploaded updated patch with interdiff incorporating the change you suggested as in #34 and moved plugin info solely to AffiliatesAmazonSettingsForm from AffiliatesAmazonSettingsForm. Other than that patch everything else works as desired and patch contains complete code for the amazon sub-module.

Attached screenshot below. Hope to go RTBC this time!

Please review.

borisson_’s picture

Status: Needs work » Reviewed & tested by the community

Looks solid.

chiranjeeb2410’s picture

Status: Reviewed & tested by the community » Needs work

@borrison_,

Thanks for the review.

chiranjeeb2410’s picture

Status: Needs work » Reviewed & tested by the community

Sorry, marked as needs worked by accident

ankitjain28may’s picture

+++ b/modules/affiliates_connect_amazon/src/Plugin/AmazonConnect/AmazonConnect.php
@@ -0,0 +1,39 @@
+ * @AmazonConnect(
+ *  id = "affiliates_connect_amazon",
+ *  label = @Translation("Amazon"),
+ *  description = @Translation("Plugin provided by affiliates_connect_amazon."),
+ * )

As we are using annotations based discovery, It should be defined as

 * @AffiliatesNetwork(
 *  id = "affiliates_connect_amazon",
 *  label = @Translation("Amazon"),
 *  description = @Translation("Plugin provided by affiliates_connect_amazon."),
 * )

because we have defined Annotations as AffiliatesNetwork

ankitjain28may’s picture

+++ b/modules/affiliates_connect_amazon/src/Form/AffiliatesAmazonSettingsForm.php
--- /dev/null
+++ b/modules/affiliates_connect_amazon/src/Plugin/AmazonConnect/AmazonConnect.php

+++ b/modules/affiliates_connect_amazon/src/Plugin/AmazonConnect/AmazonConnect.php
+++ b/modules/affiliates_connect_amazon/src/Plugin/AmazonConnect/AmazonConnect.php
@@ -0,0 +1,39 @@

@@ -0,0 +1,39 @@
+namespace Drupal\affiliates_connect_amazon\Plugin\AffiliatesNetwork;

Outer folder should be named as per the defined namespace only class name is AmazonConnect

chiranjeeb2410’s picture

@ankitjain28may,

Added all changes as mentioned. Also included new key as amazon_access_key in AffiliateAmazonSettingsForm as per requirements of Product Advertising API and renamed existing keys as suggested by @thedrupalkid.

Attached patch with interdiff.

ankitjain28may’s picture

@chiranjeeb2410 Looks good to me :)

dbjpanda’s picture

Small work here before commit.

+++ b/modules/affiliates_connect_amazon/affiliates_connect_amazon.info.yml
@@ -0,0 +1,6 @@
+package: 'Third-party Integration'

All the modules/ submodules should have same package: 'Affiliates Connect'

+++ b/config/schema/affiliates_connect.schema.yml
--- /dev/null
+++ b/modules/affiliates_connect_amazon/affiliates_connect_amazon.info.yml

Add Affiliate_connect as dependencies to this module.

+++ b/modules/affiliates_connect_amazon/affiliates_connect_amazon.info.yml
@@ -0,0 +1,6 @@
+description: 'Amazon Plugin'

Allows integration with Amazon Product Advertising API

dbjpanda’s picture

Title: Add sub-modules in the main module » Add Affiliates connect Amazon in the main module
Status: Reviewed & tested by the community » Needs work
chiranjeeb2410’s picture

Version: » 8.x-1.x-dev
Status: Needs work » Needs review
FileSize
28.28 KB
663 bytes

@dbjpanda,

Made the changes. Please review and mark as fix if correct.

Status: Needs review » Needs work

The last submitted patch, 51: final-changes-2977044-51.patch, failed testing. View results

dbjpanda’s picture

Status: Needs work » Needs review
dbjpanda’s picture

Status: Needs review » Needs work

error: patch failed: affiliates_connect.links.menu.yml:11
error: affiliates_connect.links.menu.yml: patch does not apply
error: src/Form/AffiliatesConnectSettingsForm.php: No such file or directory

chiranjeeb2410’s picture

Status: Needs work » Needs review
FileSize
25.1 KB
663 bytes

@dbjpanda,

Rerolled patch and added all changes as mentioned in #49 along with updated interdiff.

Up for review. Hope to go green.

borisson_’s picture

Status: Needs review » Needs work

This patch is green (hurray, but it does add some CS issues (see the results in https://www.drupal.org/pift-ci-job/990301). Let's fix those, so we can get this in and have green tests on the branch as well.

ankitjain28may’s picture

@borisson_ I left the part of fixing schema because it's already fixed in this patch and as the tests are now completed successfully, Can we take this patch in and add the CS issues in the next issue - https://www.drupal.org/project/affiliates_connect/issues/2979589 ?

chiranjeeb2410’s picture

@ankitjain28may, @borisson, that would be a better option as the whole of the CS issues for the complete module could be addressed within a single issue rather than fixing it individually. Also as @ankitjain28may said the schemas already done for in the above patch.

borisson_’s picture

@chiranjeeb2410: The current branch has no cs issues, and this one does. I would prefer to not introduce new cs problems with any new patch that we add to the module.

chiranjeeb2410’s picture

@borisson_,

Addressed all CS issues as of https://www.drupal.org/pift-ci-job/990301 in #56.

Uploaded new patch along with interdiff.

Up for review.

chiranjeeb2410’s picture

Status: Needs work » Needs review
borisson_’s picture

Status: Needs review » Needs work

Tests are green, but we still have 18 more cs issues compared to the branch.

modules/affiliates_connect_amazon/src/Form/AffiliatesAmazonSettingsForm.php ✗ 16 more
line 58 A comma should follow the last multiline array item. Found: ]
71 A comma should follow the last multiline array item. Found: ]
90 A comma should follow the last multiline array item. Found: ]
109 A comma should follow the last multiline array item. Found: ]
140 A comma should follow the last multiline array item. Found: ]
159 A comma should follow the last multiline array item. Found: ]
178 A comma should follow the last multiline array item. Found: ]
196 A comma should follow the last multiline array item. Found: ]
218 A comma should follow the last multiline array item. Found: ]
229 A comma should follow the last multiline array item. Found: ]
240 A comma should follow the last multiline array item. Found: ]
251 A comma should follow the last multiline array item. Found: ]
262 A comma should follow the last multiline array item. Found: ]
273 A comma should follow the last multiline array item. Found: ]
284 A comma should follow the last multiline array item. Found: ]
295 A comma should follow the last multiline array item. Found: ]
modules/affiliates_connect_amazon/src/Plugin/AffiliatesNetwork/AmazonConnect.php ✗ 1 more
9 Doc comment short description must be on a single line, further text should be a separate paragraph
src/Form/AffiliatesConnectSettingsForm.php ✗ 1 more
7 Unused use statement
chiranjeeb2410’s picture

@borisson_, on it.

chiranjeeb2410’s picture

Status: Needs work » Needs review
FileSize
24.8 KB
7.07 KB

@borisson_,

Addressed all 18 cs issues.

Up for review.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Awesome, great work!

chiranjeeb2410’s picture

@borisson_, thanks for the review.

dbjpanda’s picture

I am committing it for now. Lets work. And if we feel we are using the same form again and again then we will move the form to main module. We can't say it till we start working for both scaper and native api. Thanks to all.

The last submitted patch, 17: add_amazon_plugin-2977044-17.patch, failed testing. View results

The last submitted patch, 23: add_amazon_plugin-2977044-23.patch, failed testing. View results

The last submitted patch, 31: add_amazon_fix-2977044-31.patch, failed testing. View results

The last submitted patch, 32: add_amazon_fix-2977044-32.patch, failed testing. View results

The last submitted patch, 41: add_amazon_complete-2977044-41.patch, failed testing. View results

The last submitted patch, 47: add_amazon_changes-2977044-47.patch, failed testing. View results

borisson_’s picture

Status: Reviewed & tested by the community » Fixed

Marking as fixed, because it has been committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.