Commit Graph

380 Commits

Author SHA1 Message Date
Alexey Skobkin 6d557c9a40
Ported Telegram\Account entity and repo. 2023-03-12 21:39:18 +03:00
Alexey Skobkin 528099baa9
Ported UserRenameEvent entity and repo. 2023-03-12 21:11:27 +03:00
Alexey Skobkin 4f37cb9782
Ported SubscriptionEvent entity and SubscriptionEventRepository. 2023-03-12 20:50:52 +03:00
Alexey Skobkin 5b0fd11f31
Ported Subscription entity and SubscriptionRepository. 2023-03-12 20:39:24 +03:00
Alexey Skobkin 201356938f
Ported User entity and UserRepository. 2023-03-12 18:52:54 +03:00
Alexey Skobkin 820a37a5d0
Moving important old files to backup directory. Creating new project from scratch. 2023-03-11 19:28:46 +03:00
Alexey Skobkin f598864d4d Crutch-fixing PostController::showAction() exception handling with 404 instead of 403 exception. 2019-04-03 20:34:16 +03:00
Alexey Skobkin 44c4158602 Fixing automatic replacing of AccessDeniedExceptions with InsufficientAuthenticationException in Symfony\Component\Security\Http\Firewall\ExceptionListener::handleAccessDeniedException(). 2019-04-03 20:16:34 +03:00
Alexey Skobkin c3605b2db1 Fixing MainControllerTest::{testAjaxUserAutoCompleteHasOptions, testFindUsersLikeLogin}() and adding new tests for user without name. 2019-04-03 19:19:03 +03:00
Alexey Skobkin b455a6c8e7 Adding new tests in PostControllerTest to check for potential private post leakage. 2019-04-03 18:55:29 +03:00
Alexey Skobkin 5e8935ce66 Fixing PostController::showAction() exception on private author's post. 2019-04-03 18:52:36 +03:00
Alexey Skobkin d9c0673445 Fixing user and post data fixtures to fix PostControllerTest::testShortPostPageIsOk() according to previous privacy fix. New post for more advanced privacy test-cases added. Test must be written though. 2019-04-03 18:38:53 +03:00
Alexey Skobkin 0c004085fd Fixing privacy in PostController::showAction(). 2019-04-03 18:07:47 +03:00
Alexey Skobkin e5d5059c30 UserFactoryTest added 2019-02-15 23:42:31 +03:00
Alexey Skobkin 3805ec366f Fixes POINT-TOOLS-5 from Sentry. 2019-01-19 16:43:34 +03:00
Alexey Skobkin 9bcc3c6b24 Telegram logging support removed. 2019-01-19 04:11:01 +03:00
Alexey Skobkin f63b70fdd3 composer update knplabs/knp-paginator-bundle (v2.6.0 => v2.8.0). KNP Paginator deprecations removed. 2019-01-19 02:20:58 +03:00
Alexey Skobkin 6c8c0829ca Update commands now can fallback to API for point-tools user retrieval if it's not found in the database. Also small bug fixed. 2019-01-19 02:07:00 +03:00
Alexey Skobkin a1fae6e3f0 Fix #43. AbstractApi::sendRequest() fixed. Telegram account linking fixed too. 2017-11-07 03:15:58 +03:00
Alexey Skobkin 49b039026c Tag->setPost() removed in Post. 2017-11-06 07:18:02 +03:00
Alexey Skobkin 6c321a9fc6 DB schema, entities and factories small refactoring. 2017-11-06 05:36:32 +03:00
Alexey Skobkin e970a55f24 Trying to fix #40. 2017-11-06 05:24:19 +03:00
Alexey Skobkin 8f8f6973c0 AbstractApi now has 'abstract' definition. 2017-11-06 04:54:02 +03:00
Alexey Skobkin a44ce74d9b Fix #39. Duplicated index 'subscriptions.subscription_unique' removed. 2017-11-06 04:43:23 +03:00
Alexey Skobkin 34bf869cea More detailed 'Remote user is not equal with local' log record. 2017-11-06 04:37:14 +03:00
Alexey Skobkin 5631f1762a UpdateUsersPrivacyCommand flushes removed. 2017-11-06 04:31:43 +03:00
Alexey Skobkin 71a6e2add8 Telegram WebHook logger injection fix. 2017-11-06 03:26:10 +03:00
Alexey Skobkin 6f9b457e7d Telegram WebHook logger injection fix. 2017-11-06 02:23:15 +03:00
Alexey Skobkin 47e5e3d8c5 Telegram WebHook logger injection fix. 2017-11-05 16:20:35 +03:00
Alexey Skobkin 46502c4a80 deprecations removal. 2017-11-05 05:39:52 +03:00
Alexey Skobkin 00526e5f19 Controllers small refactoring. 2017-11-05 05:03:26 +03:00
Alexey Skobkin b8f912b91d Dependency Injection refactoring according to new autowiring and autoconfiguration. A bunch of classes refactored. 2017-11-05 04:42:08 +03:00
Alexey Skobkin d018c94a7a Symfony upgraded to 3.4.x-dev. Small refactoring. 2017-11-05 02:43:20 +03:00
Alexey Skobkin 6f817716b2 Single post template (post.html.twig) fix (comments rendering disabled in feed mode). 2017-11-05 01:00:25 +03:00
Alexey Skobkin 53ac59e032 Public feed post query fix (ORDER BY DESC). 2017-11-05 00:46:54 +03:00
Alexey Skobkin c0ea97e8f9 Public feed implemented. 2017-11-05 00:30:32 +03:00
Alexey Skobkin 988ac34752 #38 fix. User privacy status icons on user page. 2017-11-04 23:20:00 +03:00
Alexey Skobkin fe5c936681 #38 fix. User privacy status update implemented ('point:update:privacy' command). Small refactoring and several bug fixes. Small optimization. 2017-11-04 22:38:38 +03:00
Alexey Skobkin 013fb3ef3d UpdateSubscriptionsCommand dependency setting minified. 2017-01-21 01:35:25 +03:00
Alexey Skobkin 41079a29a8 RestoreRemovedUsersCommand added. 2017-01-18 04:06:55 +03:00
Alexey Skobkin 3336bf3502 "User removed" label on user page (show.html.twig). 2017-01-18 02:42:54 +03:00
Alexey Skobkin 7b87dc22ba User#isRemoved() bug fixed. 2017-01-18 02:42:06 +03:00
Alexey Skobkin c83833c45d Incorrect query build fix. 2017-01-18 01:36:21 +03:00
Alexey Skobkin 76b332155b Revert: Revert: User removal support. 2017-01-18 00:58:53 +03:00
Alexey Skobkin 38d0ab50be Revert: User removal support. 2017-01-17 04:36:35 +03:00
Alexey Skobkin 3ab7993d04 User removal support. 2017-01-17 04:07:38 +03:00
Alexey Skobkin 21224c0966 PointUrlExtension invalid method name bug fix. 2017-01-17 01:44:02 +03:00
Alexey Skobkin 5633a5146b Autowiring test. 'telegram:send-message' command added. 2017-01-16 02:54:19 +03:00
Alexey Skobkin 3d481f744f Post and PostFactory refactored. 2017-01-15 20:33:43 +03:00
Alexey Skobkin 1d88ccb6a3 Code quality refactoring for AbstractApi and PostFactory. 2017-01-15 19:53:17 +03:00
Alexey Skobkin a816ec59fc Probably Post DTO temprorary fix. 2017-01-15 18:03:13 +03:00
Alexey Skobkin 6e7280938d PostFactory minor fixes. 2017-01-15 17:51:40 +03:00
Alexey Skobkin 7c5f1f1ee8 DTO.Api.PostsPage.yml invalid type mapping fix. 2017-01-15 16:51:29 +03:00
Alexey Skobkin d4d4d8a4e8 DTO.Api.PostsPage.yml hasNext property mapping fix. 2017-01-15 06:33:54 +03:00
Alexey Skobkin 1b592fa72e Forgotten fix for previous commit. 2017-01-15 06:21:31 +03:00
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