-
Notifications
You must be signed in to change notification settings - Fork 21
update for persistent 2.17 #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
serversession-backend-persistent/serversession-backend-persistent.cabal
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the serversession-backend-persistent library to support persistent 2.17 by making necessary code changes and updating dependency bounds. The changes are driven by upstream persistent library modifications that introduced a new entitySpan field in the EntityDef record.
Changes:
- Updated Stack LTS resolver from 19.5 to 24.11 to include persistent 2.17
- Added
entitySpanfield toEntityDefrecord construction in the PersistEntity instance - Updated persistent dependency upper bound from 2.15.0.0 to 2.18.0.0
- Added import of
Database.Persist.TH.Internalin example application to supportembedEntityDefs
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| stack.yaml.lock | Updated LTS snapshot from 19.5 to 24.11 with new persistent versions |
| stack.yaml | Updated resolver to lts-24.11 |
| serversession-backend-persistent/src/Web/ServerSession/Backend/Persistent/Internal/Impl.hs | Added entitySpan = Nothing field to EntityDef record to comply with persistent 2.17 API |
| serversession-backend-persistent/serversession-backend-persistent.cabal | Bumped version to 2.0.4 and updated persistent upper bound to < 2.18.0.0 |
| serversession-backend-persistent/changelog.md | Added changelog entry for version 2.0.4 |
| examples/serversession-example-yesod-persistent/Application.hs | Added import of Database.Persist.TH.Internal module for embedEntityDefs function |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
serversession-backend-persistent/src/Web/ServerSession/Backend/Persistent.hs
Show resolved
Hide resolved
|
Oh, I want to pass CI or write test bug. |
525123f to
a258ae8
Compare
|
I made some more changes to fix compiler warnings. I hope CI works now. I can not run the test suite locally because it depends on a running postgresql database. |
ncaq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve.
@m1-s
Are you ready merge?
|
yes |
Update for changes introduced by yesodweb/persistent#1569