Skip to content
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

Search: Find pictures added, updated and/or edited at or after a certain time #4300

Closed
lastzero opened this issue May 25, 2024 · 3 comments
Closed
Assignees
Labels
docs 📚 Write, improve, or review documentation enhancement Refactoring, improvement or maintenance task mobile Especially important for mobile devices released Available in the stable release

Comments

@lastzero
Copy link
Member

lastzero commented May 25, 2024

As a mobile application developer, I want to use the Search API endpoint to find pictures that were added, updated and/or edited at or after a certain time (specified according to RFC3339) so that I can synchronize/compare my data with the server.

The following new search filters have been implemented for this:

Filter Type Example Notes
added timestamp added:"2006-01-02T15:04:05Z" Finds pictures added at or after this time
edited timestamp edited:"2006-01-02T15:04:05Z" Finds pictures edited at or after this time
updated timestamp updated:"2006-01-02T15:04:05Z" Finds pictures updated at or after this time

In addition, clients can ask to sort the search results by photos.updated_at timestamp if they specify updated as order. Results where created_at >= updated_at are not returned in this case.

Our Developer Guide provides an overview of the native apps currently available (you are welcome to submit a pull request for these docs if you develop an app that is not listed yet):

@lastzero lastzero added enhancement Refactoring, improvement or maintenance task mobile Especially important for mobile devices labels May 25, 2024
@lastzero lastzero self-assigned this May 25, 2024
lastzero added a commit that referenced this issue May 25, 2024
Signed-off-by: Michael Mayer <michael@photoprism.app>
@lastzero
Copy link
Member Author

Our public demo and development preview have been updated so you can test these changes:

@lastzero lastzero added the please-test Ready for acceptance test label May 25, 2024
@lastzero lastzero assigned graciousgrey and unassigned lastzero May 25, 2024
@lastzero lastzero changed the title Search: Add filters to find pictures added/updated at or after a certain time Search: Find pictures added/updated at or after a certain time May 25, 2024
lastzero added a commit that referenced this issue May 25, 2024
Signed-off-by: Michael Mayer <michael@photoprism.app>
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 26, 2024
@lastzero lastzero added the docs 📚 Write, improve, or review documentation label May 26, 2024
@lastzero
Copy link
Member Author

We've additionally expanded our Developer Guide with information on how to use the Search API endpoint, so that it is easy to find and can be used as a reference going forward (more search endpoints may be added to these docs as needed):

lastzero added a commit that referenced this issue May 27, 2024
Signed-off-by: Michael Mayer <michael@photoprism.app>
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 27, 2024
lastzero added a commit that referenced this issue May 27, 2024
Signed-off-by: Michael Mayer <michael@photoprism.app>
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 27, 2024
@lastzero lastzero changed the title Search: Find pictures added/updated at or after a certain time Search: Find pictures that were added, updated or edited at or after a certain time May 27, 2024
@lastzero lastzero changed the title Search: Find pictures that were added, updated or edited at or after a certain time Search: Find pictures that were added, updated, or edited at or after a certain time May 27, 2024
@lastzero lastzero changed the title Search: Find pictures that were added, updated, or edited at or after a certain time Search: Find pictures that were added, updated and/or edited at or after a specific time May 27, 2024
@lastzero lastzero changed the title Search: Find pictures that were added, updated and/or edited at or after a specific time Search: Find pictures that were added, updated and/or edited at or after a certain time May 27, 2024
@lastzero
Copy link
Member Author

Based on feedback from our developer community, the API now expects the times to be specified according to RFC3339 (e.g. 2006-01-02T15:04:05Z) when using the search filters directly as GET request parameters:

lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 27, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 27, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 27, 2024
@lastzero lastzero changed the title Search: Find pictures that were added, updated and/or edited at or after a certain time Search: Find pictures added, updated and/or edited at or after a certain time May 27, 2024
@graciousgrey graciousgrey added tested Changes have been tested successfully and removed please-test Ready for acceptance test labels May 27, 2024
@lastzero lastzero added released Available in the stable release and removed tested Changes have been tested successfully labels May 28, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue May 29, 2024
lastzero added a commit that referenced this issue May 29, 2024
Signed-off-by: Michael Mayer <michael@photoprism.app>
lastzero added a commit that referenced this issue May 29, 2024
Signed-off-by: Michael Mayer <michael@photoprism.app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs 📚 Write, improve, or review documentation enhancement Refactoring, improvement or maintenance task mobile Especially important for mobile devices released Available in the stable release
Projects
Status: Release 🌈
Development

No branches or pull requests

2 participants