François-Xavier Talbot
4b17eb5d35
Gotenberg/PDF gen implementation ( #4574 )
...
* Gotenberg/PDF gen implementation
* Security, PDF type enum, propagate client
* chore: query cache, clippy, fmt
* clippy fixes + tombi
* Update env example, add GOTENBERG_CALLBACK_URL
* Remove test code
* Fix .env, docker-compose
* Update purpose of payment
* Add internal networking guards to gotenberg webhooks
* Fix error
* Fix lint
2025-10-19 23:56:26 +00:00
aecsocket
fa7d1d7942
Use new MaxMind env vars on Labrinth ( #4573 )
...
* Bring in modrinth-maxmind
* integrate modrinth-maxmind into labrinth
* Fix CI
2025-10-18 18:38:19 +00:00
Josiah Glosson
b23d3e674f
Update Rust & Java dependencies ( #4540 )
...
* Update Java dependencies
* Baselint lint fixes
* Update Rust version
* Update actix-files 0.6.6 -> 0.6.8
* Update actix-http 3.11.0 -> 3.11.2
* Update actix-rt 2.10.0 -> 2.11.0
* Update async_zip 0.0.17 -> 0.0.18
* Update async-compression 0.4.27 -> 0.4.32
* Update async-trait 0.1.88 -> 0.1.89
* Update async-tungstenite 0.30.0 -> 0.31.0
* Update const_format 0.2.34 -> 0.2.35
* Update bitflags 2.9.1 -> 2.9.4
* Update bytemuck 1.23.1 -> 1.24.0
* Update typed-path 0.11.0 -> 0.12.0
* Update chrono 0.4.41 -> 0.4.42
* Update cidre 0.11.2 -> 0.11.3
* Update clap 4.5.43 -> 4.5.48
* Update data-url 0.3.1 -> 0.3.2
* Update discord-rich-presence 0.2.5 -> 1.0.0
* Update enumset 1.1.7 -> 1.1.10
* Update flate2 1.1.2 -> 1.1.4
* Update hyper 1.6.0 -> 1.7.0
* Update hyper-util 0.1.16 -> 0.1.17
* Update iana-time-zone 0.1.63 -> 0.1.64
* Update image 0.25.6 -> 0.25.8
* Update indexmap 2.10.0 -> 2.11.4
* Update json-patch 4.0.0 -> 4.1.0
* Update meilisearch-sdk 0.29.1 -> 0.30.0
* Update clickhouse 0.13.3 -> 0.14.0
* Fix some prettier things
* Update lettre 0.11.18 -> 0.11.19
* Update phf 0.12.1 -> 0.13.1
* Update png 0.17.16 -> 0.18.0
* Update quick-xml 0.38.1 -> 0.38.3
* Update redis 0.32.4 -> 0.32.7
* Update regex 1.11.1 -> 1.11.3
* Update reqwest 0.12.22 -> 0.12.23
* Update rust_decimal 1.37.2 -> 1.38.0
* Update rust-s3 0.35.1 -> 0.37.0
* Update serde 1.0.219 -> 1.0.228
* Update serde_bytes 0.11.17 -> 0.11.19
* Update serde_json 1.0.142 -> 1.0.145
* Update serde_with 3.14.0 -> 3.15.0
* Update sentry 0.42.0 -> 0.45.0 and sentry-actix 0.42.0 -> 0.45.0
* Update spdx 0.10.9 -> 0.12.0
* Update sysinfo 0.36.1 -> 0.37.2
* Update tauri 2.7.0 -> 2.8.5
* Update tauri-build 2.3.1 -> 2.4.1
* Update tauri-plugin-deep-link 2.4.1 -> 2.4.3
* Update tauri-plugin-dialog 2.3.2 -> 2.4.0
* Update tauri-plugin-http 2.5.1 -> 2.5.2
* Update tauri-plugin-opener 2.4.0 -> 2.5.0
* Update tauri-plugin-os 2.3.0 -> 2.3.1
* Update tauri-plugin-single-instance 2.3.2 -> 2.3.4
* Update tempfile 3.20.0 -> 3.23.0
* Update thiserror 2.0.12 -> 2.0.17
* Update tracing-subscriber 0.3.19 -> 0.3.20
* Update url 2.5.4 -> 2.5.7
* Update uuid 1.17.0 -> 1.18.1
* Update webp 0.3.0 -> 0.3.1
* Update whoami 1.6.0 -> 1.6.1
* Note that windows and windows-core can't be updated yet
* Update zbus 5.9.0 -> 5.11.0
* Update zip 4.3.0 -> 6.0.0
* Fix build
* Enforce rustls crypto provider
* Refresh Cargo.lock
* Update transitive dependencies
* Bump Gradle usage to Java 17
* Use ubuntu-latest consistently across workflows
* Fix lint
* Fix lint in Rust
* Update native-dialog 0.9.0 -> 0.9.2
* Update regex 1.11.3 -> 1.12.2
* Update reqwest 0.12.23 -> 0.12.24
* Update rust_decimal 1.38.0 -> 1.39.0
* Remaining lock-only updates
* chore: move TLS impl of some other dependencies to aws-lc-rs
The AWS bloatware "virus" expands by sheer force of widespread adoption
by the ecosystem... 🫣
* chore(fmt): run Tombi
---------
Co-authored-by: Alejandro González <me@alegon.dev >
2025-10-15 20:45:47 +00:00
François-Xavier Talbot
4228a193e9
Charge tax on products ( #4361 )
...
* Initial Anrok integration
* Query cache, fmt, clippy
* Fmt
* Use payment intent function in edit_subscription
* Attach Anrok client, use payments in index_billing
* Integrate Anrok with refunds
* Bug fixes
* More bugfixes
* Fix resubscriptions
* Medal promotion bugfixes
* Use stripe metadata constants everywhere
* Pre-fill values in products_tax_identifiers
* Cleanup billing route module
* Cleanup
* Email notification for tax charge
* Don't charge tax on users which haven't been notified of tax change
* Fix taxnotification.amount templates
* Update .env.docker-compose
* Update .env.local
* Clippy
* Fmt
* Query cache
* Periodically update tax amount on upcoming charges
* Fix queries
* Skip indexing tax amount on charges if no charges to process
* chore: query cache, clippy, fmt
* Fix a lot of things
* Remove test code
* chore: query cache, clippy, fmt
* Fix money formatting
* Fix conflicts
* Extra documentation, handle tax association properly
* Track loss in tax drift
* chore: query cache, clippy, fmt
* Add subscription.id variable
* chore: query cache, clippy, fmt
* chore: query cache, clippy, fmt
2025-09-25 11:29:29 +00:00
François-Xavier Talbot
902d749293
[DO NOT MERGE] Email notification system ( #4338 )
...
* Migration
* Fixup db models
* Redis
* Stuff
* Switch PKs to BIGSERIALs, insert to notifications_deliveries when inserting notifications
* Queue, templates
* Query cache
* Fixes, fixtures
* Perf, cache template data & HTML bodies
* Notification type configuration, ResetPassword notification type
* Reset password
* Query cache
* Clippy + fmt
* Traces, fix typo, fix user email in ResetPassword
* send_email
* Models, db
* Remove dead code, adjust notification settings in migration
* Clippy fmt
* Delete dead code, fixes
* Fmt
* Update apps/labrinth/src/queue/email.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com >
* Remove old fixtures
* Unify email retry delay
* Fix type
* External notifications
* Remove `notifications_types_preference_restrictions`, as user notification preferences is out of scope for this PR
* Query cache, fmt, clippy
* Fix join in get_many_user_exposed_on_site
* Remove migration comment
* Query cache
* Update html body urls
* Remove comment
* Add paymentfailed.service variable to PaymentFailed notification variant
* Fix compile error
* Fix deleting notifications
* Update apps/labrinth/src/database/models/user_item.rs
Co-authored-by: Josiah Glosson <soujournme@gmail.com >
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com >
* Update apps/labrinth/src/database/models/user_item.rs
Co-authored-by: Josiah Glosson <soujournme@gmail.com >
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com >
* Update Cargo.toml
Co-authored-by: Josiah Glosson <soujournme@gmail.com >
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com >
* Update apps/labrinth/migrations/20250902133943_notification-extension.sql
Co-authored-by: Josiah Glosson <soujournme@gmail.com >
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com >
* Address review comments
* Fix compliation
* Update apps/labrinth/src/database/models/users_notifications_preferences_item.rs
Co-authored-by: Josiah Glosson <soujournme@gmail.com >
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com >
* Use strfmt to format emails
* Configurable Reply-To
* Configurable Reply-To
* Refactor for email background task
* Send some emails inline
* Fix account creation email check
* Revert "Use strfmt to format emails"
This reverts commit e0d6614afe51fa6349918377e953ba294c34ae0b.
* Reintroduce fill_template
* Set password reset email inline
* Process more emails per index
* clippy fmt
* Query cache
---------
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Josiah Glosson <soujournme@gmail.com >
2025-09-15 19:02:29 +00:00
François-Xavier Talbot
3fc55184a7
Support alternative read-replica PgPool ( #4374 )
...
* Add ReadOnlyPgPool
* Clippy, fmt
2025-09-14 15:44:52 +00:00
Josiah Glosson
62de07e4e6
Version updates ( #3626 )
...
* Update some Labrinth dependencies
* Update some Labrinth dependencies
* Update some Labrinth dependencies
* Update zip in Labrinth
* Update itertools in Labrinth
* Update validator in labrinth
* Update thiserror in labrinth
* Update rust_decimal, redis, and deadpool-redis in labrinth
* Update totp-rs and spdx in labrinth
* Update maxminddb and tar in labrinth
* Update sentry and sentry-actix in labrinth
* Update image in labrinth
* Update lettre in labrinth
* Update derive-new and rust_iso3166 in labrinth
* Update async-stripe and json-patch in labrinth
* Update clap and iana-time-zone in labrinth
* Update labrinth to Rust 2024
* Cargo fmt
* Just do a full cargo update
* Update daedelus to Rust 2024
* Update daedelus_client to Rust 2024
* Set the formatting edition to 2024
* Fix formatting
IntelliJ messed up my formatting
2025-05-09 12:27:55 +00:00
Josiah Glosson
c998d2566e
Allow multiple labrinth instances ( #3360 )
...
* Move a lot of scheduled tasks to be runnable from the command-line
* Use pubsub to handle sockets connected to multiple Labrinths
* Clippy fix
* Fix build and merge some stuff
* Fix build fmt
:
---------
Signed-off-by: Jai Agrawal <18202329+Geometrically@users.noreply.github.com >
Co-authored-by: Jai A <jaiagr+gpg@pm.me >
Co-authored-by: Jai Agrawal <18202329+Geometrically@users.noreply.github.com >
2025-03-15 07:28:20 -07:00
Jai A
8dd955563e
Fix clippy errors + lint, use turbo CI
2024-10-18 16:07:35 -07:00
Jai A
e3a3379615
move to monorepo dir
2024-10-16 14:11:42 -07:00