1
0
Fork 0
Commit Graph

707 Commits

Author SHA1 Message Date
Bernhard Posselt 10831dd274 use html purifier for sanitation 2013-05-04 00:15:41 +02:00
Bernhard Posselt 7b628a3e4d log feed errors 2013-05-03 15:03:27 +02:00
Bernhard Posselt e241d438bb also provide the app version 2013-05-03 10:41:14 +02:00
Bernhard Posselt b8a2a02744 implemented last api method, fix #105 2013-05-02 22:46:54 +02:00
Bernhard Posselt d2e9cbd3c9 implement item api methods 2013-05-02 22:11:59 +02:00
Bernhard Posselt ec8394eda1 add read button 2013-05-02 21:03:33 +02:00
Bernhard Posselt 2b42d8bd9e send correct folder exists error code 2013-05-02 20:49:41 +02:00
Bernhard Posselt 20d4c2911f implemented folder api methods 2013-05-02 20:42:39 +02:00
Bernhard Posselt f29881d554 force links to open in new tabs, fix #146 2013-05-02 20:01:35 +02:00
Bernhard Posselt 5ae697ac9d added proper exception handling for all controllers and businesslayer 2013-05-02 19:40:10 +02:00
Bernhard Posselt e9878cb5b5 added api method for getting items 2013-05-02 18:45:10 +02:00
Bernhard Posselt 3d405e0541 removed useless get calls to api 2013-05-02 18:04:14 +02:00
Bernhard Posselt f8bdf57881 add test for api result 2013-05-02 17:47:07 +02:00
Bernhard Posselt 51d71796ad move external api stuff to appframework 2013-05-02 17:30:51 +02:00
Bernhard Posselt d7014ce74f added small result wrapper 2013-05-02 17:23:13 +02:00
Bernhard Posselt c8c01278d8 implement all routes and function bodies for api calls 2013-05-02 16:55:11 +02:00
Bernhard Posselt c5dde50a71 implemented first feeds get all method 2013-05-02 13:45:34 +02:00
Bernhard Posselt 2dfab0dbec added toAPI methods for folder and feed 2013-05-02 12:53:17 +02:00
Bernhard Posselt 0da3c160df add serialize method for api 2013-05-02 12:44:37 +02:00
Bernhard Posselt 3fc18156ae go back to order by id, fix #138, use a newest item id to prevent marking items as read that the user didnt see yet fix #141, also update the starred count periodically 2013-04-29 13:30:01 +02:00
Bernhard Posselt cd2488ee42 prefer web favicon over feed favicon, fix #101 2013-04-27 14:00:52 +02:00
Bernhard Posselt f987751d8c order by pubdate on the client side fix #115 2013-04-26 11:52:50 +02:00
Bernhard Posselt 5cc47b4f41 use last_modified column for finding new items (so we also see if they were updated or starred), use offset to paginate rather than item id 2013-04-26 11:52:50 +02:00
Bernhard Posselt 4ca4b190c8 import in reversed order because first item is the newest one, #80 2013-04-25 12:03:21 +02:00
Bernhard Posselt 5a0e774ad8 fix unittests 2013-04-25 10:44:25 +02:00
Bernhard Posselt 830398682f dont add items with no title or guid or url and handle non existent pubdate 2013-04-22 18:38:29 +02:00
Bernhard Posselt df18314b32 added import from google reader, fix #80 2013-04-22 18:24:31 +02:00
Bernhard Posselt 5f71477e1a added unittest for author mail 2013-04-22 10:14:35 +02:00
Bernhard Posselt 1140199677 if feed has no title, use its url, fix #108 2013-04-21 13:53:22 +02:00
Bernhard Posselt 252168aceb update items when they are being set read or starred 2013-04-20 23:44:22 +02:00
Bernhard Posselt 18b523b808 Also load the newest feed data when you load a feed
Edit
 fix #102
