What's new in EzyPlatform 1.4.8?
This release expands the Page Token-based pagination system across multiple data types in EzyPlatform, significantly improves Admin/User Role management and search capabilities, and introduces additional filtering, sorting, and database optimizations for DataI18n, DataRecordCount, Projects, and Script execution history.
-
Expanded Page Token-based paginationPage Token-based pagination has been extended to Admin Role names, roles assigned to Admins, User Role names, roles assigned to Users,
DataI18n,DataRecordCount, the Project list in Admin, and Script execution history. This mechanism provides more efficient and consistent navigation through large datasets. -
Added shared Filter and Pagination APIsAdded corresponding Filter, Pagination Parameter, Parameter Converter, Repository, and Service classes for the Admin, Web, and HTTP SDK environments, standardizing data filtering and pagination across EzyPlatform components.
-
Expanded data sorting optionsThe platform now supports additional sorting criteria for Roles, Data, Projects, and Script History. Role names can be sorted by ID or priority; Role relationships by
roleIdandadminId/userId;DataRecordCountby ID, record count, or latest count time; andDataI18nby data type, data ID, language, or field name. Projects can be sorted by project name, while Script History can be sorted by module, module type, or script name. -
Improved Admin Role and User Role managementRole management pages now support keyword search, configurable limits from 30 to 500 results per page, and navigation to the first, previous, next, or last page. The interface also displays the current result count and total number of Roles, making large Role lists easier to manage.
-
Added search support for Role namesAdded indexing and keyword extraction for Admin Role and User Role names. This mechanism provides the indexed data required for keyword search on the updated Role management pages.
-
Standardized AdminRoleServiceShared Admin Role query functionality has been moved into
AdminRoleServiceandDefaultAdminRoleService. The shared APIs include checking whether a Role exists, retrieving Roles by ID or name, retrieving Roles assigned to an Admin, obtaining Role ID sets, validating Role ID lists, querying Roles by priority, and determining the lowest priority. -
Moved AdminRoleNameModel to the Common SDK
AdminRoleNameModelhas been moved from the Admin module to the Common SDK so it can be consistently reused across the Admin, Web, and Socket environments. -
Extended DataRecordCountThe Common SDK now includes
DataRecordCountModelalong with conversion support from theDataRecordCountentity to the shared model.DataRecordCountRepositoryhas also been extended withfindByDataName,countByDataName, anddeleteByDataName. -
Added filtering and pagination for DataRecordCountRecord count statistics can now be filtered and paginated by data type, data name, record type, record count range, and count time. This provides more flexible querying and management of statistical data as the number of records grows.
-
Optimized database indexesAdded the
(updated_at, id)index toezy_admin_role_namesandezy_user_role_names. Theezy_data_record_countstable now includes(last_counted_at, id)and(record_count, id)indexes to improve the efficiency of the new pagination and sorting queries. -
Added a database upgrade scriptAdded
ezyplatform-alter-tables-1.sqlto automatically upgrade the required indexes for existing Role tables when updating to the new version. -
Changed the Admin Role API response
GET /api/v1/admin/rolesno longer returns a list directly. The new response is a pagination object containingitems,count,total,pageToken, andcontinuation. -
Changed the User Role API response
GET /api/v1/user/rolesnow also returns a paginated response. Both Role APIs support the additional parameterskeyword,sortOrder,nextPageToken,prevPageToken,lastPage, andlimit, with a default limit of30. -
Role API upgrade noticeApplications that currently read array responses directly from
GET /api/v1/admin/rolesorGET /api/v1/user/rolesmust be updated to retrieve the list from theitemsfield of the paginated response. -
Updated DefaultAdminRoleServiceThe constructor of
DefaultAdminRoleServicenow requires an additionalDefaultEntityToModelConverter. Custom classes extending this Service must update their constructors accordingly when upgrading to EzyPlatform 1.4.8. -
Updated the AdminRoleNameModel importSince
AdminRoleNameModelhas been moved to the Common SDK, modules using the previous import must update it to:org.youngmonkeys.ezyplatform.model.AdminRoleNameModel.