Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||||||||||||
View Issue Details | |||||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||||||||||
0029782 | Openbravo ERP | A. Platform | public | 2015-05-05 16:52 | 2015-05-15 09:22 | ||||||||||||||||||||||||
Reporter | gorkaion | ||||||||||||||||||||||||||||
Assigned To | gorkaion | ||||||||||||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | N/A | ||||||||||||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||||||||||||
Product Version | 3.0PR14Q2.6 | ||||||||||||||||||||||||||||
Target Version | Fixed in Version | 3.0PR15Q3 | |||||||||||||||||||||||||||
Merge Request Status | |||||||||||||||||||||||||||||
Review Assigned To | alostale | ||||||||||||||||||||||||||||
OBNetwork customer | No | ||||||||||||||||||||||||||||
Web browser | |||||||||||||||||||||||||||||
Modules | Core | ||||||||||||||||||||||||||||
Support ticket | |||||||||||||||||||||||||||||
Regression level | |||||||||||||||||||||||||||||
Regression date | |||||||||||||||||||||||||||||
Regression introduced in release | |||||||||||||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||||||||||||
Summary | 0029782: Hooks needed on some processes to be used by modules | ||||||||||||||||||||||||||||
Description | There are some application flows that should have hooks so modules can extend them to add new functionality. These flows are: * WindowsSettingsActionHandler: This action handler is in charge of computing different window settings that are calculated based on the user and role. Among these settings there are the "Read Only Logic" based on role, the autosave preference or the window personalization. A hook is needed to be able to implement other module specific settings. This hook should have a Java part to be run in the server and a JavaScript part to be executed in the client. * DefaultJsonDataService: The datasource in charge on load, update, delete or insert the records edited in the client already have some "pre" and "post" actions that are executed on each call. It should be possible for modules to add additional actions to validate or modify the data that it is being processed. * FormInitializationComponent: This class initializes the form used to edit a record in the application. It computes all the callouts, auxiliary inputs, session attributes... and returns all the needed information to display the form data in the client. It should be possible for modules to modify the data that it is send to the client. | ||||||||||||||||||||||||||||
Steps To Reproduce | N/A | ||||||||||||||||||||||||||||
Proposed Solution | Add a hook on each flow: WindowsSettingsActionHandler: * hook to perform validations and to add extra settings to the return object * hook in the callback function to be able to call additional module's JavaScript functions. DefaultJsonDataService: * hook to be executed after the preActions. Currently the preactions are not centralized on a single method. It needs a small refactor to create a generic preAction where it is included the hook. * hook to be executed after the postActions. FormInitializationComponent: * hook at the end of the main method just before the response JSONObject is computed. | ||||||||||||||||||||||||||||
Additional Information | |||||||||||||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||||||||||||
Relationships |
| ||||||||||||||||||||||||||||
Attached Files | |||||||||||||||||||||||||||||
Issue History | |||||||||||||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||||||||||||
2015-05-05 16:52 | gorkaion | New Issue | |||||||||||||||||||||||||||
2015-05-05 16:52 | gorkaion | Assigned To | => gorkaion | ||||||||||||||||||||||||||
2015-05-05 16:52 | gorkaion | OBNetwork customer | => No | ||||||||||||||||||||||||||
2015-05-05 16:52 | gorkaion | Modules | => Core | ||||||||||||||||||||||||||
2015-05-05 16:52 | gorkaion | Triggers an Emergency Pack | => No | ||||||||||||||||||||||||||
2015-05-07 11:10 | gorkaion | Note Added: 0077083 | |||||||||||||||||||||||||||
2015-05-07 11:11 | gorkaion | Status | new => scheduled | ||||||||||||||||||||||||||
2015-05-07 11:12 | gorkaion | Status | scheduled => resolved | ||||||||||||||||||||||||||
2015-05-07 11:12 | gorkaion | Fixed in SCM revision | => https://code.openbravo.com/erp/devel/pi/rev/fd2ea337257b [^] | ||||||||||||||||||||||||||
2015-05-07 11:12 | gorkaion | Resolution | open => fixed | ||||||||||||||||||||||||||
2015-05-07 11:13 | gorkaion | Review Assigned To | => alostale | ||||||||||||||||||||||||||
2015-05-07 11:21 | hgbot | Checkin | |||||||||||||||||||||||||||
2015-05-07 11:21 | hgbot | Note Added: 0077084 | |||||||||||||||||||||||||||
2015-05-07 11:21 | hgbot | Fixed in SCM revision | https://code.openbravo.com/erp/devel/pi/rev/fd2ea337257b [^] => http://code.openbravo.com/erp/devel/pi/rev/d3e797b23239b892edc7b2140f69b7557632936f [^] | ||||||||||||||||||||||||||
2015-05-08 15:39 | hudsonbot | Checkin | |||||||||||||||||||||||||||
2015-05-08 15:39 | hudsonbot | Note Added: 0077246 | |||||||||||||||||||||||||||
2015-05-15 09:22 | alostale | Note Added: 0077476 | |||||||||||||||||||||||||||
2015-05-15 09:22 | alostale | Status | resolved => closed | ||||||||||||||||||||||||||
2015-05-15 09:22 | alostale | Fixed in Version | => 3.0PR15Q3 | ||||||||||||||||||||||||||
2015-10-01 14:43 | alostale | Relationship added | related to 0031007 | ||||||||||||||||||||||||||
2015-11-05 09:08 | alostale | Relationship added | causes 0031358 | ||||||||||||||||||||||||||
2015-11-05 12:08 | alostale | Relationship added | related to 0031371 |
Notes | |||||
|
|||||
|
|||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|