What's new in EzyPlatform 1.5.7?
This release focuses on moving every table to a single id primary key, adding new Admin APIs for login, Permissions and app settings, and making EzyPlatform easier to use in many languages from the very first setup step.
Important:
right after upgrading to EzyPlatform 1.5.7, please immediately update all plugins and themes to their latest versions.
This release changes the structure of several database tables, which may be a breaking change for older plugin versions and cause unexpected errors if they are not updated.
-
Added an id primary key to all composite key tables
AdminRole,UserRole,RoleFeature,DataI18n,DataMapping, andUniqueDatanow use an auto incrementidas their primary key, while the old composite keys are kept as unique keys, so duplicate data is still prevented and future sharding becomes easier. Their repositories now useLongas the id type and provide lookup and delete methods by the unique key, such asfindByRoleIdAndUserId(),findByDataTypeAndDataIdAndUniqueKey(), anddeleteByMappingNameAndFromDataIdAndToDataId(). Existing databases are upgraded automatically, and the SDK services keep their insert or update behavior, but plugins that save a newly created entity directly through a repository should look up the existing record by its unique key first. -
Added an API to get the current Admin's PermissionsAdded
GET /api/v1/admins/me/permissions, which returns whether the current Admin is a super or special Admin and the list of accessible Features with their URIs and HTTP methods. AddedGET /api/v1/admins/me/permissions/version, which returns only a version that changes when the Admin's Roles or the Role Features change, andRoleFeatureServicenow providesgetRoleFeaturesVersion(...). Applications can cache Permissions on the client and reload them only when the version changes. -
Added an API to log in to AdminAdded
POST /api/v1/login, which receivesusernameandpasswordand returns an Admin Access Token. Wrong credentials return status401with error details, allowing external tools and apps to log in to Admin without going through the login page. -
Added the environment type settingAdded the
EnvironmentTypeenum withLOCAL,ALPHA,BETA,STAGING, andPRODUCTION, selectable in the regular settings page of Admin. Applications can read it withSettingService.getEnvironmentType()orGET /api/v1/settings/environment-type, and the default value isPRODUCTION, making it easy to change behavior for each environment. -
Added the app logo settingAdmins can now choose an app logo from the media library in the website settings page. Applications can read it with
SettingService.getAppLogoId(),GET /api/v1/settings/app-logo-id, orGET /api/v1/settings/app-logo, and update or remove it withPUTandDELETEon/api/v1/settings/app-logo. -
Added multi-language support for the setup pageThe first Admin setup page is now available in more than 50 languages and automatically selects the language from the browser's
Accept-Languageheader. The language chosen during setup is saved as the default Admin language, so new installations start in the right language without any extra configuration. -
Improved language management in AdminAdmins can now choose a default Admin language for Admins who have not selected one, and language names are shown in the current language together with their native name. Added the
get_install_language_pack_urlEvent, allowing a plugin to provide the URL behind the new "Install more languages" option. When no plugin handles the Event, Admin shows a message suggesting a plugin that supports installing language packs. -
Added Arabic, Japanese, and Korean to WebThe Web messages of EzyPlatform are now available in Arabic, Japanese, and Korean, in addition to the existing languages. Together with the right-to-left support from the previous release, websites can now serve these languages without having to translate the platform messages themselves.
-
Improved guidance in AdminBefore and after installing a new EzyPlatform version, Admin now reminds Admins to update plugins and themes to the latest versions to avoid errors caused by version incompatibility, with an option to stop showing the reminder. The regular, website, and encryption settings pages also show a short guide under each field, explaining what the setting does and which values are accepted.
-
Improved number and text helpers in Web
ezyweb.formatNumberWithCommas()now accepts Arabic and Persian digits and separators.ezyweb.removeHtmlTagAndSub()now adds the ellipsis only when the text is actually truncated, so short content is no longer followed by an unnecessary....