close
Skip to content

create set method for CanNonOwnerInvite - #700

Merged
mattwiller merged 4 commits into
box:masterfrom
Band-Aid:folder_setcannonowner
May 19, 2019
Merged

create set method for CanNonOwnerInvite#700
mattwiller merged 4 commits into
box:masterfrom
Band-Aid:folder_setcannonowner

Conversation

@Band-Aid

@Band-Aid Band-Aid commented May 8, 2019

Copy link
Copy Markdown
Contributor

Sets whether or not the non-owners can invite collaborators to the folder.

Sets whether or not the non-owners can invite collaborators to the folder.
@boxcla

boxcla commented May 8, 2019

Copy link
Copy Markdown

Hi @Band-Aid, thanks for the pull request. Before we can merge it, we need you to sign our Contributor License Agreement. You can do so electronically here: http://opensource.box.com/cla

Once you have signed, just add a comment to this pull request saying, "CLA signed". Thanks!

@Band-Aid

Band-Aid commented May 8, 2019

Copy link
Copy Markdown
Contributor Author

CLA signed

@boxcla

boxcla commented May 8, 2019

Copy link
Copy Markdown

Verified that @Band-Aid has just signed the CLA. Thanks, and we look forward to your contribution.

@mattwiller mattwiller left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@Band-Aid Thank you for the pull request! It looks like the CI job is failing; please see my comments on the code for details. If you don't mind making the changes to get it passing, I can merge the PR.

*
* @param isRestricted indicates whether there is collaboration restriction within enterprise.
*/
public void setIsCollaborationRestrictedToEnterprise(boolean isRestricted) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CI is failing, I think because this method already exists:

/home/travis/build/box/box-java-sdk/src/main/java/com/box/sdk/BoxFolder.java:1302: error: method setIsCollaborationRestrictedToEnterprise(boolean) is already defined in class BoxFolder.Info
        public void setIsCollaborationRestrictedToEnterprise(boolean isRestricted) {
                    ^

Could you remove it and see if that fixes things?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sorry about that don't know how that got passed my test build :(
removed duplicate code and also fixed typo in comments

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@mattwiller Any thoughts why CI is failing? Says some sort styling guide error

@coveralls

coveralls commented May 19, 2019

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 1889

  • 0 of 3 (0.0%) changed or added relevant lines in 1 file are covered.
  • 5 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 62.489%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/box/sdk/BoxFolder.java 0 3 0.0%
Files with Coverage Reduction New Missed Lines %
src/main/java/com/box/sdk/BoxAPIRequest.java 2 65.78%
src/main/java/com/box/sdk/RealtimeServerConnection.java 3 80.0%
Totals Coverage Status
Change from base Build 1885: -0.02%
Covered Lines: 5041
Relevant Lines: 8067

💛 - Coveralls

@mattwiller
mattwiller merged commit 1ed10d7 into box:master May 19, 2019
@mattwiller

Copy link
Copy Markdown

@Band-Aid It looks like the linter wanted a space between the closing parenthesis and opening brace in the method signature; I went ahead and made the edit and merged the PR. We'll get this released in the upcoming version of the SDK in the next week!

@carycheng

Copy link
Copy Markdown

Hey @Band-Aid,

Thank you for your contribution! We have release v2.33.0 of the sdk and your work is included in that!

Again much appreciated and if you have any questions or feedback, please do not hesitate to reach out!

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.

5 participants