Skip to content

improve postman workflow tests#35729

Draft
dario-daza wants to merge 6 commits into
mainfrom
35471-task-content-drive-endpoint-to-return-workflow-schemes-for-a-list-of-content-types
Draft

improve postman workflow tests#35729
dario-daza wants to merge 6 commits into
mainfrom
35471-task-content-drive-endpoint-to-return-workflow-schemes-for-a-list-of-content-types

Conversation

@dario-daza
Copy link
Copy Markdown
Member

@dario-daza dario-daza commented May 16, 2026

Proposed Changes

  • Added GET /api/v1/workflow/schemes/schemes-content-types endpoint (findAllSchemesByContentTypeList) that accepts a comma-separated contentTypeIds query parameter and returns workflow schemes grouped by content type
  • Created AbstractContentTypeWorkflowSchemesView (Immutables) with contentTypeId + contentTypeSchemes fields, and ResponseEntityContentTypeWorkflowSchemesView as the typed response wrapper
  • The endpoint accepts contentTypeIds comma-separated values (?contentTypeIds=id1,id2,id3) rather than repeated params — trims whitespace and filters empty tokens
  • Added integration tests in WorkflowResourceResponseCodeIntegrationTest covering: null input, empty string, whitespace-only tokens, IDs with surrounding whitespace, invalid ID (expects 404), happy path with comma-separated valid IDs, and documented repeated-param limitation
  • Fix and add postman test to test the Workflow Schemas

Additional Info

The endpoint returns a structured List<{contentTypeId, contentTypeSchemes[]}> rather than a flat deduplicated list - this keeps the association between each content type and its schemes intact and lets the frontend handle deduplication if needed.

This PR fixes: #35471

@claude
Copy link
Copy Markdown
Contributor

claude Bot commented May 16, 2026

Claude encountered an error after 0s —— View job


Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area : Backend PR changes Java/Maven backend code

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[TASK] Content Drive: endpoint to return workflow schemes for a list of content types

1 participant