-
Notifications
You must be signed in to change notification settings - Fork 15
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
#1570 check if shape file is uploading correctly #1575
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add useToken to the following code
- SiteService.createSitesFromKml
- SiteService.createSiteFromUploadedShapefile
@@ -247,14 +248,14 @@ class MetadataService { | |||
def facetConfig = webService.getJson(grailsApplication.config.ecodata.service.url + "/metadata/getGeographicFacetConfig") | |||
facetConfig.grouped.each { k, v -> | |||
v.each { name, fid -> | |||
def objects = webService.getJson(grailsApplication.config.spatial.baseURL + '/ws/objects/'+fid) | |||
def objects = webService.getJson(grailsApplication.config.spatial.baseURL + '/ws/objects/'+fid, null, true, false, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this to reflect below logic
results[k] << [(objects[0].fieldname):objects[0]] // Using the fieldname instead of the name for grouped facets is a temp workaround for the GER. | ||
} | ||
|
||
} | ||
|
||
facetConfig.contextual.each { name, fid -> | ||
def objects = webService.getJson(grailsApplication.config.spatial.baseURL + '/ws/objects/'+fid) | ||
def objects = webService.getJson(grailsApplication.config.spatial.baseURL + '/ws/objects/'+fid, null, true, false, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this to reflect below logic
@@ -247,14 +248,14 @@ class MetadataService { | |||
def facetConfig = webService.getJson(grailsApplication.config.ecodata.service.url + "/metadata/getGeographicFacetConfig") | |||
facetConfig.grouped.each { k, v -> | |||
v.each { name, fid -> | |||
def objects = webService.getJson(grailsApplication.config.spatial.baseURL + '/ws/objects/'+fid) | |||
def objects = webService.getJson(grailsApplication.config.spatial.baseURL + '/ws/objects/'+fid, null, false, false, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
includeUserId should be true
results[k] << [(objects[0].fieldname):objects[0]] // Using the fieldname instead of the name for grouped facets is a temp workaround for the GER. | ||
} | ||
|
||
} | ||
|
||
facetConfig.contextual.each { name, fid -> | ||
def objects = webService.getJson(grailsApplication.config.spatial.baseURL + '/ws/objects/'+fid) | ||
def objects = webService.getJson(grailsApplication.config.spatial.baseURL + '/ws/objects/'+fid, null, false, false, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
includeUserId should be true
i.e. default value.
Would you be able to get PR?