yesodweb / yesodweb/persistent
Quasi not validating OnDeleteCascade
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 486
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
I tried adding 'OnDeleteCascadeon a model definition but typedonDeleteCascade(starting with a lower case).
Of course, the delete cascade feature didn'w work. However I was suprised that the compiler didn't winge about it.
I don't know if adding something after a reference declaration is invalid or mean something, but letting people writeonDeleteCascade` is misleading. I would normally not test things like that. I only did it because I was unsure if and how it would work (first time I am using it).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing a Persistent model definition using the misspelled onDeleteCascade, then trace the model quasiquoter's validation path. Done means the invalid spelling is rejected by the compiler or an equivalent clear validation error is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100