-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add ability to auto-register GeoMesa File System DataStores #25
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Jim Hughes <jnh5y@ccri.com>
|
||
override def doFilter(servletRequest: ServletRequest, servletResponse: ServletResponse, filterChain: FilterChain): Unit = { | ||
val request = new Request() | ||
request.setHttpRequest(servletRequest.asInstanceOf[HttpServletRequest]) |
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.
are these 2 lines doing anything? seems like they could be removed
|
||
def shouldCreate(workspace: String): Boolean = { | ||
val base = System.getProperty("GEOMESA_FSDS_BASE_DIRECTORY") | ||
if(base == null || Seq("styles", "web", "index.html", "openlayers3").contains(workspace)) return false |
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.
it might be safer to make these configurable in the spring bean, so that they can be configured. what are the typical url patterns you're matching here?
dsi.setEnabled(true) | ||
dsi.setName(directory) | ||
|
||
val factory = new FileSystemDataStoreFactory |
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.
what happens if you're not using the FSDS? is this going to break all other datastores?
val wsi = dti.getWorkspace | ||
|
||
ds.getNames.foreach { name => | ||
val fs = ds.getFeatureSource(name) |
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.
seems like this should check to see if the layers are already registered?
@@ -445,6 +445,12 @@ | |||
<version>${slf4j.version}</version> | |||
<scope>provided</scope> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.specs2</groupId> | |||
<artifactId>specs2_2.11</artifactId> |
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.
any chance for some unit tests?
Signed-off-by: Jim Hughes jnh5y@ccri.com