Repository navigation
fix(db): convert remaining status strings to enums - #388
Open
samuelelijah585 wants to merge 2 commits into
Open
samuelelijah585 wants to merge 2 commits into
samuelelijah585 wants to merge 2 commits into
Conversation
.env is read by dotenv.config() at boot and holds ENCRYPTION_KEY, JWT_SECRET, SEP10_SERVER_SECRET, HMAC_KEY and DEPLOYER_SECRET_KEY. None of the .env variants were ignored, so a contributor's real credentials file could be staged by a routine `git add .` with nothing to warn anyone. Ignore the .env variants and keep the committed example file trackable. No .env file is tracked at HEAD and no .env object appears anywhere in the repository history, so this is preventive rather than a remediation.
|
@samuelelijah585 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! 🚀 |
Abdul-dev-creator
force-pushed
the
main
branch
2 times, most recently
from
October 18, 2026 18:47
af3277b to
a2a4455
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR converts the remaining free-form status/state columns in the Prisma schema to enums, migrates existing rows, and replaces hand-written string literals at the write sites with the generated enum types. It follows the pattern already established by
DeploymentStatusand the earlier enum work in #121.Related Issue
Changes
🗄️ Schema & Migration
[MODIFY]
prisma/schema.prismaStringto the corresponding enum:Contribution.status(PENDING,COMPLETED,FAILED)Payout.status(COMPLETED)PayoutOrderLog.reason(REORDER,SKIP_DEFAULT)MemberExitLog.type(LEAVE,KICK)SecretAccessLog.operation(SEND,CONTRIBUTE,TRUSTLINE,KEY_ROTATION)[ADD]
prisma/migrations/20260901000000_convert_status_strings_to_enums/migration.sql🔧 Write Sites
[MODIFY]
src/services/payout.service.tsstatus: 'COMPLETED'andreason: 'SKIP_DEFAULT'with the generated enum values.[MODIFY]
src/services/group-exit.service.tstype: 'LEAVE'with the generated enum value.[MODIFY]
src/utils/audit-logger.tsSecretAccessLogoperation enum instead of string literals.✅ Tests
src/__tests__/payout.service.test.tsVerification Results
schema.prismapayout.service.ts,group-exit.service.ts,audit-logger.tspayout.service.test.tsnpm testpasses locallyCloses #249