Task Summary
amber/src/main/scala/org/apache/texera/web/resource/ has ~30 files of which ~7 ship with tests. A self-contained cluster of pure-logic helpers — no DB, no servlet container, no auth — can be covered in one PR:
EmailTemplate.scala — userRegistrationNotification admin / user branches, createRoleChangeTemplate; subject/content shape and the [deployment] suffix toggle off UserSystemConfig.appDomain.
dashboard/FulltextSearchQueryUtils.scala — getFullTextSearchFilter pgroonga / fallback branches and empty-input guards, getContainsFilter set-based OR, getDateFilter open-ended ranges and ParseException, getOperatorsFilter LIKE construction.
dashboard/hub/EntityTables.scala — BaseEntityTable / LikeTable / CloneTable / ViewCountTable dispatch maps for WORKFLOW and DATASET entity types.
HealthCheckResource.scala — single-method status map.
SuccessExecutionResult.scala — case-class defaults.
Out of scope (heavier mocking, follow-ups):
Task Type
Task Summary
amber/src/main/scala/org/apache/texera/web/resource/has ~30 files of which ~7 ship with tests. A self-contained cluster of pure-logic helpers — no DB, no servlet container, no auth — can be covered in one PR:EmailTemplate.scala—userRegistrationNotificationadmin / user branches,createRoleChangeTemplate; subject/content shape and the[deployment]suffix toggle offUserSystemConfig.appDomain.dashboard/FulltextSearchQueryUtils.scala—getFullTextSearchFilterpgroonga / fallback branches and empty-input guards,getContainsFilterset-based OR,getDateFilteropen-ended ranges andParseException,getOperatorsFilterLIKE construction.dashboard/hub/EntityTables.scala—BaseEntityTable / LikeTable / CloneTable / ViewCountTabledispatch maps forWORKFLOWandDATASETentity types.HealthCheckResource.scala— single-method status map.SuccessExecutionResult.scala— case-class defaults.Out of scope (heavier mocking, follow-ups):
SystemMetadataResource— needsOperatorMetadataGeneratorbootstrapWorkflowWebsocketResource/CollaborationResource— need ajavax.websocket.SessiondoubleUserConfigResource— DB-backed, follow-up like Add DB-backed unit tests for ExecutionsMetadataPersistService and ExecutionStateStore.updateWorkflowState #5210 / test(amber): DB-backed unit tests for ExecutionsMetadataPersistService and updateWorkflowState #5213SyncExecutionResource/GmailResource— large, already have partial coverageTask Type