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

REST API : Get only items updated since given time #532

Merged
merged 4 commits into from
Jul 4, 2014

Conversation

yDelouis
Copy link
Contributor

@yDelouis yDelouis commented Jul 4, 2014

Hi,

First of all, thanks for your great work.

I'm developing an Android client for Selfoss and I'm facing an issue for syncing articles.
At the moment, there is no way to know which items have been modified (new or marked read) since the last sync. So the client can't stay in sync with the server without downloading all articles at each sync.

This PR enables the server to track update of articles and add a REST parameter for items to get only the articles updated since a given timestamp. With this pieces of code, the client would be able to keep in sync efficiently with the server.

I have tested both upgrading and new install for each 3 database (sqlite, mysql and postgresql).

Let me know if there is something wrong.

@alinx
Copy link

alinx commented Jul 4, 2014

+1

This is somoething I missed for my iPhone App (Currently in Review).

SSilence added a commit that referenced this pull request Jul 4, 2014
REST API : Get only items updated since given time
@SSilence SSilence merged commit 259fd53 into fossar:master Jul 4, 2014
@SSilence
Copy link
Member

SSilence commented Jul 4, 2014

thanks for the pr. I merged this. Which format should the updatedsince have? timestamp?

@yDelouis
Copy link
Contributor Author

yDelouis commented Jul 5, 2014

Thanks.
updatedsince should be a date formatted like this : yyyy-mm-dd hh:mm:ss. Just like the datetime fields which are returned by the REST API.

Do you know when the version 2.11 will be released ?

@yDelouis yDelouis deleted the restUpdatedItems branch July 5, 2014 12:48
@SSilence
Copy link
Member

SSilence commented Jul 5, 2014

Ah, ok, thanks a lot for the comment! I added this in the wiki.

End of the next week I will have time for creating a release. I always wait a bit since the last commit. Then, when no issue will be reported, I make the release.

Thanks for contribute. I have seen your android app. It looks very nice!!

@jtojnar
Copy link
Member

jtojnar commented Sep 27, 2020

Hi @yDelouis. Previously, it was not clear if selfoss was licensed under GPL 3 only, or also any later version. Could you clarify whether you are fine with licensing your contributions here and in other PRs under GPL-3-or-later?

Thanks again and sorry for the confusion.

@yDelouis
Copy link
Contributor Author

@jtojnar Yes ! I'm fine with this !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants