-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Public API OC6 - what's missing #4863
Comments
Regarding OC_FileProxy: OC_FileProxy:
Thanks @tanghus |
@owncloud/core-developers One of the rare case where a notification to all seams legit 😉 |
OC_Appconfig is needed only partly i think. Most of the useful stuff is in OCP\Config |
Do we have a Session class? The PHP session is already available in Request.
Shouldn't that be separate from Request? |
https://github.com/owncloud/core/blob/master/lib/session/session.php - we need to create an interface from it
Exactly - $_SESSION is available via the Request object - but this global var should not be used (actually it doesn't work in conjunction with our own session implementation) |
Ah, I was looking only in /lib, not the sub-folders.
Should it be removed from Request, changed to return an instance of ISession or...? Edit: Now I read your previous comment again, and see that I misunderstood it. I thought you meant kill session as in destroy current session, so that answers my my own question ;) |
I think dogfooding is the best approach to iron out what's missing/inconvenient, but I can't quite grasp how to implement it in an app. What do I need to do to port an app from OCA\AppFramework? |
More or less copy/paste from the ML: Now in order to get the Files view you will have to do something like: $root = $server->getRootFolder(); If so adding a getUserFolder() is a good idea. Maybe getRootFolder() should Does Server know the current app? That would be very handy for e.g. getStorage. |
That's another open topic and we need to add this to the documentation.
Exactly |
getRootFolder should return the absolute root folder, there are more then enough valid use cases to access other apps' files. Adding a getUserFolder is a good idea |
I'll take a stab at adding interfaces for the app calls |
Awaiting the pull request 😉 |
thanks a lot! |
ideally you implement ArrayAccess for the session object so nothing should change compared to using $_SESSION |
Maybe:
I'm still befuddled by the filesystem, so I'm not sure of the proper way to do it. |
Fantabulous :) |
👍 |
Or getFilesFolder()? |
any comment on https://gist.github.com/bartv2/6586173 |
@DeepDiver1975 i'm also missing a todo for the nav menu, or am i missing something. (this should go into the template namespace BTW) |
looks good |
task added - thx |
Shouldn't all Response subclasses be in the public namespace? |
yes - thanks for spotting - I missed this |
Shall I move them? What about the abstract controller class? |
hmm - json and template response are already part of the public namespace |
Yes, only RedirectResponse and DownloadResponse missing. TextDownloadResponse has been killed? It also was a bit overkill to have a class just for a different mimetype. |
I still think having an abstract class would be sensible there :)
That would be great |
@tanghus the server container should not define any middleware at all. Actually i have no idea why its there |
No that is in the app container. |
State of this? I checked
because they are merged. |
we are running out of time. let's move this to oC 7 |
Did this make it into ownCloud 7 then, or do we need to triage? @karlitschek @DeepDiver1975 |
We nned to triage the above list again I think |
Anything here that could make it into OC 8 ? |
We need to review this once more and see how to continue - to some extent this also depends on requirements/requests from apps on which api they expect ... |
I think we would want to consider things like planned splunk integration... This could be leverage in terms of reporting user clean up etc @MTRichards thoughts? Sent from my iPhone
|
Time's up on this - please everybody: open individual issue for missing APIs - THX |
This issue is to be used as a todo list for public apis which are missing as of today.
Please add a comment on what we miss and We will add this to the list below.
For each missing api a pull request is to be opened - once merged we can check the item on the todo list.
How to implement a public api?
core/lib/server.php
Line 88 in 5d4e9e0
core/lib/server.php
Line 49 in 5d4e9e0
Mainly important on all public classes, interfaces and methods: add proper PHPDoc comments
Missing apis
The text was updated successfully, but these errors were encountered: