Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0056150
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Retail APImajoralways2024-08-01 14:392024-08-08 07:44
ReporterkchoperenaView Statuspublic 
Assigned ToRetail 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0056150: Import of ProductPriceException API documentation is broken

DescriptionThe class ImportProductPriceExceptionJavaPropertyMappingHandler is overriding the getPropertyDocumentation hiding all the documentation included in the super class
Steps To Reproduce1.- Log into the Openbravo backoffice
2.- Open the Swagger and check the schema for the import of the PriceList

RESULT: Inside the PriceListVersion > ProductPrice > ProductPriceException, the organization field is missing
Proposed Solutiondiff --git a/src/org/openbravo/commercialoperations/api/mappings/ProductPriceException/ImportProductPriceExceptionJavaPropertyMappingHandler.java b/src/org/openbravo/commercialoperations/api/mappings/ProductPriceException/ImportProductPriceExceptionJavaPropertyMappingHandler.java
index 1e3878c..d94e1df 100644
--- a/src/org/openbravo/commercialoperations/api/mappings/ProductPriceException/ImportProductPriceExceptionJavaPropertyMappingHandler.java
+++ b/src/org/openbravo/commercialoperations/api/mappings/ProductPriceException/ImportProductPriceExceptionJavaPropertyMappingHandler.java
@@ -44,8 +44,8 @@ public class ImportProductPriceExceptionJavaPropertyMappingHandler
 
   @Override
   public List<PropertyDocumentation<?>> getPropertyDocumentation() {
- return List.of(new StringPropertyDocumentation(PROPERTY_COMMERCIAL_OPERATION).nullable(true)
- .description("To add a commercial operation to the price exception"));
+ return combinePropertyDocumentation(super.getPropertyDocumentation(),List.of(new StringPropertyDocumentation(PROPERTY_COMMERCIAL_OPERATION).nullable(true)
+ .description("To add a commercial operation to the price exception")));
   }
 
   @Override
TagsNo tags attached.
Attached Filespng file icon Screenshot from 2024-08-01 14-38-35.png [^] (92,737 bytes) 2024-08-01 14:39

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0167613)
hgbot (developer)
2024-08-01 14:54

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.commercialoperations.api/-/merge_requests/16 [^]
(0167824)
hgbot (developer)
2024-08-08 07:44

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.commercialoperations.api/-/merge_requests/16 [^]
(0167825)
hgbot (developer)
2024-08-08 07:44

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.commercialoperations.api [^]
Changeset: d12f9bfb4404f49aac1d77d254dac6cbff628265
Author: Kepa Choperena <kepa.choperena@openbravo.com>
Date: 01-08-2024 14:52:24
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.commercialoperations.api/-/commit/d12f9bfb4404f49aac1d77d254dac6cbff628265 [^]

Fixes ISSUE-56150: Combined the documentation of the swagger with the super class in Import ProductPriceException

---
M src/org/openbravo/commercialoperations/api/mappings/ProductPriceException/ImportProductPriceExceptionJavaPropertyMappingHandler.java
---

- Issue History
Date Modified Username Field Change
2024-08-01 14:39 kchoperena New Issue
2024-08-01 14:39 kchoperena Assigned To => Triage Platform Conn
2024-08-01 14:39 kchoperena File Added: Screenshot from 2024-08-01 14-38-35.png
2024-08-01 14:39 kchoperena Triggers an Emergency Pack => No
2024-08-01 14:40 kchoperena Proposed Solution updated
2024-08-01 14:54 hgbot Note Added: 0167613
2024-08-01 15:07 adrianromero Assigned To Triage Platform Conn => Retail
2024-08-08 07:44 hgbot Note Added: 0167824
2024-08-08 07:44 hgbot Resolution open => fixed
2024-08-08 07:44 hgbot Status new => closed
2024-08-08 07:44 hgbot Note Added: 0167825


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker