Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055699Retail ModulesRetail APIpublic2024-06-06 10:512024-07-22 07:38
AgatheBertin 
fofarril 
normalmajorhave not tried
closedfixed 
5
 
 
No
0055699: API Product POST - Missing information in the swagger
in the GET API of product, we have relatableProducts

It is not available in the POST and it should
Try to create a product with the array

  "relatableProducts": [
            {
                "product": "CONTRIBUTION_TEST",
                "multiplicator": 1.4,
                "active": true
            },
            {
                "product": "test_contribution",
                "multiplicator": 1.3,
                "active": true
            }


The import works despite the array relatableProducts not available in the swagger
Add relatableProducts in the POST Swagger for Product
No tags attached.
caused by defect 0055858 closed kchoperena Fields missing on the swagger definition of Product Import API 
related to design defect 0056071 new kousalya_r Missing RelatableProductsByCategory in swagger 
Issue History
2024-06-06 10:51AgatheBertinNew Issue
2024-06-06 10:51AgatheBertinAssigned To => Triage Platform Conn
2024-06-06 10:51AgatheBertinTriggers an Emergency Pack => No
2024-06-06 14:31adrianromeroAssigned ToTriage Platform Conn => Retail
2024-06-10 12:11guillermogilAssigned ToRetail => guillermogil
2024-06-11 14:19fofarrilAssigned Toguillermogil => fofarril
2024-06-11 14:19fofarrilStatusnew => scheduled
2024-06-11 14:40hgbotNote Added: 0165800
2024-06-12 20:59hgbotNote Added: 0165878
2024-06-12 23:16hgbotNote Added: 0165879
2024-07-11 19:21hgbotNote Added: 0166904
2024-07-12 06:24hgbotNote Added: 0166908
2024-07-16 14:48kchoperenaRelationship addedcaused by 0055858
2024-07-19 12:08guillermogilRelationship addedrelated to 0056071
2024-07-19 12:09guillermogilDescription Updatedbug_revision_view_page.php?rev_id=28265#r28265
2024-07-19 12:09guillermogilProposed Solution updated
2024-07-22 07:38hgbotResolutionopen => fixed
2024-07-22 07:38hgbotStatusscheduled => closed
2024-07-22 07:38hgbotNote Added: 0167206
2024-07-22 07:38hgbotNote Added: 0167207

Notes
(0165800)
hgbot   
2024-06-11 14:40   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/281 [^]
(0165878)
hgbot   
2024-06-12 20:59   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/281 [^]
(0165879)
hgbot   
2024-06-12 23:16   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/99 [^]
(0166904)
hgbot   
2024-07-11 19:21   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/296 [^]
(0166908)
hgbot   
2024-07-12 06:24   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/99 [^]
(0167206)
hgbot   
2024-07-22 07:38   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 93e3d93f2053bd2652629daa809d22b6fd4e2936
Author: Francisco Javier Deler O'Farril <francisco.ofarril@doceleguas.com>
Date: 22-07-2024 05:38:34
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/93e3d93f2053bd2652629daa809d22b6fd4e2936 [^]

Fixes ISSUE-55699: Fixed information in Swagger API Product POST
As part of issue 55858 it was modified how swagger was shown so it was needed to update several properties.

---
M src/org/openbravo/api/mappings/product/ExportProductJavaPropertyMappingHandler.java
M src/org/openbravo/api/mappings/product/ImportProductJavaPropertyMappingHandler.java
---
(0167207)
hgbot   
2024-07-22 07:38   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/296 [^]