Commit Graph

  • ab6b8e460b VSCodium python interpreter directory change shockrah 2021-02-10 23:21:11 -0800
  • 25755bf394 Percent decoder func found on crates.io Link: https://docs.rs/urldecode/0.1.1/src/urldecode/lib.rs.html#1-21 shockrah 2021-02-10 23:20:51 -0800
  • 16276c97e0 Moving option parameters to the query string Large payloads will remain the body as those are typically required for post endpoints such as /message/send shockrah 2021-02-10 23:18:24 -0800
  • 286a77d9ac Using virtualenv python interpreter from now on shockrah 2021-02-10 23:16:41 -0800
  • f585cf122c * switching to building options in query string * payloads for things like /message/send are now send through the request body * no longer sending body data in gets shockrah 2021-02-10 23:16:19 -0800
  • 21b184b324 Client tester now uses channel_id where applicable for api parameters as well as being less explicit about what it passes to the query string shockrah 2021-02-10 23:15:05 -0800
  • 2d6739438a removing unused redis dependancy shockrah 2021-02-10 18:20:28 -0800
  • 28c99d8160 removing rouge syntax error shockrah 2021-02-10 17:45:58 -0800
  • 4ef274d302 using newly updated docker image shockrah 2021-02-10 17:43:25 -0800
  • 2a3210e819 using base rust image for building for sizing reasons shockrah 2021-02-10 17:40:26 -0800
  • f3408d33aa Shifting json-api to its own bin folder shockrah 2021-02-10 16:05:22 -0800
  • aa5cd8c4ac Moving sample.env into the auto build script and using a reworked freechat docker image on hub.docker.com shockrah 2021-02-09 19:42:36 -0800
  • c3d9e2d3b3 +Putting apt-get all in one place +--no-install-recommends +Allowing curl pipe to fail early with previous SHELL command * Using WORKDIR instead of cd shockrah 2021-02-09 15:15:16 -0800
  • 8dd42606bd New pipeline script for master branch updated to support new project structure shockrah 2021-02-09 14:58:20 -0800
  • eb338e03a0 + Test for qs_param behavior Pretty simple and contains a special note about qs_param usage shockrah 2021-02-05 16:57:31 -0800
  • 769aa72cdf Opting for qs_param to reduce on visual cancer shockrah 2021-02-05 16:39:24 -0800
  • ab9fef2ccc route_dispatcher now reflects new hashmap usage over serde_json::Value's shockrah 2021-02-05 16:32:03 -0800
  • 33ae768ae4 *+ More qs_param! usage shockrah 2021-02-05 16:29:32 -0800
  • 3369b4ec48 - Removing unused code 'process_expires_parameter' function * Switching to qs_param in only a few cases for now shockrah 2021-02-05 16:28:47 -0800
  • 2cb2d2b29e + Adding serialize to db::Invite type * Invite initialization using shorthand notation now shockrah 2021-02-05 16:26:43 -0800
  • ba5db17706 * Replacing extract_uid with qs_param!(...) usage shockrah 2021-02-05 16:25:35 -0800
  • 4c92b20e74 * replacing extract_uid usage with qs_param!(....).unwrap() usage shockrah 2021-02-05 16:25:12 -0800
  • 8e98df1d37 - Removed parse_json_params as its no longer used + Adding qs_param macro to remove boilerplate in pulling out Option<T> data from hashmaps shockrah 2021-02-05 16:24:39 -0800
  • c2e384a13a */message/send Now polls content from the request body * flattened a bunch of checks with data fetches to the db Outright reduction of branches yey shockrah 2021-02-04 01:58:57 -0800
  • 20aca8a069 +Parsing channel_id param correctly + Checking for proper permissions in user shockrah 2021-02-03 23:29:53 -0800
  • 42e783ccf1 Clarification on failure return value in delete trait method shockrah 2021-02-03 23:28:14 -0800
  • 7334bb287d renamed add to 'new' to show its _real_ intentions shockrah 2021-02-03 21:56:34 -0800
  • 44b51133d2 * /channels/create handler uses hashmaps * cleaned up wall of parameter parsing to be less cancerous(read diff to die instantly) - Removed repeated db::Response in response mutator match shockrah 2021-02-03 21:56:09 -0800
  • c1ef4c6336 -Removed _most_ direct sql manipulation for invite creation - Removed unused/irrelevant unit tests, which now have to be rebuilt for the new codebase shockrah 2021-02-03 21:26:26 -0800
  • 39a4d2a247 +New .add method for db::Invites +New new() method to reduce on eye clutter shockrah 2021-02-03 21:25:27 -0800
  • 9fac3aa117 * /join route handler now uses hashmaps among and returns more sensible http codes shockrah 2021-02-03 21:09:12 -0800
  • 98803eec26 First pass of using hashmaps in /invite/create handler + Adding allowed_perm_invite, a helper function pulling permissions form the database to check if the user can make invites shockrah 2021-02-03 20:50:06 -0800
  • 45af62ceb3 Inlining helper func for permission checking shockrah 2021-02-03 19:31:38 -0800
  • e36d0e5823 * using hashmap instead serde::ValueMap for extract_uid shockrah 2021-02-03 19:30:46 -0800
  • 5737f9824d Setting payload for jwt with http:set_json_body shockrah 2021-02-03 19:30:12 -0800
  • e21c5c7624 auth module now parses from the query string hashmap, not serde_values shockrah 2021-02-03 13:55:25 -0800
  • 9ceeabea3b Moving query parameters to the query string This should allow js developers to write their own apps now as js doesn't allow for bodies in GET requests shockrah 2021-02-03 13:54:29 -0800
  • 154086e740 removing random empty file shockrah 2021-02-01 16:48:10 -0800
  • 2ed07a519e Port now defaults to 4536 and is configurable with -p shockrah 2021-02-01 16:47:43 -0800
  • 1e6a9ac844 +Setting proper callbacks on * Prefering server domains for get's in build_server_list shockrah 2021-01-28 18:01:38 -0800
  • ac9668557b Testing out a new module for channels api hits shockrah 2021-01-28 17:56:40 -0800
  • 91a4e06cb7 moving jwt and login related things to new auth module shockrah 2021-01-28 17:55:26 -0800
  • 1b7092fd34 Simple request/response api to wrap 'got' calls away shockrah 2021-01-28 17:54:49 -0800
  • e2360834f1 jsonwebtoken library added shockrah 2021-01-28 16:20:08 -0800
  • 051e5e73e3 Modularized modal styling's * Also fixed white on white text that I missed in join-form's text field shockrah 2021-01-28 12:40:31 -0800
  • f548449f8c dev things shockrah 2021-01-27 19:20:53 -0800
  • fa62d3adfe Not caching apk fetches and now providing a sample .env file for at /opt/freechat/.env shockrah 2021-01-27 17:03:16 -0800
  • 1b3d7da744 Docker image now built correctly and is only missing some kind of tempalte for .env files but thats basically it shockrah 2021-01-25 20:56:14 -0800
  • ea17628827 * Fixed issue with spacing in help param processing + Not caching cargo builds in default docker container shockrah 2021-01-25 20:42:11 -0800
  • 462fe463f7 moving dockerfile to empty dir to avoid pulling in pointless context shockrah 2021-01-25 20:33:06 -0800
  • 2a4da34c99 temporary buid files shockrah 2021-01-25 20:23:43 -0800
  • 751e24b867 Help script in docker-auto-build.sh adding openssl-dev requirements for buliding json-api to Dockerfile shockrah 2021-01-25 20:23:13 -0800
  • aae59e7d68 removing usage of pushd/popd for alpine docker builds shockrah 2021-01-25 20:01:31 -0800
  • 55efbfd85c new build scripts for server owners, requires testing before calling it done shockrah 2021-01-25 19:56:05 -0800
  • cdbb3e79d8 remnant from the api rename shockrah 2021-01-25 18:55:09 -0800
  • 1292e5ab3f Moving some initialization logic to its own module shockrah 2021-01-25 18:21:35 -0800
  • b67bb6105f Renaming project to json-api for clarity sake shockrah 2021-01-24 13:34:17 -0800
  • 84c865e194 moving the create_onwer code to its own function to clean up main a bit shockrah 2021-01-23 18:18:01 -0800
  • 49c675b97a No more messing with hyper Reponse<Body> manually. All that is handled to the http module shockrah 2021-01-23 17:11:36 -0800
  • 9e505bd2bb extract_uid for more legibility when we need to pull 'id' from user parameters shockrah 2021-01-23 17:10:43 -0800
  • 085bad75fd Moving http relevant functions to a more proper module shockrah 2021-01-23 16:09:04 -0800
  • 5a27ef07f1 Adding optional limit field to /message/time_range handler shockrah 2021-01-23 15:14:57 -0800
  • feef6104c6 * Changed a local var MAX to a const module level alias MAX_MESSAGES shockrah 2021-01-23 15:14:15 -0800
  • d55a8420ac Testing from_id: good and bad cases here shockrah 2021-01-23 14:23:47 -0800
  • 0e93b12cbd 404 returned when message list is 0 shockrah 2021-01-23 14:23:20 -0800
  • 26fe2e722e Reformatting message tests and passing more tests like it should be shockrah 2021-01-23 13:44:06 -0800
  • b9573ee09c * Flattening /message/time_range handler further dfc-chan returns shockrah 2021-01-23 13:36:30 -0800
  • 5855387a52 Resetting dev-database with diesel before running tests shockrah 2021-01-23 13:33:24 -0800
  • 33916868da +Adding support for more verbose loggin More tests which currently are failing with /message/time_range shockrah 2021-01-23 12:52:06 -0800
  • cf7c5517bb Verified /message/send works as intended for now with new testing api shockrah 2021-01-23 01:51:22 -0800
  • 64eb2b072f -Removing some unnecessary loggin shockrah 2021-01-23 01:50:40 -0800
  • f39bf5ab31 removing empty bodies from failure logs shockrah 2021-01-23 00:53:20 -0800
  • 915c73b922 removed extra /login hit that caused huge test cascade failure shockrah 2021-01-23 00:53:04 -0800
  • 70be391701 using the new logging system for the tests and they look soo good shockrah 2021-01-22 22:56:24 -0800
  • dfd4c18402 Improved the loggin output from response/request tyeps shockrah 2021-01-22 22:52:17 -0800
  • 1a7b7f0478 tests working but not yet check for correctness shockrah 2021-01-20 22:53:04 -0800
  • 00fccb72e5 Mysterious tuple from string bug here Patching because I have other things to do but basically this diff at line 20 shows that even though self.secret was assigned toa string value, it was still being given the type of tuple with the first/only item being the string value I have no idea how this was happeneing but its fixed as of now shockrah 2021-01-20 22:50:23 -0800
  • 84ac9883d1 * sending body data as prepared json to - removing pointless asserts - removed unused param in Request.make shockrah 2021-01-20 22:47:12 -0800
  • aaa1378af8 -Removed old tests altogether now its benchmarking time shockrah 2021-01-20 21:56:21 -0800
  • d44ba36e58 adding virtualenv things shockrah 2021-01-20 21:55:32 -0800
  • c77ce0b7b6 Removing unused log method from previous builds shockrah 2021-01-20 21:29:37 -0800
  • 68099af7ba Building stateless tests for now as a proof of concept that this more spammy testing approach can work shockrah 2021-01-20 21:28:33 -0800
  • e39179da78 Response now has a .json method to pull the body out as a dictionary shockrah 2021-01-20 21:26:50 -0800
  • d589b31180 pythonPath config for debugging in vscode shockrah 2021-01-20 20:12:13 -0800
  • 5446d70d84 ! First new colorng mechanism is added for better human readability + Turning _make_requests into a lower level driver which now creates Response types with its own self.url now shockrah 2021-01-20 20:11:53 -0800
  • d31b02089e Conceptualizing how future tests will be written. IDeally we can specify them even later in json so that we can generate huge amounts of tests in any language and toss them through this pipeline fast as hell shockrah 2021-01-20 20:09:29 -0800
  • 2f15e2ef62 Removal/skeltonizing of a shitload of old code shockrah 2021-01-20 17:45:22 -0800
  • fc74a3dbc7 Moving http logic to its own module under a new 'web' module More interfaces for the testing client will be built to better analyze responses in next patches shockrah 2021-01-20 16:56:54 -0800
  • c61c57c1b8 ignoring pycache shockrah 2021-01-20 16:50:54 -0800
  • 79d77e0007 Beginning refactor of test client to more cleanly create new tests Body parameters were being polluted so new logic is required to make the worker more stable and ignore its state properly shockrah 2021-01-20 13:50:09 -0800
  • 22d2f3eea0 Adding hooks for /message/from_id handler shockrah 2021-01-19 22:27:06 -0800
  • 01320899a3 Base implementation of new /message/from_id route shockrah 2021-01-19 22:26:53 -0800
  • 3b3fa14496 * Db::Messages::get_time_range now handles case where start_time >= end_time Which means we won't get weird requests from clients anymore(hopefully) shockrah 2021-01-19 19:43:21 -0800
  • 5c4bc6f96f Updated /message/get_time to pass client api testing shockrah 2021-01-18 23:28:32 -0800
  • c89c2a4469 adding more tests for the new message fetch route shockrah 2021-01-18 23:25:11 -0800
  • 6ffcb7a73b + /messages/get_range base route handler, ready for testing shockrah 2021-01-18 22:01:11 -0800
  • b917483dac * Upated message struct initialization to shorthand (cosmetic thing * Updated message struct to use channel_id not _name shockrah 2021-01-18 22:00:24 -0800
  • 95414e21a3 Better scrollbar style that doesn't look like garbage shockrah 2021-01-18 17:43:26 -0800
  • de46c2ff38 Fixxing calling site for http::fetch_channels shockrah 2021-01-18 16:43:05 -0800
  • a58f8437c0 Adding port field to server config shockrah 2021-01-18 16:39:21 -0800