iver-wharf / wharf-api

Wharf backend written in Go
MIT License
1 stars 0 forks source link

Upgrade GORM #164

Open applejag opened 2 years ago

applejag commented 2 years ago

We're using v1.22.5 Latest is v1.23.2

This breaks compatibility with Sqlite & Postgres drivers, so those has to be updated as well.

In GORM v1.23 they are rejecting .Preload combined with .Limit, which we're using in GET /api/build and GET /api/project (and possibly others). This needs to be converted to .Joins clauses instead.

I made a small attempt and noticed that other stuff broke as well, such as our orderby package. Word of caution: the upgrade doesn't seem to be without sweat.