[jira] [Commented] (OFBIZ-7771) Rename loadDefault to something less ambiguous

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) Rename loadDefault to something less ambiguous

Nicolas Malin (Jira)

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

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

loadDefault is more clear than loadDemo. Furthermore, the README.md clearly identifies what loadDefault means.

Furthermore, loadDefault is the correct name because it is actually the default data to be loaded. If you call ./gradlew "ofbiz --load-data" without any arguments then the default data is loaded. Now it does not matter "what is the default data" because that is identified inside the server and not the build script level. At least it was that way for many years.

> Rename loadDefault to something less ambiguous
> ----------------------------------------------
>
>                 Key: OFBIZ-7771
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7771
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Pierre Smits
>
> 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)