-
Notifications
You must be signed in to change notification settings - Fork 2
Q&A
How is a new version of a document created?
Updating a document does not create a new version of a document. This is achieved by inserting a document with the same name and owner uri. Versioning is pseudo generated via the filename and uri. Lowest id is version 1, next id version 2, etc. This is assuming the id is sequential and lower numbers are older records.
Since the files are stored in MongoDB, the ID's are unique and incremental. Further reading of the MongoDB ID structure can be found at: http://www.mongodb.org/display/DOCS/Object+IDs
How to run functional tests for FileController
If you just checkout project from repository, you need first run project using grails run-app
. This will install locally all plugins and dependencies.
Otherwise, open your project from console and run next command:
grails test-app functional: FilesystemControllerFunctional