marklogic-community / grove

Grove, a toolkit full of tooling, templates, and other resources that help with building UI applications on top of MarkLogic.
https://marklogic-community.github.io/grove/
Other
5 stars 1 forks source link

mlUndeploy deleted all forests for DHF FINAL database #27

Open lifan0127 opened 5 years ago

lifan0127 commented 5 years ago

I have an existing DHF project with the standard setup of STAGING and FINAL databases. I followed this procedure (https://marklogic-community.github.io/grove/guides/data-hub-framework/) to set up a grove project to consume data from the DHF FINAL database. More specifically I deleted everything except the module-database.json in the ml-config/databases folder so the Grove project only has its own module database.

Delete content-database.json, schemas-database.json, and triggers-database.json from marklogic/ml-config/databases/

It all worked fine and my Grove React app was up and running. However, when I finished my exploration and ran mlUndeploy from the Grove project, it reported an error saying the FINAL database was in use. Then I realized that the undeploy task has deleted all the forests (and the data) associated with my DHF FINAL database. Why would this happen? Isn't it supposed to only remove Grove related artifacts?

Run ./gradlew mlUndeploy from marklogic if you ran mlDeploy previously, to get rid of Grove-specific artifacts.

grtjn commented 5 years ago

Thanks for reporting this, i'll need to check this with the ml-gradle project..

grtjn commented 5 years ago

Created a ticket against ml-gradle: https://github.com/marklogic-community/ml-gradle/issues/479