Commit Graph

103 Commits

Author SHA1 Message Date
Mads Marquart
e6ec5c5194 Redo jsmods loading and fb_dtsg retrieving 2020-03-11 11:23:39 +01:00
Mads Marquart
0f4ee33d2a Fix failing test for NotLoggedIn 2020-02-05 15:29:57 +01:00
Mads Marquart
01effb34b4 Add Session.user in favor of Session.user_id 2020-01-25 11:42:32 +01:00
Mads Marquart
16081fbb19 Clean up utility functions 2020-01-23 16:19:09 +01:00
Mads Marquart
4015bed474 Move ThreadLocation, ActiveStatus and Image to _models/ folder 2020-01-23 15:19:41 +01:00
Mads Marquart
c71c1d37c2 Small cleanup of event parsing 2020-01-23 14:56:28 +01:00
Mads Marquart
1776c3aa45 Add test for fixup_module_metadata 2020-01-23 14:34:12 +01:00
Mads Marquart
a1fc235327 Refactor models file structure 2020-01-23 14:22:36 +01:00
Mads Marquart
2aea401c79 Refactor threads file structure 2020-01-23 14:06:26 +01:00
Mads Marquart
3efeffe6dd Refactor events file structure 2020-01-23 14:06:26 +01:00
Mads Marquart
89f90ef849 Make all models frozen, and sessions hashable 2020-01-23 10:18:33 +01:00
Mads Marquart
8277b22c5c Small fixes / optimizations 2020-01-22 23:56:39 +01:00
Mads Marquart
1526266bf3 Export MessageData model 2020-01-22 01:43:11 +01:00
Mads Marquart
2644aa9b7a Add type hints, and clean up Client a bit 2020-01-22 01:43:04 +01:00
Mads Marquart
701fe8ffc8 Remove old, broken tests 2020-01-21 23:05:57 +01:00
Mads Marquart
6117049489 Fix event parsing tests 2020-01-21 22:55:12 +01:00
Mads Marquart
316ffe5a52 Merge branch 'v1' 2020-01-21 22:04:22 +01:00
Mads Marquart
74a98d7eb3 Fix MessagesDelivered user parsing 2020-01-21 19:50:33 +01:00
Mads Marquart
01f8578dea Add top level MQTT topic parsing to a separate file 2020-01-20 18:20:24 +01:00
Mads Marquart
0a6bf221e6 Move /t_ms delta admin text type parsing to separate file and add tests 2020-01-20 18:02:56 +01:00
Mads Marquart
4abe5659ae Move /t_ms delta class parsing to separate file and add tests 2020-01-20 18:02:55 +01:00
Mads Marquart
0696ff9f4b Move ClientPayload parsing to separate file and add tests 2020-01-16 17:06:15 +01:00
Mads Marquart
e735823d37 Add initial common/core listen events 2020-01-16 16:02:58 +01:00
Mads Marquart
c0425193d0 Various error improvements 2020-01-15 15:15:50 +01:00
Mads Marquart
28791b2118 Add ExternalError.description and GraphQLError.debug_info 2020-01-15 14:03:35 +01:00
Mads Marquart
e25f53d9a9 Wrap requests exceptions 2020-01-15 12:19:28 +01:00
Mads Marquart
8f25a3bae8 Fix exceptions in tests 2020-01-15 11:17:51 +01:00
Mads Marquart
117433da8a Improve image fetching in ThreadABC 2020-01-14 18:47:14 +01:00
Mads Marquart
7c7ac1f1f6 Clean up User parsing 2020-01-13 11:39:09 +01:00
Mads Marquart
da18111ed0 Add ThreadABC._parse_participants 2020-01-13 11:39:09 +01:00
Mads Marquart
281ef4714f Message parsing fixes 2020-01-13 10:01:24 +01:00
Mads Marquart
26f99d983e Refactor polls and poll options 2020-01-09 22:03:15 +01:00
Mads Marquart
9f1c9c9697 Remove _core.Enum and aenum dependency 2020-01-09 21:00:35 +01:00
Mads Marquart
c81e509eb0 Remove TypingStatus 2020-01-09 21:00:35 +01:00
Mads Marquart
8b6d9b16c6 Remove ThreadColor
Replaced with raw color values. In the future, we should probably
investigate using "themes"
2020-01-09 21:00:34 +01:00
Mads Marquart
3341f4a45c Remove MessageReaction 2020-01-09 19:51:06 +01:00
Mads Marquart
12c2059812 Split Message into Message/MessageData 2020-01-09 17:50:18 +01:00
Mads Marquart
a1b3fd3ffa Refactor message sending 2020-01-09 17:21:07 +01:00
Mads Marquart
483fdf43dc Split Plan into Plan/PlanData, and add Plan.session 2020-01-09 15:13:37 +01:00
Mads Marquart
2459a0251a Split Group into Group/GroupData 2020-01-09 14:09:44 +01:00
Mads Marquart
c7ee45aaca Split Page into Page/PageData 2020-01-09 14:09:33 +01:00
Mads Marquart
22217c793c Split User into User/UserData 2020-01-09 14:09:17 +01:00
Mads Marquart
906e813378 Fix frame_count tests 2020-01-09 12:30:27 +01:00
Mads Marquart
942c3e5b70 Merge pull request #499 from carpedm20/session-in-models
Add ThreadABC helper, and move a bunch of methods out of Client
2020-01-09 11:33:45 +01:00
Mads Marquart
2ec0be9635 Remove ThreadType completely 2020-01-09 11:22:28 +01:00
Mads Marquart
d8d044f091 Merge pull request #498 from carpedm20/rename-uid
Rename .uid to .id
2020-01-09 10:58:46 +01:00
Mads Marquart
6baa594538 Fix user affinity test 2020-01-09 10:49:12 +01:00
Mads Marquart
152f20027a Add ThreadABC helper, that'll contain functions that threads can call 2020-01-09 00:35:43 +01:00
Mads Marquart
4199439e07 Remove Thread.type 2020-01-08 23:52:14 +01:00
Mads Marquart
0531a9e482 Add session attribute to Group/User/Page/Thread 2020-01-08 23:11:39 +01:00