-
Notifications
You must be signed in to change notification settings - Fork 183
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
[tests-only][full-ci]Reuse code from code for favorites.feature
in ocis
#4492
Conversation
f2d6368
to
7cf0fc5
Compare
7cf0fc5
to
574eb5b
Compare
33e3098
to
c77c33f
Compare
c77c33f
to
51ef32c
Compare
51ef32c
to
bbe4c75
Compare
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.
@SagarGi are you going to make a different issue/PR for the remaining duplication?
Their is remaining code to refactor sendPutRequestToUrl sendCreateFolderRequest() sendPutRequestToUrl
.
I think we can directly use core code for HTTP requests. Do we need this function in ocis?
@amrita-shrestha We need to only refactor if we are implementing and duplicating the core code. I don't think we need to refactor those. I will be creating different issue if this PR is merge. This is a Sample PR for it only. |
@SagarGi are you going to do adjustment for
@SagarGi If you are going to create an issue for refactoring existing duplicate code as you told then that is nice. Otherwise, if we left other existing duplicated code like that then I think there will be no consistency, and newcomers/others will be confused. |
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.
LGTM
@amrita-shrestha Yes i will be creating once this PR gets merged. We will be clearing duplication code where we have added during shifting (/Shares) related issue. |
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.
apart from above little comment LGTM
bbe4c75
to
84c4806
Compare
Kudos, SonarCloud Quality Gate passed! |
Note: this gets the core commit id up-to-date - issue owncloud/QA#763 |
This PR of using the resource (code) from core as much as possible since there has been a duplication of code that already exists in core. A method to set the space id sets the space id of (Space) not implemented on core is added to make it work. This is an example with
favorite.feature
of ocis. A few adjustment has been done in core for this to works. Can be seen in this Core PR owncloud/core#40328.And This PR depends on:
owncloud/core#40328