Openbravo Issue Tracking System - Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0049259 | Modules | Openbravo Business API | public | 2022-05-09 09:38 | 2022-05-10 11:11 |
|
Reporter | caristu | |
Assigned To | caristu | |
Priority | immediate | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0049259: Some configuration pool tests fail in Oracle |
Description | Some configuration pool tests fail in Oracle[1]. This is because the partial definition of the EM_API_DPS_ENT_MAP_ID_UNIQUE index is not applied in Oracle, which is preventing to save records with the same entity mapping although they have different filters.
Note that the purpose of this index is to prevent the save/update operation when it detects duplicated records with the same entity mapping and without a filter.
[1] https://builds.openbravo.com/job/mod-simple/48919/ [^] |
Steps To Reproduce | . |
Proposed Solution | Replace that index with a trigger which should work both in Postgres and Oracle |
Additional Information | |
Tags | No tags attached. |
Relationships | caused by | feature request | 0049040 | | closed | njimenez | Improve ApiExporter to make readonly pool usage configurable |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-05-09 09:38 | caristu | New Issue | |
2022-05-09 09:38 | caristu | Assigned To | => Triage Platform Conn |
2022-05-09 09:41 | hgbot | Note Added: 0137068 | |
2022-05-09 09:45 | caristu | Description Updated | bug_revision_view_page.php?rev_id=24037#r24037 |
2022-05-09 09:52 | caristu | Relationship added | caused by 0049040 |
2022-05-09 09:52 | caristu | Assigned To | Triage Platform Conn => caristu |
2022-05-09 09:52 | caristu | Priority | high => immediate |
2022-05-09 09:52 | caristu | Status | new => scheduled |
2022-05-09 11:40 | hgbot | Resolution | open => fixed |
2022-05-09 11:40 | hgbot | Status | scheduled => closed |
2022-05-09 11:40 | hgbot | Note Added: 0137072 | |
2022-05-09 11:40 | hgbot | Note Added: 0137073 | |
2022-05-09 17:11 | hgbot | Note Added: 0137095 | |
2022-05-09 17:12 | caristu | Note Deleted: 0137073 | |
2022-05-09 17:12 | caristu | Note Added: 0137096 | |
2022-05-09 17:12 | caristu | Note Edited: 0137096 | bug_revision_view_page.php?bugnote_id=0137096#r24064 |
2022-05-09 19:22 | hgbot | Note Added: 0137100 | |
2022-05-10 08:18 | hgbot | Note Added: 0137106 | |
2022-05-10 11:11 | hgbot | Note Added: 0137111 | |
Notes |
|
(0137068)
|
hgbot
|
2022-05-09 09:41
|
|
|
|
(0137072)
|
hgbot
|
2022-05-09 11:40
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 93094739612f243d984dc9eb591b60f936d7b7f2
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 09-05-2022 11:38:39
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/93094739612f243d984dc9eb591b60f936d7b7f2 [^]
fixes BUG-49259: replace index with a trigger that works in Oracle
The partial index definition of the EM_API_DPS_ENT_MAP_ID_UNIQUE index
is not valid in Oracle, because as the partial index definition does not
apply the index was preventing saving two data pool configuration
records for the same entity mapping, even if they define different filters.
The purpose of this index was to prevent saving or updating
duplicated records with the same entity mapping and null export filter.
So we are replacing this index with a trigger that works both in
Postgres and Oracle.
Apart from this, the tests that were failing in Oracle for this cause
are no longer ignored and the SelectionPoolConfigurationTest is
repackaged to a more suitable package according to the functionality it
is covering.
---
A src-db/database/model/triggers/API_DATA_POOL_SEL_TRG.xml
A src-test/org/openbravo/dal/service/SelectionPoolConfigurationTest.java
M src-db/database/model/modifiedTables/OBUIAPP_DATA_POOL_SEL.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-test/org/openbravo/api/StandaloneTestSuite.java
M src-test/org/openbravo/dal/service/DataPoolCheckerBusinessAPITest.java
---
|
|
|
(0137095)
|
hgbot
|
2022-05-09 17:11
|
|
|
|
|
|
|
(0137100)
|
hgbot
|
2022-05-09 19:22
|
|
|
|
(0137106)
|
hgbot
|
2022-05-10 08:18
|
|
|
|
(0137111)
|
hgbot
|
2022-05-10 11:11
|
|
|