Entities 0.7.0: A separate settings permission and support for PhoenixKit 3
Entities 0.7.0 splits the Entities settings page out into its own permission, works with PhoenixKit 3, and hands core what it needs to check the module’s two tables and its stored files.
A permission for the settings page
The Entities settings page can switch the whole system on and off, change file mirroring for every entity, export files and import files that overwrite definitions and records. It used to need only the everyday entities permission. It now needs a second one, Change Entities settings, listed with the module’s permissions.
Without it, the Entities tab under Settings is not offered, and opening the page sends the user to the entities list with “You do not have permission to change Entities settings.” Every action on the page checks the permission again, not only the first load. The same goes for the Backup Settings section of the entity form: the Export Now button is hidden and the two sync switches are disabled.
Nobody loses access on the upgrade. At the first boot, every role that already holds entities is given the new permission once. After that, a role that gets entities later does not get the settings permission with it, and a revoke by the Owner sticks.
Works with PhoenixKit 3
The module now accepts PhoenixKit from 2.65.0 up to, but not including, 4.0. PhoenixKit 3 no longer creates module tables; the module’s own migration chain builds its two tables.
Repair, doctor and orphan files
The module now gives core a description of its two tables, so mix phoenix_kit.repair and mix phoenix_kit.doctor check them again. Repair only adds what is missing and reports the rest.
It also tells core’s orphan-file check that phoenix_kit_entity_data can point at stored files. The check is the same one core used before, moved into the module, so nothing new counts as an orphan.
Upgrading
Update the dependency; PhoenixKit 2.65.0 or later is required. There is no migration. If staff with the entities permission should not import, export or change mirroring, remove Change Entities settings from their roles after the first boot.
Full release notes: Entities 0.7.0
0.7.0 · 27 October 2026
Changed
- Core pin widened to
>= 2.65.0 and < 4.0.0: works with core 3.x (core 3.0 stops creating the module tables; this module’s own chain builds its tables). The floor is the first core with thefile_references/0andexpected_schema/0callbacks, which now carry@impl PhoenixKit.Module.
Added
- The module supplies the manifest of its 2 tables (
expected_schema/0,PhoenixKitEntities.ExpectedSchema), somix phoenix_kit.repairandmix phoenix_kit.doctorcheck and repair them again, now from the module’s own chain instead of core’s manifest. Generated fromPhoenixKitEntities.Migrationsby core’sdev_docs/squash/generate_module_manifest.exs, never edited by hand. Core uses it from the first release after 2.64.1; before that nothing reads it. Repair is additive (it creates what is missing and reports the rest) and checks the tables only while the database is at the chain’s current version. No migration. - The module now tells core’s orphan-file check which of its rows point at a stored file (
file_references/0, inFileReferences):phoenix_kit_entity_data. The SQL moved here verbatim from core’sPhoenixKit.Modules.Storage; a test compares it with core’s own copy. Core reads the callback from the first release after 2.64.1; before that, core’s own list stays in force. No migration, no change in what counts as an orphan.
Entities 0.7.0. Install or update: {:phoenix_kit_entities, "~> 0.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.