Review Request 110255: Added plugin to expand URL Shortener urls

Anant Kamath kamathanant at gmail.com
Wed May 1 21:44:47 UTC 2013



> On May 1, 2013, 2:01 p.m., David Edmundson wrote:
> > filters/urlexpansion/urlexpansion-filter.cpp, line 54
> > <http://git.reviewboard.kde.org/r/110255/diff/1/?file=141590#file141590line54>
> >
> >     I'm a bit worried about this.
> >     If we get a message and longurl.org is offline we now take 30 seconds (till timeout) whilst we are completely blocking the UI.
> >     
> >     I suggest we make this async, and if the user gets any short links before this finishes - tough luck to them.
> >     
> >     unless anyone can think of something better that isn't over-complicated?
> 
> David Edmundson wrote:
>     or we could cache this locally.
>     
>     Either on first run or we can just ship this file http://api.longurl.org/v2/services?format=json in our release tarball.
>     I could add it to the packaging scripts to download and save it.
>
> 
> Anant Kamath wrote:
>     Shipping it with the tarball sounds good. This list is not going to change frequently, and it has a whole lot of url shortening services already. 
>     Is it a good idea to just add a .json file in the same folder, add it to the CMakeLists.txt to install it, and open it with QFile to load the json data? Or something else?
> 
> David Edmundson wrote:
>     Yes, lets do that.
>     That way I can just "wget" to update it at any point.
>     
>     Make sure to do KGlobal::dirs() to find the .json file.

Have a look at the new diff.


- Anant


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110255/#review31835
-----------------------------------------------------------


On May 1, 2013, 9:31 p.m., Anant Kamath wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/110255/
> -----------------------------------------------------------
> 
> (Updated May 1, 2013, 9:31 p.m.)
> 
> 
> Review request for Telepathy, David Edmundson and Daniele E. Domenichelli.
> 
> 
> Description
> -------
> 
> The plugin checks for available services from longurl.org upon loading.
> 
> Filtering is done in the client via javascript. 
> 
> 
> This addresses bug 310512.
>     http://bugs.kde.org/show_bug.cgi?id=310512
> 
> 
> Diffs
> -----
> 
>   filters/CMakeLists.txt c66e773 
>   filters/urlexpansion/CMakeLists.txt PRE-CREATION 
>   filters/urlexpansion/ktptextui_message_filter_urlexpansion.desktop.cmake PRE-CREATION 
>   filters/urlexpansion/longurl.js PRE-CREATION 
>   filters/urlexpansion/longurlServices.json PRE-CREATION 
>   filters/urlexpansion/urlexpansion-filter.h PRE-CREATION 
>   filters/urlexpansion/urlexpansion-filter.cpp PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/110255/diff/
> 
> 
> Testing
> -------
> 
> Tested. Check screenshots.
> 
> 
> File Attachments
> ----------------
> 
> 
>   http://git.reviewboard.kde.org/media/uploaded/files/2013/05/01/url1.png
> 
> 
> Thanks,
> 
> Anant Kamath
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20130501/3260a563/attachment.html>


More information about the KDE-Telepathy mailing list