Commit Graph

57 Commits

Author SHA1 Message Date
Abdulmhsen B. A. A
b025d1a0dd added new config key to separate config and db folders from tmp files, if it not set it will rely on WS_DATA_PATH. 2022-03-17 17:40:53 +03:00
Abdulmhsen B. A. A
5efabe0cae made listUsers/getServerUuid methods throw exceptions for better handling in ManageCommand 2022-03-12 17:50:48 +03:00
Abdulmhsen B. A. A
0c75abb1ee Updated StorageInterface migrations commands. 2022-03-09 17:37:54 +03:00
Abdulmhsen B. A. A
3c9d8d6ef3 Changed webhook.uuid to .uuid as it's required and not just limited to webhooks anymore. 2022-03-08 18:59:05 +03:00
Abdulmhsen B. A. A
e199001878 Added the ability to get server auth tokens for plex. 2022-03-08 18:58:30 +03:00
Abdulmhsen B. A. A
c042f61572 Added new command to view server info starting with --list-users 2022-03-07 13:47:38 +03:00
Abdulmhsen B. A. A
df4c065606 Better serveHttpRequest logging. 2022-03-06 17:46:26 +03:00
Abdulmhsen B. A. A
73b5ffd869 Removed webhook.ips support 2022-03-06 17:46:00 +03:00
Abdulmhsen B. A. A
62cde4713d Added the ability to get the server unique id from server. 2022-03-06 14:59:26 +03:00
Abdulmhsen B. A. A
450b20db71 Changed push command name and updated some default config variables. 2022-03-04 22:46:04 +03:00
Abdulmhsen B. A. A
7a8cab2afd Added new functions for server initialization and cleaned up some code. 2022-03-04 20:34:54 +03:00
Abdulmhsen B. A. A
350a414b56 if the server initialization process fails due to missing configuration an unexpected exception thrown due to cache name not being set. 2022-03-04 20:33:57 +03:00
Abdulmhsen B. A. A
0ec74b5f37 Try to cache Guid <> serverID mapping in most cases. 2022-03-04 20:03:50 +03:00
Abdulmhsen B. A. A
32bb793b4b fixes for body parsing. 2022-03-03 15:54:08 +03:00
Abdulmhsen B. A. A
aa00e5bd97 Renamed :webhook command to :edit to better reflect the intention of the command and to expand the configurable settings via the command. 2022-03-03 15:30:36 +03:00
Abdulmhsen B. A. A
2d865db17a Added Pre-processor for webhook requests to extract needed attributes. 2022-03-03 14:26:43 +03:00
Abdulmhsen B. A. A
7df98423a2 Added Pre-processor for webhook requests to extract needed attributes. 2022-03-03 13:33:39 +03:00
Abdulmhsen B. A. A
7c84636728 Updated How we handle webhook events to apikey/per server in preparation for instant watch state push. 2022-03-02 15:51:34 +03:00
Abdulmhsen B. A. A
211bfe1e53 Added IpUtils class 2022-03-02 14:37:47 +03:00
Abdulmhsen B. A. A
236142d3ea Removed push method to export to reflect its true purpose. 2022-03-02 10:39:17 +03:00
Abdulmhsen B. A. A
9b4710ee28 Removed singleTransaction from StorageInterface as it only make sense for database related Storage backends. 2022-03-02 10:38:28 +03:00
Abdulmhsen B. A. A
c95dd6c9aa removed debug code. 2022-03-01 19:55:24 +03:00
Abdulmhsen B. A. A
aa41fb1472 Added webhooks:queued command to process near instant watchstate sync. 2022-03-01 19:33:07 +03:00
Abdulmhsen B. A. A
3ec1d737ff Use item Id as queue ID to prevent duplicate state pushes if there are many senders. 2022-03-01 18:04:04 +03:00
Abdulmhsen B. A. A
34c0645dea Initial code to support quick state sync. 2022-03-01 18:00:48 +03:00
Abdulmhsen B. A. A
8c26d35677 added a way for servers classes to persist data into user config. 2022-02-28 23:36:33 +03:00
Abdulmhsen B. A. A
6da076b037 updated saveWebhookPayload to save all payloads and not override the same event. for debugging 2022-02-28 22:58:41 +03:00
Abdulmhsen B. A. A
db5518e19f Added support for more webhook events. 2022-02-27 15:02:14 +03:00
Abdulmhsen B. A. A
756e59b474 Fixed a bug when that occurs when using MemoryMapper and the --storage-pdo-single-transaction flag. 2022-02-27 14:14:45 +03:00
Abdulmhsen B. A. A
eb53e79d91 tidying up tests. and added initial code for ExportMapper test. 2022-02-23 12:39:57 +03:00
Abdulmhsen B. A. A
347da885dd Fixed export not working correctly when --mapper-preload is not set. Fixed #26 2022-02-23 11:28:53 +03:00
Abdulmhsen B. A. A
654d408375 For Plex webhook use the highest reported date between given dates, Plex does not have a field for event date. 2022-02-22 14:05:26 +03:00
Abdulmhsen B. A. A
207c17b068 Fixed regression in parsing plex webhook events. 2022-02-22 13:35:54 +03:00
Abdulmhsen B. A. A
75a82d4255 Update metadata field when updating GUID only. 2022-02-22 13:35:30 +03:00
Abdulmhsen B. A. A
5195e503d5 Made improvements to how we commit sqlite changes. as such expect faster imports for db operations. 2022-02-21 18:24:52 +03:00
Abdulmhsen B. A. A
93bae43d73 Added all MemoryMapper tests. 2022-02-21 15:17:11 +03:00
Abdulmhsen B. A. A
47da688481 Added initial tests for MemoryMapper planning on high coverage. 2022-02-20 17:58:12 +03:00
Abdulmhsen B. A. A
8dd39b7e6e As the API stabilizing, we started adding tests. 2022-02-19 20:56:51 +03:00
Abdulmhsen B. A. A
3d8fdc20ac Removed usage of DS constant. 2022-02-19 16:38:24 +03:00
Abdulmhsen B. A. A
1e3b9fa5cd Switched to using streams to parse json responses from servers. thereby reducing memory usage in half. implemented #19 2022-02-18 17:02:18 +03:00
Abdulmhsen B. A. A
00788f7510 attempt at reducing overall memory usage for MemoryMapper. 2022-02-17 15:47:33 +03:00
Abdulmhsen B. A. A
01b19aa8b8 Fixed bug in ignoring unwatched implementation. 2022-02-16 20:51:08 +03:00
Abdulmhsen B. A. A
083ea64351 Text update. 2022-02-16 20:23:03 +03:00
Abdulmhsen B. A. A
41c3116850 updated to reflect changes in mapper server relation 2022-02-16 20:22:55 +03:00
Abdulmhsen B. A. A
74374e2663 Updated to account for changes in Import functionality. 2022-02-16 20:22:11 +03:00
Abdulmhsen B. A. A
1947f7fa68 Made it so backends servers Import only parse response and produce valid StateEntity item. And delegate the check operations to The Mapper. 2022-02-16 20:21:37 +03:00
Abdulmhsen B. A. A
6081d119bb Added date to cliLogger redirect 2022-02-16 20:19:19 +03:00
Abdulmhsen B. A. A
07a36ddfba allow passing options to mapper via add method. 2022-02-15 19:04:06 +03:00
Abdulmhsen B. A. A
35a1012784 Updated README.md and added options to allow importing of unwatched state and an option to allow ignoring date comparison for export. 2022-02-14 14:09:08 +03:00
Abdulmhsen B. A. A
c0be4ae429 Replace guzzlephp with Symfony/http-client to support http2. Closes #1 2022-02-13 19:12:58 +03:00