Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-7042

Have the ability to add labels in the same payload

Details

    Description

      The ability to add labels in the same API call as Products is important if you're creating many products. Here is an example:

      I am creating 3k Products and for ease of calculation lets say each Product has 10 new attributes/specifications in them.

      Currently you have to call another API to add labels (http://localhost:8080/o/headless-commerce-admin-catalog/v1.0/specifications/

      {id}

      ). With the current setup of two separate API's, you will have to make 10 calls for each Product specification because you would need to add the label for each of the specifications. That makes 3000x10 times the API call for just adding the specification labels.

      Even if you wrote a separate job just to add the labels it will have to iterate through all the products and its attributes just for adding the labels. This would create a lot of performance overhead even for a bulk job.

      Attachments

        Issue Links

          Activity

            People

              pietro.bocale Pietro Bocale
              christopher.lui Christopher Lui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  7.3.X
                  7.4 DXP U4