Review Request 121165: Fix "show older tweets"; use statuses/user_timeline instead of search/tweets; use follower list for DM's
Andrea Scarpino
scarpino at kde.org
Sat Dec 20 10:36:59 UTC 2014
> On Dec. 13, 2014, 9:59 a.m., Mehrdad Momeny wrote:
> > One thing that came to my mind today is that:
> > About the first item in your list: Loading more tweets instead of showing them in a page
> >
> > It removes the old, stale "page browsing" that has not worked for the longest time. Instead, it introduces a button to "load more tweets" which actually works and loads older tweets. However as of now, you have to click it TWICE for the first time to work. After that, every addidtional click will retrieve more old tweets. They are shown on top of the newer ones which is quite unfortunate, I don't know how to change that. (see also https://bugs.kde.org/show_bug.cgi?id=340795)
> >
> > This will introduce a performance issue!
> > in fact right now we have lots of reports that Choqok is using too much memory. and this increases by showing and keeping more posts/tweets in the GUI!
> > So why should we drop the page browsing (I know it's not working properly now, but I mean the idea of having pages instead of adding to current list)?
> > Thus it might be better to keep loading them in pages, (if it's possible technically) and then the issue of loading new tweets below current list won't be there anymore.
> >
> > What do you think guys?
>
> Ian Schwarz wrote:
> I don't have anything against the idea in particular, however I think that it is really cumbersome to implement and therefore strongly discouraged by the Twitter devs (https://dev.twitter.com/rest/public/timelines). You could not have "browse to page x" because you would have no idea what is on "page x". You could only have "next page", and on clicking that, get all the tweets before the oldest tweet on the page you are currently on - id--; - save this value, because we will need it to browse back to this page later. Repeat for following pages. If you want to go forward again, look the correct max_id up in the table you have been saving and query the API with that max_id string. If there are tweets added AFTER you start browsing, they will be inaccessible.
>
> Andrea Scarpino wrote:
> I agree with Mehrdad. We should fix the memory issue before pushing a change like 1).
>
> Ian, could you please remove 1) from this review? So we go ahead with the others two feature. The best would be to split this in 3 reviews.
Status? Ian are you working to split 2) and 3) from this? Please let we know.
- Andrea
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121165/#review71909
-----------------------------------------------------------
On Dec. 12, 2014, 9:24 p.m., Ian Schwarz wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121165/
> -----------------------------------------------------------
>
> (Updated Dec. 12, 2014, 9:24 p.m.)
>
>
> Review request for Choqok.
>
>
> Repository: choqok
>
>
> Description
> -------
>
> This patch does 3 things:
>
> 1. It removes the old, stale "page browsing" that has not worked for the longest time. Instead, it introduces a button to "load more tweets" which actually works and loads older tweets. However as of now, you have to click it TWICE for the first time to work. After that, every addidtional click will retrieve more old tweets. They are shown on top of the newer ones which is quite unfortunate, I don't know how to change that. (see also https://bugs.kde.org/show_bug.cgi?id=340795)
>
> 2. It introduces a "follower list", similar to the "friends list" for Twitter, which contains only followers' screen names. The reason for that is that on Twitter, you can only send DM's to your FOLLOWERS instead of your "friends" (i.e. people you have followed). The git version "allows" you to send them to the people you have followed which results in mute failure and no error message. We do still need the old friends list though so we can know whom we have followed (and thus whether to display the "follow" or the "unfollow" option).
>
> 3. "Show all posts by $NAME" should not use the Twitter search/tweets API, as this API will only return tweets that are less than 7 days old. Instead, use statuses/user_timeline which returns up to 3,200 tweets of any age.
>
> Let me state that I do not expect this patch to be accepted as is or even with minor changes. What I hope instead is that people who know more about C++/Qt/Choqok look at this and go "I see what you're trying to do, but there is a better way." and then actually propose a better way. I feel I have done as much as I could to enable Choqok to make progress towards a mostly working Twitter client for Linux.
>
> Oh, and bumping the version to 1.4.0.1 or somesuch would be good sometime in the future. Maybe this way we can get distribution/packagers to ship a more functional version of Choqok in the future. The old 1.4.0 release is horribly broken by comparison.
>
>
> Diffs
> -----
>
> choqok/microblogs/twitter/twittersearch.cpp da85565
> choqok/helperlibs/twitterapihelper/twitterapiaccount.h d880f14
> choqok/helperlibs/twitterapihelper/twitterapiaccount.cpp e2efe97
> choqok/helperlibs/twitterapihelper/twitterapidmessagedialog.h ed36a1d
> choqok/helperlibs/twitterapihelper/twitterapidmessagedialog.cpp 70092db
> choqok/helperlibs/twitterapihelper/twitterapimicroblog.h b9dd97a
> choqok/helperlibs/twitterapihelper/twitterapimicroblog.cpp cb666cb
> choqok/helperlibs/twitterapihelper/twitterapisearch.h b421585
> choqok/helperlibs/twitterapihelper/twitterapisearch.cpp b3078c4
> choqok/helperlibs/twitterapihelper/twitterapisearchtimelinewidget.h ec40605
> choqok/helperlibs/twitterapihelper/twitterapisearchtimelinewidget.cpp 82dc1b1
> choqok/microblogs/laconica/laconicamicroblog.cpp dd86db2
> choqok/microblogs/laconica/laconicasearch.h 4bfac2d
> choqok/microblogs/laconica/laconicasearch.cpp 4b1c9c9
> choqok/microblogs/twitter/twitterpostwidget.cpp f8bf945
> choqok/microblogs/twitter/twittersearch.h 662e8d7
>
> Diff: https://git.reviewboard.kde.org/r/121165/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Ian Schwarz
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/choqok-devel/attachments/20141220/9cbcca9a/attachment.html>
More information about the Choqok-devel
mailing list