Skip to content

Conversation

@m1-s
Copy link
Contributor

@m1-s m1-s commented Jan 8, 2026

Update for changes introduced by yesodweb/persistent#1569

Copy link

Copilot AI left a 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 entitySpan field to EntityDef record 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.Internal in example application to support embedEntityDefs

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.

@ncaq ncaq added Priority: High Type: Dependencies Dependency issues or Changes to dependency files labels Jan 12, 2026
@ncaq
Copy link
Collaborator

ncaq commented Jan 15, 2026

Oh, I want to pass CI or write test bug.

@m1-s m1-s force-pushed the update branch 3 times, most recently from 525123f to a258ae8 Compare January 15, 2026 15:53
@m1-s
Copy link
Contributor Author

m1-s commented Jan 15, 2026

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.

Copy link
Collaborator

@ncaq ncaq left a 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?

@m1-s
Copy link
Contributor Author

m1-s commented Jan 18, 2026

yes

@ncaq ncaq merged commit 71e2bd8 into yesodweb:master Jan 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: High Type: Dependencies Dependency issues or Changes to dependency files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants