-
-
Notifications
You must be signed in to change notification settings - Fork 77
Album dav api #1146
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
Album dav api #1146
Conversation
artonge
left a comment
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.
I don't see any way to store the album location. Also, there is nothing about the sharing state (collaborators).
Will it come in future work ?
How do we want to store location? coordinates or freeform string? |
Freeform string |
|
Also, could there be a way to have the creation date, the number of items, and a cover picture ? I can be the latest added picture for now. The last two information could be retrieved from fetching the file list, but it won't scale with a lot of albums. |
|
Additional work done here: #1142 |
|
Added Note that this change re-uses the same migration which will not run automatically if you've already run a previous version of it. You can manually trigger the new changes by deleting the |
|
First of all, excuse the boldness. In principle, perhaps it would only need a flag to indicate that it cannot be edited by the user [1], perhaps change 'location' to 'context' [2], and an 'icon' would be interesting to help the context. [1]: Ideally, it would be necessary to make an extensive api (Registration of applications, dynamic responses, hooks/events for removal/add photos, similar to searches), but I understand that it would already be beyond the intention of this proposal, and indicating that it cannot be edited and that it is generated automatically may be enough. [2]: Just a name change, since in an album you don't always organize by places, and it can be used to comment who generates the album. 🤔 [3]: If it's not by location, it may be by the content of the image (recognize, facerecognition, maps apps), and a simple icon would be fine. Regards, |
|
@matiasdelellis Thank you for your input! We're iterating on this, currently, this is the scope we're working on. It may be that virtual albums will appear in the future as a refactoring or similar. Right now we're being pragmatic :) |
Allow creating and managing folders trough dav
mkcolcurl -u admin:admin -X MKCOL http://172.19.0.2/remote.php/dav/photos/admin/albums/testCOPYcurl -u admin:admin -H 'Destination: http://172.19.0.2/remote.php/dav/photos/admin/albums/test2/2.png' -X COPY http://172.19.0.2/remote.php/dav/files/admin/background.png'note that the destination name is ignored
MOVEcurl -u admin:admin -H 'Destination: http://172.19.0.2/remote.php/dav/photos/admin/albums/test' -X MOVE 'http://172.19.0.2/remote.php/dav/photos/admin/albums/test2'depth: 2to list all albums with content included){http://nextcloud.org/ns}file-nameproperty to get the original filename