generated from nhcarrigan/template
feat: add Prisma ORM #5
Open
nerdychara
wants to merge 3 commits from
feat/add-prisma into main
pull from: feat/add-prisma
merge into: nhcarrigan:main
nhcarrigan:main
nhcarrigan:dependencies/update-typescript
nhcarrigan:dependencies/update--types-node
nhcarrigan:dependencies/update-eslint
nhcarrigan:dependencies/update-vitest
nhcarrigan:dependencies/update--vitest-coverage-istanbul
nhcarrigan:dependencies/update-discord.js
Labels
Clear labels
aspect
code
Concerns the software code in the repository
aspect
dx
Concerns developers' experience with the codebase
aspect
interface
Concerns end-users' experience with the software
aspect
text
Concerns the documentation material in the repository
contribute
good first issue
A great opportunity for a team member to learn a new codebase
contribute
help wanted
Open for anyone on our team to grab.
contribute
staff only
Restricted to our executive leadership.
goal
addition
Addition of new feature
goal
fix
Bug fix
goal
improvement
Improvement to an existing feature
points
1
Very simple issue requiring minimal effort and complexity.
points
13
Extremely complex issue representing major undertakings. Should be broken down into smaller pieces.
points
2
Simple issue that requires a bit more thought or investigation.
points
3
Moderate complexity issue requiring more substantial work.
points
5
Complex issue requiring significant effort and expertise.
points
8
Very complex issue requiring extensive work and deep expertise.
priority
critical
1
Must be fixed ASAP
priority
high
2
Stalls work on the project or its dependents
priority
low
4
Low priority and doesn't need to be rushed
priority
medium
3
Not blocking but should be fixed soon
priority
none
5
No priority, should only be performed when a developer is available
status
awaiting triage
Has not been triaged & therefore, not ready for work
status
blocked
Blocked and therefore not ready for work
status
discarded
Will not be worked on
status
discontinued
Not suitable for work as repo is in maintenance
status
label work required
Needs proper labelling before it can be worked on
status
ready for dev
Ready for work
status
ticket work required
Needs more details before it can be worked on
talk
discussion
Open for discussions and feedback
talk
question
Can be resolved with an answer
time
1 day
Approximately one full day of development work.
time
1-2 weeks
One to two weeks of focused development effort.
time
2-3 days
Two to three days of development effort.
time
4-5 days
Approximately one week of development work.
time
<1 day
Less than one day of focused work. Quick fixes or simple tasks.
time
>2 weeks
More than two weeks of development work. Must be broken down into smaller pieces.
No Label
Milestone
No items
No Milestone
Assignees
gurkirat
hanna (Hanna Rose)
hikari (Hikari)
minori (Minori)
naomi (Naomi Carrigan)
rain
teklu
tim
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: nhcarrigan/maribelle#5
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "feat/add-prisma"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Explanation
This allows the opportunity to use less hard-coded values for this particular bot. This PR should not be merged until Naomi creates a variable for the bot to use.
Issue
1
Attestations
Dependencies
Style
Tests
Documentation
No response
Versioning
Major - My pull request introduces a breaking change.
The
generatedfolder was moved back where it originally was.https://git.nhcarrigan.com/nhcarrigan/liora is a decent example of our Prisma approach.
@@ -1,2 +1,4 @@node_modulesprodgenerated/prismaPrisma should not be creating this at all.
@@ -6,0 +5,4 @@"eslint.validate": ["typescript"],"prisma.pinToPrisma6": trueAlso not something we set - the version is managed via the package.json file.
@@ -28,2 +29,3 @@"discord.js": "14.21.0","node-schedule": "2.1.1""node-schedule": "2.1.1","prisma": "6.19"This does not look like a proper semver. Did you install correctly?
@@ -0,0 +5,4 @@// Try Prisma Accelerate: https://pris.ly/cli/accelerate-initgenerator client {provider = "prisma-client"This should be
prisma-client-js, I believe.@@ -0,0 +6,4 @@generator client {provider = "prisma-client"output = "../generated/prisma"We should not need this at all.
@@ -0,0 +14,4 @@url = env("DATABASE_URL")}model ServerData {We should index this by serverId to optimise fetches, I think.
@@ -22,6 +23,7 @@ process.on("unhandledRejection", (error) => {process.on("uncaughtException", (error) => {if (error instanceof Error) {void logger.error("Uncaught Exception", error);void prisma.$disconnect();This should not be necessary, why are we disconnecting the database on any uncaught exceptions?
@@ -0,0 +1,12 @@import { defineConfig } from "prisma/config";We should not need a config file at all. The schema handles all of the config we need.
@@ -1,7 +1,7 @@{These changes are incorrect and should be reverted.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.