Commit Graph

109 Commits

Author SHA1 Message Date
realaravinth
912b342e0e feat: conditionally init postgres/mariadb connection 2022-07-23 11:59:42 +05:30
realaravinth
85f91cb79b feat: update libmcaptcha 2022-07-21 18:29:16 +05:30
realaravinth
bbc8873762 feat: migrate record_stats to use db_* 2022-05-27 16:23:33 +05:30
realaravinth
a971d4209d fix and chore: refactor tests to minimize initializing DB connections
SUMMARY
    The test suite was spinning up way too many database connections that what's
    strictly needed and so the test suite was failing with[0]:
	code: "53300", message: "sorry, too many clients already"

EXPERIMENTS
    Tried sharing database connection pool across all tests with
    async_once[0] but faced:
	- IO errors
	    The connections were probably getting dropped in between tests
	- actix Actor errors
	    The actor was probably not getting initialized before a
	    a reference to the async_once initialized app
	    context(crate::data::Data) is retrieved and used

FIX
    crate::tests was spinning up an App context
    instance(crate::data::Data) for most utility functions, which was
    unnecessarily excessive.

    Each test now creates an instance of the application context at the
    beginning and shared a reference with all test utility functions. So
    number of database connections/app context instance = number of unit
    tests.

[0]: permanently fixes #22
[1]: https://docs.rs/async_once/latest/async_once/
2022-05-14 12:55:56 +05:30
realaravinth
bd75fc625c feat: migrate adding captcha to use db_* interface 2022-05-12 19:10:04 +05:30
realaravinth
0d3d552ae0 feat: migrate create captcha to use db_* 2022-05-12 18:59:44 +05:30
realaravinth
dba1f662a7 feat: init postgres implementation via sqlx 2022-05-11 13:33:29 +05:30
realaravinth
91c6f77cab chore: update actix-* deps 2022-05-07 16:10:14 +05:30
realaravinth
ab77eed91c move pow wasm lib out to a separate repo 2021-12-01 21:18:30 +05:30
realaravinth
f2f8632679 udpate deps and test openapi spec 2021-11-29 17:32:33 +05:30
realaravinth
9afb63c738 use yaml directly for displaying open api spec 2021-10-08 15:36:42 +05:30
realaravinth
a8c3eaa617 clean up systemgroup interface 2021-08-20 19:17:40 +05:30
realaravinth
068c49080e handle libmcaptcha actor errors 2021-08-20 18:15:55 +05:30
realaravinth
6ef941f73d update username 2021-08-13 18:58:04 +05:30
realaravinth
e9e6aac770 sitemap 2021-07-21 22:15:52 +05:30
realaravinth
4b18992f6a settings page, clipboard component 2021-07-20 18:14:23 +05:30
realaravinth
00768cce34 delete captcha 2021-07-20 13:02:53 +05:30
realaravinth
f7c9217667 update and rename captcha plumbing 2021-07-19 17:12:56 +05:30
realaravinth
863d22f62c list sitekey: copy sitekey 2021-07-15 18:07:12 +05:30
realaravinth
2e50c263a8 makeifle: clean and test workflows 2021-07-07 21:10:15 +05:30
realaravinth
5fa668ad97 updated cache buster 2021-07-07 18:10:01 +05:30
realaravinth
bfebca6e0e widget static resources are now built locally 2021-07-07 00:28:32 +05:30
realaravinth
e1e1040ca9 clickable logo 2021-07-03 22:32:40 +05:30
realaravinth
362e2aeae0 email verification test 2021-07-01 15:48:59 +05:30
realaravinth
9f940c317a upgrading to actix-v4-beta 2021-06-30 20:13:12 +05:30
realaravinth
804c81da38 read SMTP configuration 2021-06-29 21:08:40 +05:30
realaravinth
d5aceb60b4 sign in with email 2021-06-29 19:42:07 +05:30
realaravinth
6a56ff8ea9 block floc 2021-06-15 20:23:39 +05:30
realaravinth
5e6e04514e preload creds manager 2021-06-13 13:35:09 +05:30
realaravinth
9636180673 redis health check: return err when unable to connect 2021-06-13 12:53:58 +05:30
realaravinth
3132a48087 add redis to health check 2021-06-12 13:44:18 +05:30
realaravinth
f5624947b9 redis storage for captcha mech 2021-06-11 19:31:03 +05:30
realaravinth
9e70f8f756 rename guard -> mcaptcha 2021-06-01 17:33:47 +05:30
realaravinth
72667bd2e1 using custom version of actix-codegen and cors for pow routes 2021-05-25 14:34:24 +05:30
realaravinth
0421cb681c show password compoenent 2021-05-15 21:36:52 +05:30
realaravinth
a4b409e914 sqlx offline compilation 2021-05-12 17:37:11 +05:30
realaravinth
91ca00ea79 get notifications 2021-05-10 15:38:09 +05:30
realaravinth
7058af84d6 static dir renamed and cookie auth middleware 2021-05-01 11:28:39 +05:30
realaravinth
c96f890236 cache_bustere upgrade and static assets tests 2021-04-30 21:34:44 +05:30
realaravinth
0d1ba0d150 url prefix processing 2021-04-11 23:23:14 +05:30
realaravinth
7777db477e pow verification 2021-04-10 20:19:59 +05:30
realaravinth
e76dd8014c pow get config 2021-04-10 17:00:54 +05:30
realaravinth
d3851ea38e embed static assets and remove frontend workspace 2021-04-09 17:40:40 +05:30
realaravinth
0496c0bdaf frontend integration 2021-04-09 14:21:43 +05:30
realaravinth
c4255397b1 cache busting 2021-04-09 13:21:50 +05:30
realaravinth
2ce8a46a3f panel 2021-04-05 16:38:32 +05:30
realaravinth
a78b1eb25d frontend templating 2021-04-03 17:18:18 +05:30
realaravinth
584d43c34a CI: tarpaulin env var 2021-04-02 11:28:11 +05:30
realaravinth
e83ed3d8ea OAS: yaml to json 2021-04-01 15:23:36 +05:30
realaravinth
a3a118927e swagger ui 2021-03-30 20:49:09 +05:30