Skip to content

Conversation

@rpmoore
Copy link
Contributor

@rpmoore rpmoore commented Aug 29, 2017

This pull request updates the following:

  • Updates the project to java 8
  • Adds Kotlin 1.1.4
  • Updated gradle to 4.1
  • Updates may dependencies to their latest versions
  • Consolidated most of the version information into the gradle.properties file
  • Code cleanup removing unused imports and removing redundant type declarations
  • Adds a paginated bucket delete command
  • Added some missing finals
  • Re-implements the file walking helper method to be lazy
  • Fixed some of the start bulk operation helper functions to make them truly lazy
  • Updates to the shadowjar setup to correctly include/exclude dependencies

…of gradle. Updated the listObjectsForDirectory helper method to be lazy. Updated the start_job commands to fully pass the Iterable along instead of copying it to a List. Added a paginated bucket delete call that minimizes the number of API calls that are used to delete all the objects in a bucket. Fixed an issue in the payload generation of the bulk request body to work around an issue when trying to serialize the payload from an Iterable. Updated the version of Jackson.
…rsion information into a single file. Fixed a bug in the network code introduced by reving the http client version.
…to make the service loader work correctly as well.
…re excluding the ds3-interfaces and ds3-utils projects from the metadata build since those classes must be included as apart of the ds3-sdk project, and will already exist.
@@ -0,0 +1,28 @@
package com.spectralogic.ds3client.utils.collections;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing copyright

@@ -0,0 +1,23 @@
package com.spectralogic.ds3client.helpers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing copyright

return StreamWrapper.wrapStream(Files.walk(startDir).map {
Ds3Object(startDir.relativize(it).toString().replace("\\", "/"), Files.size(it))
}.filter {
!Guard.isStringNullOrEmpty(it.name) // skip entries that are null or are the empty string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is kotlin, why not just ! it.name.isNullOrEmpty()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize kotlin had that. Updating...


walk.forEach {
listBuilder.add(it)
println(it.name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log, as opposed to println()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opps. That was a debug print. I'll remove

Copy link
Contributor

@GraciesPadre GraciesPadre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me, aside from a couple nits. I'll leave it form someone else to merge, so we all get a chance to review.

@rpmoore rpmoore merged commit 9a28ea9 into SpectraLogic:master Aug 30, 2017
@rpmoore rpmoore deleted the java_8_and_kotlin branch December 6, 2017 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants