Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0037322 | Openbravo ERP | 00. Application dictionary | public | 2017-11-18 13:17 | 2021-07-21 12:36 |
|
Reporter | shuehner | |
Assigned To | shuehner | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | PR21Q4 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0037322: Remove technically useless ad_process entries |
Description | The ad_process table as a few rows which are technically useless because they call into one of the 3 following classes:
a.) as they do not contain either of:
- matching ad_model_object row
- procedurename value
- javaclass value
- jrname value
b.) They do contain a procedurename but no pl function with that name exists
Note: Manually excluded dba_recompile which is created only on oracle db
c.) They do contain a javaclass but that javaclass does not exist
That mean that they are technically not useful for anything and can be removed. |
Steps To Reproduce | a.)
select p.isactive,p.ad_process_id, p.name, p.procedurename, p.classname, p.jrname from ad_process p where not exists (select 1 from ad_model_object mo where mo.ad_process_id = p.ad_process_id) and p.procedurename is null and p.classname is null and p.jrname is null order by p.ad_process_id
b.)
select p.isactive,p.ad_process_id, p.name, p.procedurename, p.classname, p.jrname from ad_process p where not exists (select 1 from ad_model_object mo where mo.ad_process_id = p.ad_process_id) and not exists (select 1 from information_schema.routines r where r.routine_schema = 'public' and r.routine_name ilike p.procedurename) and p.procedurename is not null and p.procedurename <> 'DBA_Recompile' and p.classname is null and p.jrname is null; |
Proposed Solution | Double-check the argumentation above delete those useless ad_process entries and their related rows (ad_menu, ad_treenode related to the menu entries, ad_process_access)
|
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0037478 | | closed | Triage Finance | Modules | Replace ad_element reference to core for a to be removed element with a new custom one in the module | related to | defect | 0047421 | | closed | shuehner | Openbravo ERP | API changes: to remove ad_process entries without any content | has duplicate | feature request | 0005058 | | closed | jonalegriaesarte | Openbravo ERP | Unused not working Process: RV_Order_Open | blocks | design defect | 0032688 | | acknowledged | Triage Platform Base | Openbravo ERP | remove unused resources | causes | defect | 0047865 | | closed | alostale | Openbravo ERP | It is not possible to create a new client using the default roles |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-11-18 13:17 | shuehner | New Issue | |
2017-11-18 13:17 | shuehner | Assigned To | => shuehner |
2017-11-18 13:17 | shuehner | Modules | => Core |
2017-11-18 13:17 | shuehner | Triggers an Emergency Pack | => No |
2017-11-18 13:17 | shuehner | Relationship added | blocks 0032688 |
2017-11-18 13:25 | shuehner | Description Updated | bug_revision_view_page.php?rev_id=16309#r16309 |
2017-11-18 13:25 | shuehner | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=16311#r16311 |
2017-11-18 14:44 | shuehner | Note Added: 0100603 | |
2017-12-10 16:35 | shuehner | Relationship added | related to 0037441 |
2017-12-14 13:19 | shuehner | Relationship added | related to 0037478 |
2021-07-16 14:11 | shuehner | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=22893#r22893 |
2021-07-16 16:53 | hgbot | Note Added: 0130547 | |
2021-07-19 11:45 | hgbot | Note Added: 0130561 | |
2021-07-19 11:45 | hgbot | Note Added: 0130562 | |
2021-07-19 12:19 | hgbot | Note Added: 0130563 | |
2021-07-19 14:14 | hgbot | Note Added: 0130578 | |
2021-07-19 14:25 | hgbot | Note Added: 0130579 | |
2021-07-19 16:54 | shuehner | Note Edited: 0100603 | bug_revision_view_page.php?bugnote_id=0100603#r22897 |
2021-07-21 10:57 | hgbot | Note Added: 0130632 | |
2021-07-21 10:57 | hgbot | Note Added: 0130633 | |
2021-07-21 10:57 | hgbot | Note Added: 0130634 | |
2021-07-21 10:57 | hgbot | Note Added: 0130635 | |
2021-07-21 10:57 | hgbot | Note Added: 0130636 | |
2021-07-21 10:57 | hgbot | Note Added: 0130637 | |
2021-07-21 10:57 | hgbot | Note Added: 0130638 | |
2021-07-21 10:57 | hgbot | Note Added: 0130639 | |
2021-07-21 10:57 | hgbot | Note Added: 0130640 | |
2021-07-21 10:57 | hgbot | Note Added: 0130641 | |
2021-07-21 10:57 | hgbot | Note Added: 0130642 | |
2021-07-21 10:57 | hgbot | Note Added: 0130644 | |
2021-07-21 10:57 | hgbot | Note Added: 0130645 | |
2021-07-21 10:57 | hgbot | Note Added: 0130646 | |
2021-07-21 10:57 | hgbot | Note Added: 0130647 | |
2021-07-21 10:57 | hgbot | Resolution | open => fixed |
2021-07-21 10:57 | hgbot | Status | new => closed |
2021-07-21 10:57 | hgbot | Fixed in Version | => PR21Q4 |
2021-07-21 10:57 | hgbot | Note Added: 0130648 | |
2021-07-21 10:57 | hgbot | Note Added: 0130649 | |
2021-07-21 12:36 | shuehner | Relationship added | related to 0047421 |
2021-08-31 16:01 | shuehner | Relationship added | has duplicate 0005058 |
2021-10-15 15:19 | martinsdan | Relationship added | causes 0047865 |
Notes |
|
(0100603)
|
shuehner
|
2017-11-18 14:44
(edited on: 2021-07-19 16:54) |
|
Stats for removal (with backoffice repo only)
obpi_pg=# select isactive, count(*) from ad_process group by 1;
isactive | count
----------+-------
Y | 290 -> 239
N | 14 -> 14
(2 rows)
obpi_pg=# select isactive, count(*) from ad_process_para group by 1;
isactive | count
----------+-------
Y | 244 -> 153
N | 1 -> 1
(2 rows)
obpi_pg=# select isactive, count(*) from ad_menu group by 1;
isactive | count
----------+-------
Y | 378 -> 378
N | 58 -> 26
(2 rows)
|
|
|
(0130547)
|
hgbot
|
2021-07-16 16:53
|
|
|
|
(0130561)
|
hgbot
|
2021-07-19 11:45
|
|
|
|
(0130562)
|
hgbot
|
2021-07-19 11:45
|
|
|
|
(0130563)
|
hgbot
|
2021-07-19 12:19
|
|
|
|
(0130578)
|
hgbot
|
2021-07-19 14:14
|
|
|
|
(0130579)
|
hgbot
|
2021-07-19 14:25
|
|
|
|
(0130632)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130633)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130634)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130635)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130637)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130636)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130638)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130639)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130640)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130641)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130642)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130644)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130645)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130646)
|
hgbot
|
2021-07-21 10:57
|
|
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 12de9600f50be24b357cc4cf1ae4ae3e421ab1fb
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 2021-07-21T10:07:12+02:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/12de9600f50be24b357cc4cf1ae4ae3e421ab1fb [^]
Related to ISSUE-37322: Remove obsolete column c_projectline.dopricing
Earlier commit d918e6beee removed the ad_process_id=230 which was still
referenced by the ad_column_id=9873 which is a button (aka c_projectline.dopricing)
Remove that columnd and its (not displayed) field as they are useless
without a working process.
Reference a single reference to fhe field in C_PROJECT_WON pl-function
also which was just setting a default value for the column.
---
M src-db/database/model/functions/C_PROJECT_WON.xml
M src-db/database/model/tables/C_PROJECTLINE.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
---
|
|
|
(0130647)
|
hgbot
|
2021-07-21 10:57
|
|
|
|
(0130648)
|
hgbot
|
2021-07-21 10:57
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 226383c72ad6c73e7d75db18bc6fa7427af5a8e0
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 2021-07-21T10:26:29+02:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/226383c72ad6c73e7d75db18bc6fa7427af5a8e0 [^]
Fixes ISSUE-37322: Delete ad_process entries not having any content.
This removes a number of ad_process entries not having any content
(java code, or pl-functiona or jrxml file) behind them to be ran.
Merge branch 'fr/37322-remove-useless-ad_process'
---
M referencedata/sampledata/F_B_International_Group/AD_PROCESS_ACCESS.xml
M referencedata/sampledata/QA_Testing/AD_PROCESS_ACCESS.xml
M src-db/database/model/functions/C_PROJECT_WON.xml
M src-db/database/model/tables/C_PROJECTLINE.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MENU.xml
M src-db/database/sourcedata/AD_PROCESS.xml
M src-db/database/sourcedata/AD_PROCESS_PARA.xml
M src-db/database/sourcedata/AD_TREENODE.xml
---
|
|
|
(0130649)
|
hgbot
|
2021-07-21 10:57
|
|
|