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

mongodb doesn't recognize databaseName prop from application.yml #63

Closed
pocket5s opened this issue Apr 14, 2015 · 4 comments
Closed

mongodb doesn't recognize databaseName prop from application.yml #63

pocket5s opened this issue Apr 14, 2015 · 4 comments

Comments

@pocket5s
Copy link
Contributor

May not be specific to application.yml as this works in grails 2.4.x and the associated plugin, but doesn't work in plugin 4.x and grails 3.0. have a fix and will do a pull request.

@miffels
Copy link

miffels commented Jun 9, 2015

Can confirm that grails.mongodb.databaseName is ignored for the most part. @pocket5s Are you working on a PR?

Edit: I see that a PR has been made and merged into the master branch. What's the release version for the fix?

@pocket5s
Copy link
Contributor Author

pocket5s commented Jun 9, 2015

you beat me to it :) The merge happened a week or two ago. Can't say what release it will be in however.

@bond-
Copy link
Contributor

bond- commented Dec 3, 2015

+1 for the issue
@graemerocher as per the latest code: https://github.com/grails/grails-data-mapping/blob/40102e8f2341c1cd560aa94e6219c3c9dd097775/grails-datastore-gorm-mongodb/src/main/groovy/grails/mongodb/bootstrap/MongoDbDataStoreSpringInitializer.groovy

MongoDB plugin seems to be reading databaseName from connectionString and databaseName from Datasource.groovy is ignored. Looks like either the documentation or code need to be fixed.

@bond-
Copy link
Contributor

bond- commented Dec 3, 2015

Never mind I forgot to read the manual. The old plugin used to look for:
grails { mongo { ... } }

New plugin is looking for grails { mongodb {} }

@graemerocher graemerocher added this to the 5.0.0 milestone Dec 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants