Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load data from standard data directory #446

Closed
rjrudin opened this issue Mar 22, 2019 · 3 comments
Closed

Load data from standard data directory #446

rjrudin opened this issue Mar 22, 2019 · 3 comments
Assignees
Milestone

Comments

@rjrudin
Copy link
Contributor

rjrudin commented Mar 22, 2019

As an ml-gradle user
I want a deployment to TITLE
So that data - e.g. reference or configuration data - that I always need loaded as part of a deployment can be loaded from a standard directory and thus I don't have to create an MLCP task

  • src/main/ml-data would be the standard directory
  • mlDataPaths would function just like mlConfigPaths and mlModulePaths
  • The support documented at https://github.com/marklogic-community/ml-javaclient-util/wiki/Loading-files would be used for providing control over collections and permissions
  • The URI would be the path of the file relative to the data directory (e.g. src/main/ml-data/my/doc.json would become /my/doc.json)
  • An ml-data directory in an mlRestApi dependency would be added to mlDataPaths so that dependencies could contribute data as well
@rjrudin rjrudin added this to the 3.13.0 milestone Mar 22, 2019
@rjrudin
Copy link
Contributor Author

rjrudin commented Mar 25, 2019

@rjrudin
Copy link
Contributor Author

rjrudin commented Mar 26, 2019

@lifan0127
Copy link

Hi @rjrudin This is a very useful feature. Thank you! For specifying collections and permissions, how can I apply them to all files in subdirectories? Right now it seems they only affect files in the same directory but not in subdirectories.

https://github.com/marklogic-community/ml-javaclient-util/wiki/Loading-files#specifying-collections-and-permissions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants