Skip to content

Add unit tests for org.apache.texera.web.resource pure-logic helpers #5217

Closed

Description

@Yicong-Huang

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

  • Testing / QA

Activity

  1. added a commit that references this issue on Jun 7, 2026
    0e35ac6
  2. added a commit that references this issue on Jun 16, 2026
    f1cc5ff
  3. added a commit that references this issue on Jun 22, 2026
    896150b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions