Asset Service Queries
Query inventory
AssetQueries provides list, detail, assignment history, open assets by labor reference, and clearance status. List filters support parseable status, exact type, user reference, and labor reference; results sort by created time descending and cap at 1,000. Detail includes history and documents. History sorts chronologically. Clearance considers Issued, Damaged, Lost, and Repair blocking.
API-only projections expose tenant counts, capped newest-first audit, timeline, and outbox rows. Compatibility workspace returns assigned records ordered by code and capped at 500. Gateway ESS requests assets filtered by the caller's legacy employee reference. The frontend operations dashboard derives metrics from direct inventory or compatibility workspace rows.
There is no cursor/page-number pagination, total count, full-text search, caller-defined sorting, date filtering, server-side dashboard aggregation beyond health counts, report export, or query caching. IQueryable exposure lets Application and compatibility code compose EF-backed queries but also leaks persistence semantics through the repository port.
Requires confirmation
Production ownership, authorization governance, operational policy, and future architecture require confirmation where the source does not enforce them.
Source References
microservices/src/asset-service/Application/Queries/AssetQueries.csmicroservices/src/asset-service/Api/AssetEndpoints.csUI/salary-ui/apps/client-hrms-portal/src/dashboard/dashboardApi.ts