Skip to content

Remove @ts-nocheck: auth, users, transactions, properties - #1144

Merged
nanaf6203-bit merged 62 commits into
MettaChain:mainfrom
tolulopedd26:tolulopedd26/remove-ts-nocheck-auth-users-transactions-properties
Aug 26, 2026
Merged

Remove @ts-nocheck: auth, users, transactions, properties#1144
nanaf6203-bit merged 62 commits into
MettaChain:mainfrom
tolulopedd26:tolulopedd26/remove-ts-nocheck-auth-users-transactions-properties

Conversation

@tolulopedd26

Copy link
Copy Markdown
Contributor

Removes @ts-nocheck from the auth, users, transactions, and properties modules (94 files) and fixes the strict-mode errors it surfaced. No behaviour change.

Remaining repo-wide @ts-nocheck count after this PR: 170.

Closes #1022

Closes #1023

Closes #1024

Closes #1025

portableDD and others added 5 commits August 25, 2026 21:11
Restore strict type checking to these modules and fix the errors it surfaced
(missing await on queue lookup, unknown catch types, non-existent
DocumentBuilder.setOpenAPI, broken AuditService import → PrismaService).

Closes MettaChain#1038
Closes MettaChain#1039
Closes MettaChain#1040
Closes MettaChain#1041

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NJauhMw3eEcE45J1hUX2aZ
…ations

Restore strict type checking and fix surfaced errors: sync FraudPattern enum
with the Prisma schema, type unknown catch errors, remove a duplicate/buggy
gateway sendToUser, fix a blockchainHash field typo and a preferences cast.

Closes MettaChain#1034
Closes MettaChain#1035
Closes MettaChain#1036
Closes MettaChain#1037

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NJauhMw3eEcE45J1hUX2aZ
…losed blockchain

- RateLimitAdminController: require authenticated ADMIN (JwtAuthGuard+RolesGuard) (MettaChain#1018)
- AvatarUploadController: require authentication on all routes (MettaChain#1019)
- TrackingController: validate redirect scheme + host allow-list (fail closed) (MettaChain#1020)
- BlockchainService: refuse placeholder RPC URL; run disabled when unset (MettaChain#1021)

Closes MettaChain#1018
Closes MettaChain#1019
Closes MettaChain#1020
Closes MettaChain#1021

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NJauhMw3eEcE45J1hUX2aZ
…-detection tests

- Remove @ts-nocheck from documents and search; type the search-filter builder
  (range/select/date filters) and fix an unawaited async filter combination (MettaChain#1026, MettaChain#1027)
- Add AnalyticsService unit tests (normal/empty/invalid window) (MettaChain#1029)
- Add DuplicateDetectionService text-similarity unit tests (exact/near/distinct) (MettaChain#1028)

Closes MettaChain#1026
Closes MettaChain#1027
Closes MettaChain#1028
Closes MettaChain#1029

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NJauhMw3eEcE45J1hUX2aZ
Restore strict type checking to the four largest modules and fix the surfaced
errors: complete SearchPropertiesDto (sort/geo/category fields), narrow i18n
language args, inject PrismaService in property-expiry, type unknown catch
errors and header values, import redactEmail, and de-TypeORM a dead entity.

Closes MettaChain#1022
Closes MettaChain#1023
Closes MettaChain#1024
Closes MettaChain#1025

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NJauhMw3eEcE45J1hUX2aZ
@drips-wave

drips-wave Bot commented Aug 26, 2026

Copy link
Copy Markdown

@tolulopedd26 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

temiport25 and others added 24 commits August 26, 2026 11:19
The @UseGuards(JwtAuthGuard) added to AvatarUploadController requires
AuthService in the DI container. Without this mock, NestJS fails to
compile the test module.
soundsng and others added 17 commits August 26, 2026 11:48

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, thanks for getting this over the line!

nanaf6203-bit and others added 11 commits August 26, 2026 13:27
…-1056-1057

Remove @ts-nocheck from commissions and support-tickets, fix audit storage and unsubscribe URL
…1058-1059-1060-1061

Add database and support-tickets tests, remove @ts-nocheck from email and property-views
…-1064-1065

Add unit and e2e test coverage for backup, content, search, and email modules
…51-1052-1053

Remove example controllers, add content auth guard, add metrics and email-digest tests
…1044-1045

Add unit tests for property-comparison, sessions, open-house, and neighborhoods modules
…046-1047-1048-1049

Add unit tests for integrations, favorites, dashboard, and archive modules
…earch-nocheck-analytics-dup-tests

documents/search @ts-nocheck removal + analytics/dup-detection tests
…y-auth-openredirect-blockchain-default

Security: admin/avatar auth, open-redirect fix, blockchain fail-closed
…emove-ts-nocheck-openhouse-fraud-notif-integrations

Remove @ts-nocheck: open-house, fraud, notifications, integrations
…ts-nocheck-config-admin-trust-email

Remove @ts-nocheck: config, admin, trust-score, email-digest
@nanaf6203-bit
nanaf6203-bit merged commit 135d112 into MettaChain:main Aug 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet