Bug 1066616
| Summary: | POJO previously externally modified cannot be changed in the DM | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Zuzana Krejčová <zkrejcov> | ||||||
| Component: | Data Modeler | Assignee: | Walter Medvedeo <wmedvede> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavel Kralik <pkralik> | ||||||
| Severity: | urgent | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | unspecified | CC: | althomas, etirelli, kverlaen, lpetrovi, paradhya, pzapataf, rrajasek, vigoyal | ||||||
| Target Milestone: | ER2 | Keywords: | Regression, TestBlocker | ||||||
| Target Release: | 6.0.1 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-08-06 20:03:05 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Zuzana Krejčová
2014-02-18 17:42:25 UTC
At the moment those are the options we have: 1) When it's detected that a .java file was externally modified, we can put a small description e.g "(externally modified)" and let the user modify the data object from the datamodeler. The user should know that full roundtip is not implemented for this version. To implement that we have already a property that enable/disable the "read only mode feature". So we just have to add the e.g. "(externally modified)" description or whatever other extra information to the user. 2) Keep current verification, and if a file was externally modified the pojo is shown in read only mode. Walter, given the current limitations of the modeller, let's go with 1). It will allow people to perform modifications on the data at their own risk. (Since the other option doesn't prevent them anyway, just makes them harder.) However, the description / alert / popup should clearly state that doing so may cause data loss when Git commits are also coming from outside of the WB. We will also need to clearly document this. Vikram, can you make sure that the limitations of the Data Modeller make it into the Workbench documentation? +1 on first option Guys, I agree with Lukas,lets go with option 1. Please keep it to limited code change. As little disruption as possible. thanks The following commits implements option 1. push master URL: http://github.com/droolsjbpm/kie-wb-common/commit/b9dd5697b push 6.0.x URL: http://github.com/droolsjbpm/kie-wb-common/commit/67cb051b5 Attached screenshots shows the information for the popup, and how an externally modified object is marked. Created attachment 865953 [details]
Notification displayed if externally modified objects are detected when the model is opened
Created attachment 865980 [details]
Mark for externally modfied objects
The following two additional commits are also related needed. push master URL: http://github.com/droolsjbpm/kie-wb-common/commit/9fe037d18 push 6.0.x URL: http://github.com/droolsjbpm/kie-wb-common/commit/d1b1862ee Externally modified POJO can be modified in the DM. The warning about external modification pops up. Verified for bpms-6.0.1-ER2 deployable for eap6. I have added the note about synchronizing data between the DM and external sources as a warning in this section [1]. Please verify if this is correct. Thanks. I am clearing the NEEDINFO. [1] http://documentation-devel.engineering.redhat.com/site/documentation/en-US/Red_Hat_JBoss_BPM_Suite/6.0/html-single/User_Guide/index.html#Creating_a_data_object |