2013-04-20 21:51:42 +02:00
Robin Appelman b4defde566 Add test case for feed items with missing pubDate 2013-04-20 20:16:28 +02:00
Bernhard Posselt afe9467f17 also test for limit parameter 2013-04-20 15:12:08 +02:00
Bernhard Posselt 381f8efd10 set autopurge limit to 200 and purge per feed rather than per user or per all items, fix #98 2013-04-20 15:09:15 +02:00
Bernhard Posselt e0091e293b added test for opmlexporter fix #58 2013-04-19 15:38:36 +02:00
Bernhard Posselt 823f57eafe added unittest for opmlexporter 2013-04-19 15:31:33 +02:00
Bernhard Posselt 9bb05d9733 also html decode author 2013-04-19 15:00:25 +02:00
Bernhard Posselt a841116494 added some hints for importing google reader items 2013-04-19 14:42:48 +02:00
Bernhard Posselt 76cc72393a added a way to prevent feed from being updated 2013-04-19 13:01:44 +02:00
Bernhard Posselt 3e9a13efc9 added skeletons for google reader import 2013-04-19 11:42:40 +02:00
Bernhard Posselt ffea36001e Merge pull request #83 from owncloud/unkown-pubdate
Don't always mark feed items as unread if the pubDate of the item is unknown
2013-04-18 12:09:26 -07:00
Robin Appelman 826e345c85 Add test case for feed items with unknown pubdate 2013-04-18 16:40:56 +02:00
Bernhard Posselt daa2c7dea5 added test for fetcher class fix #47 2013-04-18 15:56:12 +02:00
Bernhard Posselt 1fbcd35ac8 always return the unreadcount when marking read to set update request as 0, dont create new feeds that only consist of unreadcount updates 2013-04-17 10:51:04 +02:00
Bernhard Posselt cdbf8ca56d dont add items if they are already in the database 2013-04-16 23:52:23 +02:00
Bernhard Posselt 42ca456a05 fix bug that prevented marking read if the highestitemid was 0 2013-04-16 17:16:42 +02:00
Bernhard Posselt 3b425b0a46 dont care if starred items are read or unread, always show them 2013-04-16 16:08:55 +02:00
Bernhard Posselt dee17d002d dont show unread count when it is 0, dont bold read feeds, implemented autopaging 2013-04-16 15:23:12 +02:00
Bernhard Posselt 464ff6c4c1 renamed bl to businesslayer, handle exception in update routine, fix #69 2013-04-15 16:02:32 +02:00
Bernhard Posselt 360966ab4b get language from server and save it in a language object, dont use a seperate file for instantiating controllers 2013-04-15 12:06:14 +02:00
Bernhard Posselt 33342f4ea6 add code to get favicons, fix #49 2013-04-13 23:56:41 +02:00
Bernhard Posselt a069add71e implement export, needs proper unittests though, fix 31 2013-04-12 14:53:02 +02:00
Bernhard Posselt e8767f7511 implement clientside update requests, fix #27 2013-04-12 12:25:58 +02:00
Bernhard Posselt e9eaa93826 added return value tests for controllers 2013-04-12 12:00:38 +02:00
Bernhard Posselt 3baa8b51e4 implement mark as read for feeds and folders, fix #29 2013-04-12 11:54:49 +02:00
Bernhard Posselt 80707aa9e3 translate folder and feed errors and added css and template code for creating folders and feeds and what happens when an error gets triggered 2013-04-11 15:48:50 +02:00
Bernhard Posselt 4c7c12584c fixed feedbl unittests 2013-04-09 10:37:47 +02:00
Bernhard Posselt f704dfe333 brought back starring of feeds 2013-04-05 23:43:15 +02:00
Bernhard Posselt 2d8f76d28f fix statusflag db query bugs and unittests 2013-04-05 22:56:22 +02:00
Bernhard Posselt c6a279128e fix #37 by fixing multiple, hard to track down typos 2013-04-05 16:06:04 +02:00
Bernhard Posselt 76b3dcd712 small work on integration test 2013-04-05 11:01:37 +02:00
Bernhard Posselt 061d70dd2e moved 2013-04-05 10:27:56 +02:00
Bernhard Posselt 7171a3dba0 moved tests into unit directory 2013-04-05 10:27:28 +02:00
Bernhard Posselt 1ffedced05 fixes mappers by using the correct status condition 2013-04-04 17:21:43 +02:00
Bernhard Posselt 1f2391b0cd move autopurge to itembl 2013-04-04 13:23:03 +02:00
Bernhard Posselt 3ec631a5c7 autopurge all read items which are not starred if there are more than 1000 2013-04-04 13:13:25 +02:00
Bernhard Posselt 4b994c97ad autopurge all read items which are not starred if there are more than 1000 2013-04-04 13:12:07 +02:00
Bernhard Posselt 2cffff339b removed useless settings 2013-04-03 12:25:48 +02:00
Bernhard Posselt 76fd21bccd added simple twitter fetcher implementation 2013-04-02 13:48:16 +02:00
Bernhard Posselt c795c0aa10 fix #11 by not relying on db exceptions anymore since there is no fking proper exception handling in the owncloud db code and stuff will break. instead update when item has been found and if not insert 2013-04-02 12:04:45 +02:00
Bernhard Posselt 3350ed7caf added pluggable fetchers 2013-04-02 11:09:33 +02:00
Bernhard Posselt bf93d491ce correctly save last viewed feed 2013-03-27 18:21:30 +01:00
Bernhard Posselt 78674ebc36 star by guid hash and feedid to also star an item if it has been updated in the meantime. read still only works on the current version of the item, that means if an item is updated on the server side and an older version is being read on the server it will not be marked as read 2013-03-27 13:47:53 +01:00
Bernhard Posselt 003ab9ca77 delete existing item on update 2013-03-27 13:02:18 +01:00
Bernhard Posselt 02ae36eba3 fixed mark all unread serverside (was missing highestitemid, dont use lastmodified to compare for new versions but use the highest item id. if items are updated and the guidHash and feedId are the same then it will be deleted and newly inserted to make the lastmodified feasable 2013-03-27 12:26:04 +01:00
Bernhard Posselt f7c8199380 viewing the first 20 items is now possible 2013-03-26 19:30:27 +01:00
Bernhard Posselt c8d3f8fb46 added casting information for data objects 2013-03-26 18:04:02 +01:00
Bernhard Posselt b553ff3903 fix referential integrity 2013-03-26 11:44:36 +01:00
Bernhard Posselt d0fde9dbce also use feedid because feed + guid hash are unique together 2013-03-26 11:08:14 +01:00
Bernhard Posselt 866f5eef01 fix bad setter usage 2013-03-25 23:24:47 +01:00
Bernhard Posselt c16402308b remove prefix 2013-03-25 14:43:30 +01:00
Bernhard Posselt 0f9e0e3de7 implemented feed update 2013-03-25 12:54:38 +01:00
Bernhard Posselt 77ec6f08aa updated backgroundjob 2013-03-25 11:48:15 +01:00
Bernhard Posselt df07df3b29 set last viewed feed type and id and added casts to int for parameters 2013-03-25 10:43:05 +01:00
Bernhard Posselt 842b39c380 various bugfixes 2013-03-23 16:43:50 +01:00
Bernhard Posselt ecc4a533cc use all articles if active feed is null 2013-03-23 16:18:43 +01:00
Bernhard Posselt 2956c5c673 finished itemmappers 2013-03-23 15:17:46 +01:00
Bernhard Posselt 7837e71f70 added index template 2013-03-23 14:37:49 +01:00
Bernhard Posselt 3455fe9cb7 finished findall methods in itembl 2013-03-23 13:24:35 +01:00
Bernhard Posselt f4f27ab927 also pass in showall value to items 2013-03-23 12:27:36 +01:00
Bernhard Posselt 29571aff34 finished itemcontroller 2013-03-23 01:23:47 +01:00
Bernhard Posselt ddfe6fd4de check if active feed or folder exist 2013-03-22 23:23:08 +01:00
Bernhard Posselt 46cbbb1a1e finished usersettingscontroller 2013-03-22 23:04:44 +01:00
Bernhard Posselt 80644c69e0 finished get starred count 2013-03-22 22:29:58 +01:00
Bernhard Posselt 452d91ee39 slim down select queries 2013-03-22 21:49:36 +01:00
Bernhard Posselt f9107664b0 made mappers faster by only joining the relevant rows for each user 2013-03-22 21:39:39 +01:00
Bernhard Posselt 91a327f5c6 implemented feedRead 2013-03-22 16:08:19 +01:00
Bernhard Posselt 585667bdf4 dont add feed twice 2013-03-22 13:47:45 +01:00
Bernhard Posselt 196177a0ca removed mapper parent class and use the new mapper methods from the framework 2013-03-22 13:20:24 +01:00
Bernhard Posselt 7a579b42fa added creating feeds 2013-03-22 12:35:30 +01:00
Bernhard Posselt 13eed83a10 renamed utils into something more accurated 2013-03-22 11:18:16 +01:00
Bernhard Posselt e674fe47e6 disallow creating and renaming of folders that already exist 2013-03-21 23:29:54 +01:00
Bernhard Posselt b6adabf245 finished foldercontroller 2013-03-21 23:07:03 +01:00
Bernhard Posselt 7ed948b19b finished open and collapse in foldercontroller 2013-03-21 21:48:24 +01:00
Bernhard Posselt a10b775b95 fixed itemmapper test 2013-03-21 21:08:54 +01:00
Bernhard Posselt c8bdd9c3fb finished feedcontroller 2013-03-21 20:38:20 +01:00
Alessandro Cosentino 18dda32e14 Merge branch 'master' of github.com:owncloud/news 2013-03-21 18:00:30 +01:00
Alessandro Cosentino 25177ab493 not working itemmapper with tests 2013-03-21 18:00:07 +01:00
Bernhard Posselt e8abe7886d added all controller methods and tests for the annotations 2013-03-21 17:53:30 +01:00
Bernhard Posselt f4fc7f07e7 added feed annotation test 2013-03-21 17:36:19 +01:00
Alessandro Cosentino 3e1225f30a Merge branch 'master' of github.com:owncloud/news 2013-03-21 17:35:02 +01:00
Alessandro Cosentino fadceb308d intermediate mapper layer with test 2013-03-21 17:34:43 +01:00
Bernhard Posselt 2c0cbeac0d added additional empty methods 2013-03-21 17:07:57 +01:00
Bernhard Posselt bc7b72cc46 dont fail on empty test 2013-03-21 16:33:29 +01:00
Bernhard Posselt ac84b27965 reorganize folder 2013-03-21 16:32:36 +01:00
Bernhard Posselt f475d882d0 also get unread count when fetching feeds from a user 2013-03-21 16:18:43 +01:00
Bernhard Posselt 39d3bc61d8 added all controllers 2013-03-21 13:16:16 +01:00
Alessandro Cosentino 93cf89a858 findAll All All 2013-03-21 00:31:58 +01:00
Bernhard Posselt 964383cc7a welcome in the age of newness 2013-03-21 00:31:48 +01:00
Bernhard Posselt ef2af010a6 finished folder businesslayer 2013-03-21 00:31:41 +01:00
Bernhard Posselt 6dab27a668 be nice 2013-03-21 00:31:18 +01:00
Bernhard Posselt b9d98e336c finished foldermapper 2013-03-20 19:40:17 +01:00
Bernhard Posselt c26baa1eb7 finished feedmapper 2013-03-20 19:30:05 +01:00
Bernhard Posselt 9c78fd8295 added feedmaper 2013-03-20 19:21:47 +01:00
Bernhard Posselt 8f215ec03b tests 2013-03-20 19:06:17 +01:00
Alessandro Cosentino eacd2a1755 adds findAllFromFolder 2013-03-20 19:04:34 +01:00
Alessandro Cosentino 843f5e0fd2 findAll functions in the itemmapper 2013-03-20 18:24:21 +01:00
Alessandro Cosentino 46a7c39bcb test find method 2013-03-20 14:28:29 +01:00
Bernhard Posselt 0f0a7f0c47 moved entity to the appframework 2013-03-20 12:19:17 +01:00
Bernhard Posselt 5a32f7a956 added tablename for entites 2013-03-20 12:03:02 +01:00
Bernhard Posselt d18ab3212a added another entity test 2013-03-20 11:34:06 +01:00
Bernhard Posselt 070abc32e5 finished item 2013-03-20 11:05:15 +01:00
Bernhard Posselt fa3a2e469d throw exceptions when attributes dont exist 2013-03-20 10:46:37 +01:00
Bernhard Posselt acb40d091f correctly map table column names to properties 2013-03-20 10:23:04 +01:00
Bernhard Posselt d96e794673 added getter and setter automation and added translation for database fields 2013-03-19 21:24:33 +01:00
Bernhard Posselt 50e00916ce added namespaced indices for the newsapp 2013-03-19 20:32:44 +01:00
Bernhard Posselt 966af078df added mapper spec 2013-03-19 19:49:25 +01:00
Bernhard Posselt 4e077697a1 added itemmapper test 2013-03-19 19:20:42 +01:00
Bernhard Posselt 3cacc9c90d added entity baseclass and pull deps if phpunit is run 2013-03-19 18:41:42 +01:00
Bernhard Posselt 172de781cb dont run broken tests 2013-03-16 21:46:05 +01:00
Bernhard Posselt 99cc7013f9 spaces to tabs 2013-02-10 11:16:32 +01:00
Bernhard Posselt 2d293fea43 added another exception for collapsing folders 2013-02-10 11:16:17 +01:00
Bernhard Posselt 7aaaa14b83 added the collapse method for the foldercontroller + tests 2013-02-02 15:58:40 +01:00
Bernhard Posselt f831169672 added ajax annotation 2013-02-02 00:28:09 +01:00
Bernhard Posselt 374ad065e2 added returns json test 2013-02-02 00:25:39 +01:00
Bernhard Posselt d4064fe2c7 added annotations test 2013-02-02 00:23:55 +01:00
Bernhard Posselt 703502d7c4 spaces to tabs 2013-02-02 00:21:22 +01:00
Bernhard Posselt ac423f6ca0 added foldercontroller + test 2013-02-02 00:20:41 +01:00
Bernhard Posselt 3d0ef34fca removed useless and failing unittest 2012-11-11 22:41:32 +01:00
Bart Visscher f77e9f2408 Add loadApp to test cases 2012-10-26 16:33:26 +02:00
Bart Visscher 1e37bc139b Whitespace cleanup 2012-10-14 21:15:47 +02:00
Bernhard Posselt 4dd641cb6f fixed a bug that would prevent all new items from being loaded, fixed a bug that would send the wrong starred count to the webinterface 2012-10-14 16:51:12 +02:00
Bernhard Posselt d085a688af removed change that caused errors 2012-10-13 00:05:18 +02:00
Bernhard Posselt 294333e41f added drag and drop 2012-08-30 01:36:20 +02:00
Bernhard Posselt 3969be1203 more unittests for menu.js 2012-08-30 00:00:20 +02:00
Bernhard Posselt daa76d848d added click handlers and buttons for menu.js 2012-08-29 23:12:14 +02:00
Bernhard Posselt 0f48a14dad added js tests and menu.js improvements 2012-08-29 21:37:11 +02:00