Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0051331Openbravo ERPA. Platformpublic2023-01-11 15:362023-01-11 15:44
alostale 
Triage Platform Base 
normalminorhave not tried
newopen 
5
 
 
Core
No
0051331: IndexesTest does not check FKs from external modules
IndexesTest, that looks for missing indexes in tables used in subtabs, does not take into account FKs if the column is added from a different module than the table.
1. Create a new module with some dbprefix (ie. TEST)
2. In that module define a FK column in a table existing in some other module (ie. AD_ALERT.EM_TEST_C_ORDER_ID)
3. Create a subtab making use of that column. (ie. Sales Order > Alert)
4. Run IndexesTest
     Got: no error
     Expected: the test should fail as there is no index in the new FK column
Current query depends on some compat ORA-PG view, which makes things slow and complicated. There might no need to used this, we could be PG compatible only if we skip the test in ORA.
No tags attached.
Issue History
2023-01-11 15:36alostaleNew Issue
2023-01-11 15:36alostaleAssigned To => Triage Platform Base
2023-01-11 15:36alostaleModules => Core
2023-01-11 15:36alostaleTriggers an Emergency Pack => No
2023-01-11 15:37alostaleNote Added: 0145262
2023-01-11 15:43alostaleProposed Solution updated
2023-01-11 15:44alostaleNote Added: 0145263

Notes
(0145262)
alostale   
2023-01-11 15:37   
See https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1379#note_1235794851 [^]
(0145263)
alostale   
2023-01-11 15:44   
Before merging this fix, we'd need to ensure CI for all mods is not completely broken.