Commit graph

375 commits

Author SHA1 Message Date
Alexey Skobkin f82102998f DTO.Api.PostPage.yml mapping fix. 2017-01-15 06:19:52 +03:00
Alexey Skobkin 6fc01076e2 fix #30. Factories and API clients refactored to DTO. Some other changes. 2017-01-15 05:54:38 +03:00
Alexey Skobkin 80a7cc47be UpdateSubscriptionsCommand advance progressbar before processing any operations with user. 2017-01-14 05:07:07 +03:00
Alexey Skobkin b5b10b3072 Delay between requests even when user is not found. 2017-01-14 05:01:35 +03:00
Alexey Skobkin 2d8bd6f6fc Fix for error in user list. 2017-01-14 04:35:44 +03:00
Alexey Skobkin 34a9aa8caf Fix for 1b2df8d. 2017-01-14 04:02:04 +03:00
Alexey Skobkin 1b2df8d4c3 #35 done. LoadSubscribersData are now non-random. 2017-01-14 03:58:18 +03:00
Alexey Skobkin 144a535c6b Monolog Telegram handler reconfigured for prod environment. New 'subscribers_update' channel. 2017-01-14 03:56:17 +03:00
Alexey Skobkin 93071b6be8 Telegram webhook management command updated to use router default context instead of input argument. TelegramWebHookCommand is now a service. 2017-01-14 02:15:08 +03:00
Alexey Skobkin ca62397cbb composer require unreal4u/monolog-telegram. Telegram Monolog handler added. 2017-01-14 01:47:46 +03:00
Alexey Skobkin eb5aa80430 UserController slightly refactored. 2017-01-13 03:00:20 +03:00
Alexey Skobkin da2a27dd63 Unnecessary phpDoc removed from Subscription and SubscriptionEvent. 2017-01-13 02:43:10 +03:00
Alexey Skobkin 37e0d10611 Account phpDoc and unnecessary method removal. 2017-01-13 02:42:19 +03:00
Alexey Skobkin 4d4493f7cd Comment phpDoc removal. 2017-01-13 02:41:44 +03:00
Alexey Skobkin 22a26d5298 Post phpDoc fixes and type missing type hinting. 2017-01-13 02:39:44 +03:00
Alexey Skobkin 69d72085d0 New PHP 7.1 iterable return type for entities. 2017-01-13 02:38:33 +03:00
Alexey Skobkin 3f5e9bda5e New PHP 7.1 constants visibility for MessageSender. 2017-01-13 02:28:54 +03:00
Alexey Skobkin c1848aad86 New PHP 7.1 type hints for AbstractApi and SubscriptionsManager. 2017-01-13 02:27:44 +03:00
Alexey Skobkin 4babc046e6 New PHP 7.1 type hints for Telegram services. 2017-01-13 02:25:46 +03:00
Alexey Skobkin 5271fd5f59 New PHP 7.1 type hints for factories. 2017-01-13 02:21:17 +03:00
Alexey Skobkin 415efe9e6e New PHP 7.1 type hints for service exceptions. 2017-01-13 02:18:57 +03:00
Alexey Skobkin 841c45bddb Unnecessary phpDoc removed from InvalidPostDataException. 2017-01-13 02:17:35 +03:00
Alexey Skobkin 54903e2ad3 New PHP 7.1 type hints for Event Listeners. 2017-01-13 02:16:50 +03:00
Alexey Skobkin a02250a8df UserSubscribersUpdatedEvent phpDoc fix. 2017-01-13 02:14:55 +03:00
Alexey Skobkin d21d18f50a New PHP 7.1 type hints for DTO. 2017-01-13 02:13:44 +03:00
Alexey Skobkin 39bfe4c9bf New PHP 7.1 type hints for ApiController and EventsController. 2017-01-13 02:05:24 +03:00
Alexey Skobkin 68238f2d14 New PHP 7.1 type hints for WebHookController. 2017-01-13 02:04:04 +03:00
Alexey Skobkin df244c90bd New PHP 7.1 type hints for AbstractApiController. 2017-01-13 02:03:27 +03:00
Alexey Skobkin d289571c5b New PHP 7.1 type hints for commands. 2017-01-13 02:02:25 +03:00
Alexey Skobkin 4b6dd73a0b New PHP 7.1 type hints for DataFixtures. 2017-01-13 02:00:21 +03:00
Alexey Skobkin 89998a6418 New PHP 7.1 type hints for entities and repositories. 2017-01-13 01:58:52 +03:00
Alexey Skobkin 069aa27bb4 Unnecessary checks removed from UserRepository. 2017-01-13 01:22:09 +03:00
Alexey Skobkin f741ff02a9 Tests for nullable User#getName(). 2017-01-12 21:54:46 +03:00
Alexey Skobkin aebc31a0fe Tests for nullable User#getName(). 2017-01-12 21:49:38 +03:00
Alexey Skobkin 45c3a0d9c9 Fixing User#getName() when name is null. 2017-01-12 21:36:57 +03:00
Alexey Skobkin 4c02e17595 UserApi slightly refactored. 2017-01-11 21:30:16 +03:00
Alexey Skobkin cb9c22df92 'statistics' route address changed. 2017-01-11 21:09:47 +03:00
Alexey Skobkin bc363c03e7 Hardcoded URL's removed everywhere in favor of dynamically generated based on container parameters. Router now can generate absolute URL even when not processing HTTP request. Avatar-related functions moved from UserApi to PointUrlExtension. 2017-01-11 21:03:32 +03:00
Alexey Skobkin d6bd2ddd73 Telegram PrivateMessageProcessor service is now receives all repositories directly. Still depends on EntityManager due to need to flush(). 2017-01-11 19:46:15 +03:00
Alexey Skobkin 928311dad1 Telegram InlineQueryProcessor service is now receives UserRepository directly instead of EntityManager. 2017-01-11 19:39:24 +03:00
Alexey Skobkin 170adca0f1 Telegram Notifier service is now receives AccountRepository directly instead of EntityManager. 2017-01-11 19:36:58 +03:00
Alexey Skobkin 592d9592c6 AccountFactory is now receives AccountRepository directly instead of EntityManager. 2017-01-11 19:31:37 +03:00
Alexey Skobkin 20878ab123 PostFactory is now receives PostRepository directly. Still depends on EntityManager because of UoW usage. 2017-01-11 19:27:08 +03:00
Alexey Skobkin 0dc01bef2b FileFactory is now receives FileRepository directly instead of EntityManager. 2017-01-11 19:21:20 +03:00
Alexey Skobkin 2ac54dc1b4 TagFactory is now receives TagRepository directly instead of EntityManager. 2017-01-11 19:17:52 +03:00
Alexey Skobkin 09cc3741e7 CommentFactory is now gets direct injection of CommentRepository and PostRepository instead of EntityManager. 2017-01-11 19:11:55 +03:00
Alexey Skobkin 097d9a5f65 UserFactory is now gets UserRepository directly instead of EntityManager. 2017-01-11 18:58:02 +03:00
Alexey Skobkin 55b5aaa1a2 Now injecting UserRepository into UpdateSubscriptionsCommand. UpdateSubscriptionsCommand still depends on EntityManager because of transactions. 2017-01-11 18:51:56 +03:00
Alexey Skobkin 4ca70ea9f3 Some of repositories are now presented as services in container. SubscriptionsManager is now not dependent on EntityManager directly. 2017-01-11 04:27:41 +03:00
Alexey Skobkin ba574984d7 SubscriptionEventRepository, SubscriptionRepository, UserRepository now have add() method which will add entity to the EntityManager. 2017-01-11 04:10:32 +03:00
Alexey Skobkin b229a3a8b8 array_reverse() added to sort events by day. 2017-01-10 04:30:53 +03:00
Alexey Skobkin 60fe8cfc18 Translation fixed. 2017-01-10 04:26:57 +03:00
Alexey Skobkin b3822c5be6 Top page renamed to 'statistics'. 2017-01-10 04:24:22 +03:00
Alexey Skobkin bfc40d595c Events by day stats added. DAY() DQL function added. 2017-01-10 04:21:57 +03:00
Alexey Skobkin 8544d9c7c3 Highcharts version updated. 2017-01-10 03:18:10 +03:00
Alexey Skobkin 279896be50 public resources from SkobkinPointToolsBundle moved to web directory. 2017-01-10 03:11:53 +03:00
Alexey Skobkin 22a61c2a67 Missing translation fixed. 2017-01-10 02:48:57 +03:00
Alexey Skobkin 290e3cb609 Auto-focus in the search field on the main page. 2017-01-10 02:47:33 +03:00
Alexey Skobkin 9ec1dce9ab TopUserDTO type hints added. 2017-01-09 23:58:03 +03:00
Alexey Skobkin 973207d543 UserRepository type hints added. 2017-01-09 22:36:08 +03:00
Alexey Skobkin dcf3f0f3e9 ApplicationAvailabilityFunctionalTest moved to the new path. 2017-01-09 22:14:08 +03:00
Alexey Skobkin db90f9ec87 Tests moved to new directory (/tests). 2017-01-09 22:08:01 +03:00
Alexey Skobkin 99888794ef Crawler UserFactory fix. 2017-01-09 21:46:56 +03:00
Alexey Skobkin fbea7ffe4e PostFactory exception fix. 2017-01-09 21:43:41 +03:00
Alexey Skobkin bdbcf14a15 User phpDoc fixes. 2017-01-09 21:29:39 +03:00
Alexey Skobkin 628916d69b UpdateSubscriptionsCommand code quality fix. 2017-01-09 06:03:29 +03:00
Alexey Skobkin abb320920a UpdateSubscriptionsCommand code quality fix. 2017-01-09 05:53:58 +03:00
Alexey Skobkin 6c6fe5a65d Some todo for UpdateSubscriptionsCommand. 2017-01-09 05:46:52 +03:00
Alexey Skobkin 5bf20066fa UpdateSubscriptionsCommand now uses ProgressBar. 2017-01-09 05:35:18 +03:00
Alexey Skobkin a6ac3757b6 UpdateSubscriptionsCommand refactored and simplified. API delay moved to parameters.yml. 2017-01-09 05:22:56 +03:00
Alexey Skobkin fa76440fa2 Unneeded variable removed in AbstractApi. 2017-01-09 04:47:10 +03:00
Alexey Skobkin 7d0440db92 Logging in Point API clients. 2017-01-09 04:42:06 +03:00
Alexey Skobkin 1df09fa68d SubscriptionsManager logging added. 2017-01-09 04:28:33 +03:00
Alexey Skobkin 30faaa7b08 Monolog log rotation in dev environment. Console command logging updated. 2017-01-09 04:21:31 +03:00
Alexey Skobkin 0232dee4fb Symfony upgraded to 3.2.1. Deprecations solved, BC breaks fixed. All tests passing right. 2017-01-09 03:33:29 +03:00
Alexey Skobkin cf005637f8 MisdGuzzleBundle removed from project in favor of CsaGuzzleBundle. AbstractApi refactored to use Guzzle 6. Service names refactoring (now all uses 'app.' prefix). Factories slightly refactored. 2017-01-09 02:26:06 +03:00
Alexey Skobkin 2702f0cb5e MainControllerTest updated according to 9f53628 2017-01-09 00:24:25 +03:00
Alexey Skobkin 9f53628373 Code deprecations update according to https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.8.md 2017-01-08 22:57:52 +03:00
Alexey Skobkin 25f15e40ba Removed unnecessary entity class binding from UserSearchType form type. 2017-01-08 20:52:50 +03:00
Alexey Skobkin 366396a4c2 More SubscriptionEvent optimization. 2017-01-08 18:31:05 +03:00
Alexey Skobkin c3d430e8f8 Base user-related and subscriptions-related entities refactored and optimized. 2017-01-08 18:29:12 +03:00
Alexey Skobkin 7dacc3e4d3 LoadSubscribersData micro optimization. 2017-01-08 18:05:52 +03:00
Alexey Skobkin cfd30a093d Check for first-time processing removed from SubscriptionsManager. SubscriptionsManager optimized and slightly refactored. 2017-01-08 17:13:51 +03:00
Alexey Skobkin cc29168d83 Telegram bot user subscribers update notification template fix. 2017-01-07 22:20:21 +03:00
Alexey Skobkin 1d5ccd6e30 Telegram bot settings template fix. 2017-01-07 22:20:01 +03:00
Alexey Skobkin 2d47fb4f4d Telegram bot empty subscribers change notification fix. 2017-01-07 21:56:09 +03:00
Alexey Skobkin 1372b7e6d1 Telegram bot users statistics in /stats response. 2017-01-07 21:53:31 +03:00
Alexey Skobkin 88be9e99ae Telegram notifications on user subscribers list changes. Some refactoring of SubscriptionsManager and event system. 2017-01-07 21:46:50 +03:00
Alexey Skobkin 9488eddd9f UsersRenamedEvent now dispatches instead of GenericEvent on users rename. Some events refactoring. 2017-01-07 18:05:54 +03:00
Alexey Skobkin 3db25e9bdb Telegram bot settings page template updated. Linking status added. Notification about disabled linking when turning on subscribers notifications. 2017-01-07 14:30:30 +03:00
Alexey Skobkin 9a0d374baf User renaming Telegram notifications. User renaming event 'app.users.renamed' present. UpdateSubscriptionsCommand refactored (now updates data in single transaction). SubscriptionsManager updated (now not flushing). UserApi updated (now not flushing). Possible bugs added. 2017-01-07 00:51:56 +03:00
Alexey Skobkin 43dbb0b007 Telegram bot /help template updated. 2017-01-07 00:46:08 +03:00
Alexey Skobkin 4e24b58c49 User renaming Telegram notifications. User renaming event 'app.users.renamed' present. UpdateSubscriptionsCommand refactored (now updates data in single transaction). SubscriptionsManager updated (now not flushing). Point API clients and factories not flushing data themselves. Possible bugs added. 2017-01-07 00:38:20 +03:00
Alexey Skobkin 6c198053d5 Editable Telegram account settings. Some PrivateMessageProcessor refactoring. 2017-01-06 22:19:44 +03:00
Alexey Skobkin 3e42ded305 Point user links bug fixed. 2017-01-06 20:51:03 +03:00
Alexey Skobkin 565ec33a19 Small fix after refactoring. 2017-01-06 20:24:40 +03:00
Alexey Skobkin e6338b0cbd Telegram services refactoring. 2017-01-06 20:18:39 +03:00
Alexey Skobkin a84c2dcd3b Small quality fixes in AbstractApi. 2017-01-06 00:57:32 +03:00
Alexey Skobkin 4e9c556320 Small quality fixes in UserApi. 2017-01-06 00:54:19 +03:00
Alexey Skobkin 48b47c9bc2 Type cast for $sendMessage->chat_id. 2017-01-06 00:52:46 +03:00
Alexey Skobkin 8f9bb3a71e Small problems fixes. 2017-01-06 00:50:16 +03:00
Alexey Skobkin b51d2f1a6e Recent fix additional fix. 2017-01-06 00:30:52 +03:00
Alexey Skobkin 7298c37f44 Recent fix fix. 2017-01-06 00:18:52 +03:00
Alexey Skobkin b712307782 Fixing @ in POST parameters which could cause sending file from filesystem as POST data. 2017-01-06 00:13:50 +03:00
Alexey Skobkin d9082a3a71 Telegram bot /link case sensitive user search fix. 2017-01-06 00:00:37 +03:00
Alexey Skobkin 4ebc547ab2 Telegram /last response template fix. 2017-01-05 23:27:08 +03:00
Alexey Skobkin 3b8b6d3732 Telegram account linking added. Telegram bot services refactored. Legacy abstract API client POST requests fixed. 2017-01-05 23:17:19 +03:00
Alexey Skobkin 1145e4da45 Telegram bot link in header. 2017-01-05 14:35:04 +03:00
Alexey Skobkin 2b38c8b48e Test version of Telegram bot support. 2017-01-05 01:36:30 +03:00
Alexey Skobkin ca0991a623 MainControllerTest code quality fix. 2016-12-12 21:37:15 +03:00
Alexey Skobkin 97dc750e08 UserApi code quality fix. 2016-12-12 21:35:59 +03:00
Alexey Skobkin 54da4c454c unused imports removed. 2016-12-12 21:34:48 +03:00
Alexey Skobkin f184bde6ad SubscriptionsManager code quality fix. 2016-12-12 21:33:37 +03:00
Alexey Skobkin 68440c8531 PostApi code quality fix. Non implemented yet method removed. 2016-12-12 21:32:56 +03:00
Alexey Skobkin 7fbe9f8752 PointParser code quality fix. 2016-12-12 21:30:27 +03:00
Alexey Skobkin 34fc7c9e21 UserFactory code quality fix. 2016-12-12 21:25:41 +03:00
Alexey Skobkin d8e6a2bbe0 TagFactory code quality fix. 2016-12-12 21:24:23 +03:00
Alexey Skobkin 860ea95538 PostFactory code quality fix. 2016-12-12 21:23:11 +03:00
Alexey Skobkin be074ebad5 FileFactory code quality fix. 2016-12-12 21:17:02 +03:00
Alexey Skobkin aeaad243bc CommentFactory code quality fix. 2016-12-12 21:15:46 +03:00
Alexey Skobkin 12d33c9400 Service/AbstractApi code quality fix. 2016-12-12 21:11:53 +03:00
Alexey Skobkin eae74e58fa Entity\Blogs\Post code quality fix. phpDoc fixed. 2016-12-12 21:03:06 +03:00
Alexey Skobkin 95cab0b564 Entity\Comment code quality fix. 2016-12-12 21:02:19 +03:00
Alexey Skobkin b06eaec2b3 PostsPage code quality fix. 2016-12-12 20:59:42 +03:00
Alexey Skobkin a9a247ba45 PostController code quality fix. 2016-12-12 20:58:01 +03:00
Alexey Skobkin 7776b1ac74 UpdateSubscriptionsCommand code quality fix. 2016-12-12 20:57:03 +03:00
Alexey Skobkin b16646a2ed ImportUsersCommand code quality fix 2. 2016-12-12 20:56:40 +03:00
Alexey Skobkin e52dc94c77 ImportUsersCommand code quality fix. 2016-12-12 20:44:36 +03:00
Alexey Skobkin 77b6e866de LoadSubscribersData bug fix. 2016-12-12 20:07:03 +03:00
Alexey Skobkin 84be9d5df4 PostControllerTest added. LoadPostData now loads one long and one short post for different tests. 2016-12-12 19:58:29 +03:00
Alexey Skobkin 4e0bbadd7f Very important whitespace fix. 2016-12-12 18:52:51 +03:00
Alexey Skobkin 88105a4ef1 LoadSubscribersData possible fix. 2016-12-12 03:51:41 +03:00
Alexey Skobkin 706933b405 Unused variables removed in MainControllerTest. 2016-12-12 03:27:35 +03:00
Alexey Skobkin 5843dfbd12 MainControllerTest now tests AJAX user autocompletion. 2016-12-12 03:22:02 +03:00
Alexey Skobkin d988bac7b0 MainControllerTest now checks non-existing user search scenario. 2016-12-12 02:58:11 +03:00
Alexey Skobkin 6e5e0435ac LoadSubscribersData fixture added. Subscription and SubscriptionEvent entities refactored. SubscriptionsManager refactored as well. 2016-12-12 02:21:05 +03:00
Alexey Skobkin 24a173af16 LoadCommentsData fixture fix. 2016-12-12 01:58:58 +03:00
Alexey Skobkin 22784542bf Many test users in fixtures 2016-12-12 01:53:56 +03:00
Alexey Skobkin 9264170d0b Fix #26. Top users page fixed. 2016-12-12 01:26:27 +03:00
Alexey Skobkin 0dfdf9793e ApiController phpDoc fix. 2016-12-12 00:40:55 +03:00
Alexey Skobkin f216b4f11a MainControllerTest fix. 2016-12-12 00:09:29 +03:00
Alexey Skobkin 6f47fa344d Useless test removed from EventsControllerTest 2016-12-12 00:09:02 +03:00
Alexey Skobkin e493eb6322 Updated user page tests. 2016-12-11 23:59:05 +03:00
Alexey Skobkin 5cbc255331 EventsControllerTest tests page heading and table with events are properly shown. 2016-12-11 23:27:56 +03:00
Alexey Skobkin 961b9f346a MainControllerTest testing user stats output. 2016-12-11 23:27:14 +03:00
Alexey Skobkin 36be7e7225 Named data sources in ApplicationAvailabilityFunctionalTest. 2016-12-11 22:07:01 +03:00
Alexey Skobkin 3d2a1593cf First functional test. 2016-12-11 08:26:30 +03:00
Alexey Skobkin 874ff42797 composer update. Query fix. 2016-12-11 06:23:03 +03:00
Alexey Skobkin 1a5ce08fcd Doctrine entities mapping fix. Excessive schemas removed. 2016-12-11 06:03:59 +03:00
Alexey Skobkin 207a8bab21 Typeahead library link. 2016-12-11 03:56:14 +03:00