105 Commits

Author SHA1 Message Date
Aravinth Manivannan
ba601720f4 Merge pull request 'fix(deps): update rust crate sqlx to 0.8' (#36) from renovate/sqlx-0.x into woodpecker-pipeline
Reviewed-on: https://git.batsense.net/mCaptcha/mCaptcha/pulls/36
2025-10-02 12:35:03 +05:30
Aravinth Manivannan
aa3451a1de Merge pull request 'chore(deps): update rust crate actix-web to v4.11.0' (#77) from renovate/actix-web-4.x-lockfile into woodpecker-pipeline
Reviewed-on: https://git.batsense.net/mCaptcha/mCaptcha/pulls/77
2025-10-02 12:34:38 +05:30
Renovate Bot
3f8a4cacd2 fix(deps): update rust crate sqlx to 0.8 2025-10-02 06:56:15 +00:00
Renovate Bot
acd6eebcfe fix(deps): update rust crate pretty_env_logger to 0.5 2025-10-02 06:55:58 +00:00
Renovate Bot
4b025a94c8 chore(deps): update rust crate actix-web to v4.11.0 2025-10-02 06:55:42 +00:00
Renovate Bot
9fa1c45492 chore(deps): update rust crate awc to v3.8.0 2025-10-01 11:03:08 +00:00
Aravinth Manivannan
16da3d258f Merge pull request 'fix(deps): update rust crate serde_json to v1.0.140' (#68) from renovate/serde_json-1.x-lockfile into woodpecker-pipeline
Reviewed-on: https://git.batsense.net/mCaptcha/mCaptcha/pulls/68
2025-04-20 20:01:26 +05:30
Aravinth Manivannan
4c5401941c Merge pull request 'fix(deps): update rust crate serde to v1.0.219' (#67) from renovate/serde-monorepo into woodpecker-pipeline
Reviewed-on: https://git.batsense.net/mCaptcha/mCaptcha/pulls/67
2025-04-20 20:01:14 +05:30
Aravinth Manivannan
80f9748aa7 Merge pull request 'fix(deps): update rust crate openssl to v0.10.72' (#66) from renovate/openssl-0.x-lockfile into woodpecker-pipeline
Reviewed-on: https://git.batsense.net/mCaptcha/mCaptcha/pulls/66
2025-04-20 20:01:07 +05:30
Aravinth Manivannan
44efdd3541 Merge pull request 'fix(deps): update rust crate log to v0.4.27' (#65) from renovate/log-0.x-lockfile into woodpecker-pipeline
Reviewed-on: https://git.batsense.net/mCaptcha/mCaptcha/pulls/65
2025-04-20 19:53:02 +05:30
Aravinth Manivannan
1dcad0d507 Merge pull request 'fix(deps): update rust crate derive_more to v0.99.19' (#64) from renovate/derive_more-0.x-lockfile into woodpecker-pipeline
Reviewed-on: https://git.batsense.net/mCaptcha/mCaptcha/pulls/64
2025-04-20 19:43:32 +05:30
Aravinth Manivannan
7f6a703556 Merge pull request 'fix(deps): update rust crate config to v0.15.11' (#63) from renovate/config-0.x-lockfile into woodpecker-pipeline
Reviewed-on: https://git.batsense.net/mCaptcha/mCaptcha/pulls/63
2025-04-20 19:43:29 +05:30
Aravinth Manivannan
f8da5ca3bf Merge pull request 'fix(deps): update rust crate actix-service to v2.0.3' (#61) from renovate/actix-service-2.x-lockfile into woodpecker-pipeline
Reviewed-on: https://git.batsense.net/mCaptcha/mCaptcha/pulls/61
2025-04-20 19:43:25 +05:30
Aravinth Manivannan
7c643e013e Merge pull request 'fix(deps): update rust crate async-trait to v0.1.88' (#62) from renovate/async-trait-0.x-lockfile into woodpecker-pipeline
Reviewed-on: https://git.batsense.net/mCaptcha/mCaptcha/pulls/62
2025-04-20 19:37:20 +05:30
Renovate Bot
26f23f6700 fix(deps): update rust crate serde_json to v1.0.140 2025-04-20 13:40:14 +00:00
Renovate Bot
b851bdb2b0 fix(deps): update rust crate serde to v1.0.219 2025-04-20 13:40:04 +00:00
Renovate Bot
83c90c78e2 fix(deps): update rust crate openssl to v0.10.72 2025-04-20 13:39:53 +00:00
Renovate Bot
9768998926 fix(deps): update rust crate log to v0.4.27 2025-04-20 13:39:49 +00:00
Renovate Bot
78186f13e6 fix(deps): update rust crate derive_more to v0.99.19 2025-04-20 13:39:45 +00:00
Renovate Bot
5500483e1b fix(deps): update rust crate config to v0.15.11 2025-04-20 13:39:41 +00:00
Renovate Bot
0a82a62adc fix(deps): update rust crate async-trait to v0.1.88 2025-04-20 13:39:37 +00:00
Renovate Bot
fac6c92812 fix(deps): update rust crate actix-service to v2.0.3 2025-04-20 13:39:29 +00:00
Renovate Bot
3fea35b481 fix(deps): update rust crate actix-cors to v0.7.1 2025-04-20 13:39:24 +00:00
Aravinth Manivannan
4f28931875 Merge pull request 'fix(deps): update rust crate lettre to 0.11.0' (#32) from renovate/lettre-0.x into woodpecker-pipeline
Reviewed-on: https://git.batsense.net/mCaptcha/mCaptcha/pulls/32
2025-04-03 11:30:05 +05:30
Renovate Bot
20dbcb5b8f fix(deps): update rust crate lettre to 0.11.0 2025-04-03 05:01:12 +00:00
Renovate Bot
2a71dfe459 fix(deps): update rust crate derive_builder to 0.20 2025-04-03 05:01:07 +00:00
Renovate Bot
ce0eb26422 fix(deps): update rust crate config to 0.15 2024-12-30 14:19:22 +00:00
Renovate Bot
c827208144 fix(deps): update rust crate actix-cors to 0.7.0 2024-12-30 12:27:51 +00:00
Aravinth Manivannan
1956e97503
fix: update deps to fix compilation with rustc 2024-12-30 16:58:39 +05:30
Aravinth Manivannan
b6a6705449
feat: read survey uploader's settings 2023-10-19 09:59:29 +05:30
Aravinth Manivannan
cb7245d577
feat: use libmCaptcha from crates.io 2023-10-17 15:38:40 +05:30
Aravinth Manivannan
561a847bd7
chore: use libmcaptcha and libcachebust from crates.io 2023-10-17 01:04:44 +05:30
Aravinth Manivannan
0e75a22beb
chore: bump sqlx to 0.7 2023-10-16 21:15:44 +05:30
Aravinth Manivannan
060291d174
chore: bump config version 2023-10-16 21:15:15 +05:30
Aravinth Manivannan
d3e08ff49e
chore: update sailfish
NOTE: Updating to 0.8 causes memory leak during compilation
2023-10-16 21:15:15 +05:30
Aravinth Manivannan
c4a286454b
chore: update rust and js deps 2023-07-02 22:05:23 +05:30
Aravinth Manivannan
2b82af9a0c
feat: update novice captcha creation form to include publish_benchmarks
preference
2023-06-30 03:20:57 +05:30
Aravinth Manivannan
68b59ade8c
feat: add psuedo ID support to publish campaign IDs 2023-06-30 01:48:24 +05:30
Aravinth Manivannan
dc380adfcf
chore: bump libmcaptcha 2023-06-28 22:49:08 +05:30
Aravinth Manivannan
90e60b0486
Merge pull request #70 from mCaptcha/fix-53
fix: update libmcaptcha to use connection manager
2023-03-31 17:29:58 +05:30
Aravinth Manivannan
58f93cb602
fix: update libmcaptcha to use connection manager
closes: https://github.com/mCaptcha/mCaptcha/issues/53
2023-03-31 16:20:13 +05:30
dependabot[bot]
e890ba0f57
chore(deps): bump openssl from 0.10.41 to 0.10.48
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.41 to 0.10.48.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.41...openssl-v0.10.48)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-25 05:03:34 +00:00
Gusted
a4f9c92b32
Update cargo 2022-10-22 21:53:18 +02:00
realaravinth
e5e89bd8a0
chore: bump libmcaptcha, switch to master 2022-08-13 01:58:40 +05:30
realaravinth
f8e6bdf229
feat: bump libmcaptcha 2022-08-09 16:29:05 +05:30
realaravinth
ce1b3b0856
feat: bump libmcaptcha and pow_sha256 2022-08-09 02:51:40 +05:30
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