MyGit

2024-10-01

epicweb-dev/epic-stack

版本发布时间: 2024-10-01 22:54:20

epicweb-dev/epic-stack最新发布版本:2024-10-28(2024-10-29 05:28:34)

The biggest change since the last release is in this commit: https://github.com/epicweb-dev/epic-stack/commit/343dc5a7a19ae74e75ab884b4a38d99814e8087f

You can check this PR for context on the change: https://github.com/epicweb-dev/epic-stack/pull/854 (as well as the first attempt to fix this https://github.com/epicweb-dev/epic-stack/pull/834)

The short version of the motivation here was an issue around how the permissions and roles are added to the database. Before this change they came from the seed script. But this is not correct. They should be a part of the migration since they need to be present for new users to be signed up. Before this change, you would have to manually create those roles and permissions in production before you could create users.

So we've moved that into the migration script.

Additionally, we updated the cleanupDb function to actually empty the database and then run all the migrations. This happens between every single test. It's remarkably fast, but could potentially slow down as a codebase grows. Please let us know if this is the case for you and we can evaluate another way to accomplish the goal here (I have some ideas that involve copying a fresh database for each test... maybe we should just do that now...)... Yeah, that's what we did 😆 https://github.com/epicweb-dev/epic-stack/commit/7b16bdc8800efba13fa5949133b06b6b9ce725a6 Check the next release: https://github.com/epicweb-dev/epic-stack/releases/tag/2024-10-01.2

If you're trying to keep your app up-to-date, this is one commit you'll want to do that with for sure.

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-10-01发行的版本