-
Notifications
You must be signed in to change notification settings - Fork 182
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
Reuse OC10
resource (code) as much as possible for OCIS
#4509
Comments
TODO:
|
@SagarGi can't we use core code for this also? ocis/tests/acceptance/features/bootstrap/SpacesContext.php Lines 520 to 618 in b0fa917
|
@amrita-shrestha i think we can but i think we cannot say its a duplicate code. |
yeah but if we are reusing core code then why not properly implement it in overall ocis code? |
I'll take a look what can be done for this |
I think I've reused as many tests as possible in owncloud/core#40371 and #4577 but if there are still other tests that can be reused that I might have left please take a look and mention here |
@SwikritiT can we also reuse for copy and move request? for (copySpaces.feature and moveSpaces.feature). |
I'll take a look |
ocis/tests/acceptance/features/bootstrap/SpacesContext.php Lines 1590 to 1648 in 28c6311
This step contain some core code maybe we can remove that too |
We can reuse the code from the core for within space move or copy but for move in-between space, it's not possible through oc10 code so I don't think we should refactor these |
@SwikritiT can you remove this method:
and make a direct request in the method:
|
Done in #4710 |
@SwikritiT I have scanned as much possible. I think we have reused lots of code from core. Can't really find out possible code to be reused. So may be this issue can be closed. @saw-jan @amrita-shrestha |
I merged #4710 so this issue is done. |
Description
Recently we have been shifting some
spaces
related tests from core to ocis. During the process we have been duplicating code on ocis which is already in core. So we need to mitigate the code duplication and use the already available code (already in core) for new implementation onocis
.Note: Follow up this PR for reduction of code duplication.
owncloud/core#40328
#4492
NOTE:
Make possible code reduction related to the
features
that has been added during this issue:#4154 (comment)
The text was updated successfully, but these errors were encountered: