[jira] [Commented] (OFBIZ-7771) Allow to define which data the loadDefault Gradle task effectively loads

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-7771) Allow to define which data the loadDefault Gradle task effectively loads

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15372653#comment-15372653 ]

Taher Alkhateeb commented on OFBIZ-7771:
----------------------------------------

Ok, just a quick comment,

After further investigation, I realized that the system does _Exactly_ what Pierre wants. Namely:

- If you go to the EntityDataLoadContainer.java you will see that the system sets a default value of "none" if no readers are selected
- If the values is "none", then it will fetch the readers list for each data source from the <read-data .../> elements

So there you go, your default data is already decided by entityengine.xml. Thank you for your feedback, we all learned something in the process.


> Allow to define which data the loadDefault Gradle task effectively loads
> ------------------------------------------------------------------------
>
>                 Key: OFBIZ-7771
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7771
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Pierre Smits
>            Priority: Trivial
>
> The gradle task loadDefault is ambiguous, as it means different things to different uses. This could lead to a situations where it is used in a wrong manner, resulting in data being overwritten.
> Having a more meaningful name lessens the risk of such situations.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)