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.
  1. Added an id primary key to all composite key tables
    AdminRole, UserRole, RoleFeature, DataI18n, DataMapping, and UniqueData now use an auto increment id as 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 use Long as the id type and provide lookup and delete methods by the unique key, such as findByRoleIdAndUserId(), findByDataTypeAndDataIdAndUniqueKey(), and deleteByMappingNameAndFromDataIdAndToDataId(). 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.
  2. Added an API to get the current Admin's Permissions
    Added 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. Added GET /api/v1/admins/me/permissions/version, which returns only a version that changes when the Admin's Roles or the Role Features change, and RoleFeatureService now provides getRoleFeaturesVersion(...). Applications can cache Permissions on the client and reload them only when the version changes.
  3. Added an API to log in to Admin
    Added POST /api/v1/login, which receives username and password and returns an Admin Access Token. Wrong credentials return status 401 with error details, allowing external tools and apps to log in to Admin without going through the login page.
  4. Added the environment type setting
    Added the EnvironmentType enum with LOCAL, ALPHA, BETA, STAGING, and PRODUCTION, selectable in the regular settings page of Admin. Applications can read it with SettingService.getEnvironmentType() or GET /api/v1/settings/environment-type, and the default value is PRODUCTION, making it easy to change behavior for each environment.
  5. Added the app logo setting
    Admins 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, or GET /api/v1/settings/app-logo, and update or remove it with PUT and DELETE on /api/v1/settings/app-logo.
  6. Added multi-language support for the setup page
    The first Admin setup page is now available in more than 50 languages and automatically selects the language from the browser's Accept-Language header. The language chosen during setup is saved as the default Admin language, so new installations start in the right language without any extra configuration.
  7. Improved language management in Admin
    Admins 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_url Event, 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.
  8. Added Arabic, Japanese, and Korean to Web
    The 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.
  9. Improved guidance in Admin
    Before 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.
  10. 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 ....