We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The api end point http://localhost:8080/api/folders/path/{path}?finalised=true has a bug where it does not pass the finalised param on to other functions that require it. This can result in an unfinalised data model being returned.
e.g.
...,"finalised":false,...
When calling http://localhost:8080/api/folders/path/{path}?finalised=true a finalised dataModel should be returned.
The fix is to simply pass the finalised param into the next function, then everything works as expected.
Update file: mdm-core/grails-app/services/uk/ac/ox/softeng/maurodatamapper/core/path/PathService.groovy Change line 149 to be: findResourceByPathFromRootResource(rootResource, path, null, pathParams)
mdm-core/grails-app/services/uk/ac/ox/softeng/maurodatamapper/core/path/PathService.groovy
findResourceByPathFromRootResource(rootResource, path, null, pathParams)
The text was updated successfully, but these errors were encountered:
gh-408: Folder Path Search: Pass finalised param onto other functions
ffe6552
Merge pull request #409 from MauroDataMapper/feature/gh-408
6931511
NigelPalmer
No branches or pull requests
Description
The api end point http://localhost:8080/api/folders/path/{path}?finalised=true has a bug where it does not pass the finalised param on to other functions that require it. This can result in an unfinalised data model being returned.
Steps to reproduce
e.g.
...,"finalised":false,...
Expected behavior
When calling http://localhost:8080/api/folders/path/{path}?finalised=true a finalised dataModel should be returned.
Additional context
The fix is to simply pass the finalised param into the next function, then everything works as expected.
Update file:
mdm-core/grails-app/services/uk/ac/ox/softeng/maurodatamapper/core/path/PathService.groovy
Change line 149 to be:
findResourceByPathFromRootResource(rootResource, path, null, pathParams)
The text was updated successfully, but these errors were encountered: