Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0024395
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformminorhave not tried2013-07-22 14:332013-07-24 18:56
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionc7975027a5bc
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0024395: Improve import.sample.data to skip already imported clients

DescriptionRight now workflow to install retail sampledata on a freshly installed erp is

1.) install retail modules + retail sampledata module
2.) rebuild
3.) delete core sampledata
4.) ant import.sample.data

That part 3 is a bit akward. If import.sample.data would be improved to skip already imported clients that step 3 would just not be necessary.
Steps To Reproduce-
Proposed SolutionOn import.sample.data when having found a directory containing sampledata.
First search for and parse the AD_CLIENT.xml file, then check if a client with that uuid is already present in the database. If it is -> skip important that sampledata folder and continue searching for other sampledata folders.

Implementation note:
The code first will check if the AD_CLIENT.xml file is present, in case it is not it will skip the check and just important the data.
This allow for future shipment of incremental sampledata which is inserted on top of sampledata provided by some other module.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0060153)
hgbot (developer)
2013-07-22 21:24

Repository: erp/devel/dbsm-main
Changeset: e28be33901e3de206ba2f2321d71d32705130876
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Mon Jul 22 14:41:33 2013 +0200
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/e28be33901e3de206ba2f2321d71d32705130876 [^]

Fixed 24395: Skip already imported clients in ant import.sample.data
When running import.sample.data check if a client to be imported
is already in the database, if so -> skip important that client
and continue searching for other sampledata to import.
In case no ad_client.xml exists in the sampledata folder skip that new
check altogether to prepare for future incremental sampledata.

---
M src/org/openbravo/ddlutils/task/ImportSampledata.java
---
(0060155)
hgbot (developer)
2013-07-22 21:25

Repository: erp/devel/pi
Changeset: c7975027a5bcd52cacc073db8d16fe188b14c5cf
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Mon Jul 22 14:44:31 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c7975027a5bcd52cacc073db8d16fe188b14c5cf [^]

Fixed 24394, Fixed 24395. Commit dbsm changes to pi

---
M src-db/database/lib/dbsourcemanager.jar
---
(0060163)
hudsonbot (developer)
2013-07-23 05:33

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6a3af4b90642 [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2013-07-22 14:33 shuehner New Issue
2013-07-22 14:33 shuehner Assigned To => shuehner
2013-07-22 14:33 shuehner Modules => Core
2013-07-22 14:33 shuehner Triggers an Emergency Pack => No
2013-07-22 14:34 shuehner Review Assigned To => marvintm
2013-07-22 21:24 hgbot Checkin
2013-07-22 21:24 hgbot Note Added: 0060153
2013-07-22 21:24 hgbot Status new => resolved
2013-07-22 21:24 hgbot Resolution open => fixed
2013-07-22 21:24 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/dbsm-main/rev/e28be33901e3de206ba2f2321d71d32705130876 [^]
2013-07-22 21:25 hgbot Checkin
2013-07-22 21:25 hgbot Note Added: 0060155
2013-07-22 21:25 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/dbsm-main/rev/e28be33901e3de206ba2f2321d71d32705130876 [^] => http://code.openbravo.com/erp/devel/pi/rev/c7975027a5bcd52cacc073db8d16fe188b14c5cf [^]
2013-07-23 05:33 hudsonbot Checkin
2013-07-23 05:33 hudsonbot Note Added: 0060163
2013-07-24 18:56 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker