Nxtgauge Backend Services
|
All checks were successful
build-and-release / build (cron) (push) Successful in 55s
build-and-release / build (catering-services) (push) Successful in 2m7s
build-and-release / build (companies) (push) Successful in 2m14s
build-and-release / build (fitness-trainers) (push) Successful in 1m41s
build-and-release / build (customers) (push) Successful in 2m58s
build-and-release / build (developers) (push) Successful in 2m28s
build-and-release / build (employees) (push) Successful in 2m34s
build-and-release / build (gateway) (push) Successful in 1m52s
build-and-release / build (graphic-designers) (push) Successful in 2m8s
build-and-release / build (jobs) (push) Successful in 1m49s
build-and-release / build (job-seekers) (push) Successful in 2m31s
build-and-release / build (makeup-artists) (push) Successful in 1m52s
build-and-release / build (social-media-managers) (push) Successful in 1m46s
build-and-release / build (photographers) (push) Successful in 2m32s
build-and-release / build (payments) (push) Successful in 3m24s
build-and-release / build (tutors) (push) Successful in 2m38s
backend-integration-tests / ai-credits (push) Successful in 46s
build-and-release / build (ugc-content-creators) (push) Successful in 3m6s
build-and-release / build (video-editors) (push) Successful in 2m37s
build-and-release / build-db-migrate (push) Successful in 2m19s
build-and-release / build (users) (push) Successful in 5m8s
apps/payments/src/admin.rs (tax rules, ledger, orders, credits, invoice
admin endpoints) was written but never actually shipped: no `mod
admin;` in main.rs, no `wallet` crate dependency in Cargo.toml, and its
routes used axum 0.6-style `:id` path syntax (this workspace is on
0.8, which requires `{id}` and panics on `:id` at router-build time).
Meanwhile apps/gateway explicitly forwards /api/admin/invoices*,
/api/admin/tax, /api/admin/orders, /api/admin/ledger, and
/api/admin/credits/* to this service, so every one of those admin
endpoints has been 404ing in production. Fixed all three issues and
merged the router in. Also fixed three inline SQL queries
(list_ledger x2, get_credit_ledger) still selecting the nonexistent
`type`/`reason` columns this session's earlier wallet-crate fix
already corrected everywhere else -- these went unnoticed until now
because dynamic SQL isn't checked at compile time, and the file had
literally never been compiled before.
apps/customers/src/handlers.rs submit_requirement had no ownership
check -- every sibling handler on the same resource (get_requirement,
update_requirement, mark_requirement_urgent) checks
req.created_by_user_id against auth.user_id; this one didn't, so any
authenticated customer could submit another customer's DRAFT
requirement into the approval queue by id, with the verification case
and email misattributed to the caller instead of the actual owner.
Removed ProfessionalRepository::try_reserve_tracecoins/
try_debit_reserved_tracecoins/try_release_reserved_tracecoins
(crates/db/src/models/professional.rs) -- a dead, unreferenced
duplicate of TracecoinWalletRepository's already-correct
reserve/debit/release, whose ledger INSERTs used the same nonexistent
`type`/`reason` columns and would have errored at runtime if anything
had ever called it. A second implementation of the same money-moving
logic is itself the risk, so removed rather than fixed in place.
Added the missing FK constraints on lead_requests.lead_id and
.user_role_profile_id (only professional_user_id/customer_user_id had
one) -- app code always populates them correctly today, but nothing
DB-side stopped a future bug from writing a dangling reference.
Centralized the 18% GST rate (invoice::STANDARD_GST_RATE_PERCENT)
instead of the literal 18.0 duplicated at both invoice-generation call
sites.
Not fixed, flagged instead: the admin reconcile_credits report
compares each wallet's all-time balance against a ledger sum restricted
to a 30-day-by-default window -- objectively wrong, but the deeper
problem is that tracecoin_ledger.amount's sign convention differs
between writers (TracecoinWalletRepository stores unsigned magnitudes
keyed by transaction_type; crates/wallet stores signed balance deltas
directly), so a correct "balance == sum(ledger)" reconciliation needs
that inconsistency resolved first -- not a quick fix, a design
decision on the write side.
|
||
|---|---|---|
| .cargo | ||
| .forgejo | ||
| .gitea/workflows | ||
| .github/workflows | ||
| .mavis/plans | ||
| .sqlx | ||
| apps | ||
| crates | ||
| docs | ||
| load-tests | ||
| scripts | ||
| tests | ||
| .env.example | ||
| .gitignore | ||
| cargo-deny.toml | ||
| Cargo.lock | ||
| Cargo.toml | ||
| companies.pid | ||
| customers.pid | ||
| deny.toml | ||
| DEPLOYMENT_OPTIMIZATION.md | ||
| docker-compose.yml | ||
| Dockerfile.base | ||
| Dockerfile.fast | ||
| Dockerfile.from-binary | ||
| Dockerfile.migrate | ||
| Dockerfile.optimized | ||
| Dockerfile.simple | ||
| Dockerfile.superfast | ||
| Dockerfile.template | ||
| Dockerfile.test | ||
| Dockerfile.ultrafast | ||
| Dockerfile.working | ||
| gateway.pid | ||
| job_seekers.pid | ||
| k8s-migration-job.yaml | ||
| README.md | ||
| start-services.pid | ||
| start-services.sh | ||
| TESTING_STRATEGY.md | ||
| users.pid | ||
| wir.md | ||
NXTGAUGE Backend Rust
Rust migration target for nxtgauge-nov-2025-backend, preserving the same microservices and request flow.
Target Service Topology
gateway(HTTP API)users(identity, runtime roles, onboarding, approvals)companiescustomersprofessionalsjobseekers
Migration Policy
- Keep contracts stable (REST + proto semantics).
- Keep runtime-config and onboarding schema behavior unchanged during parity phases.
- Replace service implementations one by one.
See docs/MIGRATION_MASTER_PLAN.md for full staged plan.
CI (Woodpecker)
Required secrets:
REGISTRY_USERNAMEREGISTRY_PASSWORD
See .forgejo/workflows/README.md for details.