Added symlink functionality via X-Object-Manifest header management#565
Added symlink functionality via X-Object-Manifest header management#565ycombinator merged 6 commits intorackspace:workingfrom markchalloner:working
Conversation
|
Thanks for the PR, @markchalloner! We'll review it shortly and provide any feedback. |
There was a problem hiding this comment.
Could you please add a description for this parameter? We are starting to auto-generate API documentation so the description would be useful to readers.
…Manifest protected. Updated PHPDoc and tests.
You are correct about setting up a mock response before your unit test calls |
There was a problem hiding this comment.
Instead of returning null for an error case, lets throw an exception instead. This has the following benefits:
- it will keep error-handling consistent within this method. Just as you throw
Exceptions\NoNameErrorwhen the object has no name, you can throw another exception if the object has content in it. - by using an exception instead of returning
null, we can provide more information to the caller about what went wrong.
Feel free to re-use an exception class from https://github.com/markchalloner/php-opencloud/tree/working/lib/OpenCloud/Common/Exceptions or add your own if you can't find one that's appropriate.
This same comment applies to the createSymlinkFrom method.
There was a problem hiding this comment.
Hey @markchalloner, could you please remove the null from the @return type and description? Also, could you please add the necessary @throws documentation for the exceptions thrown by this method?
|
Hey @markchalloner, this is looking quite good. I have made a couple of minor suggestions about using exceptions instead of returning nulls, and I've provided a pointer to setting up mock responses. Once those changes are in, I'll be happy to merge this PR. Thanks! |
There was a problem hiding this comment.
Hey @markchalloner, could you please remove the null from the @return type and description? Also, could you please add the necessary @throws documentation for the exceptions thrown by this method?
There was a problem hiding this comment.
Whoops missed that. Updated now. Cheers
|
@markchalloner Thanks for the unit test using I've made two minor comments re: docblocks. Once those are addressed, I'll merge this PR. Very nice work on this with the implementation, tests and documentation! |
Added symlink functionality via X-Object-Manifest header management
|
Once again, awesome job @markchalloner. Thank you for this contribution! |
Implementation of #561