Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swaggify Workflow API, part 2 #29828

Closed
Tracked by #28600
jdcmsd opened this issue Aug 30, 2024 · 3 comments · Fixed by #29993 or #30225
Closed
Tracked by #28600

Swaggify Workflow API, part 2 #29828

jdcmsd opened this issue Aug 30, 2024 · 3 comments · Fixed by #29993 or #30225

Comments

@jdcmsd
Copy link
Contributor

jdcmsd commented Aug 30, 2024

Parent Issue

#28600

Task

The long-awaited second round of Workflow API doc. Unfortunately, there are still five endpoints that need a little work:

  • The three firemultipart ones still need their multipart form bodies documented, and I'm still trying to understand how that goes:
    • PUT /v1/workflow/actions/{actionId}/firemultipart
    • PUT /v1/workflow/actions/default/firemultipart/{systemAction}
    • PUT /v1/workflow/actions/firemultipart
  • Two others with some kind of API Playground related bug:
    • POST /v1/workflow/actions/default/fire/{systemAction}
    • PATCH /v1/workflow/actions/default/fire/{systemAction}

On the latter two, I'm able to make successful calls via curl, but when I paste the same data body into the Playground, I get a 406 response. I'm wondering if maybe it has to do with this bit of code present on both of them:

//@Produces({MediaType.APPLICATION_JSON, "application/javascript"})
@Produces("application/octet-stream")

Either way, I have a lot more material ready to go, and I'll be attaching the PR to illustrate this shortly.

Proposed Objective

Documentation

Proposed Priority

Priority 3 - Average

Acceptance Criteria

No response

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

@valentinogiardino
Copy link
Contributor

IQA FAILED

Tested on trunk_477606b

Great job on this! 👏

I've identified a few minor inconsistencies and formatting issues, which are outlined in detail in this document

@valentinogiardino valentinogiardino removed their assignment Sep 25, 2024
@nollymar nollymar moved this from Internal QA to Next 1-3 Sprints in dotCMS - Product Planning Sep 25, 2024
@jdcmsd jdcmsd linked a pull request Oct 2, 2024 that will close this issue
3 tasks
@jdcmsd jdcmsd assigned nollymar and valentinogiardino and unassigned jdcmsd Oct 2, 2024
github-merge-queue bot pushed a commit that referenced this issue Oct 7, 2024
This PR addresses various small and sundry changes raised in the IQA
pass, visible
[here](https://docs.google.com/document/d/1Q4iSSVtbPVMGjGrKP8MyJ8g2X1Dl0rWZAopKK7Lcq78/edit).

Point by point below:

### Proposed Changes
* Fixed spacing on `DELETE /workflow/actionlets/{actionletId}` return
statement.
* Fixed rendering of link on `PUT /workflow/actions/{actionId}`
description
* Fixed "a.k.a." consistency throughout (plus em-dashes)
* Adjusted `WorkflowActionForm` to add Swagger's `@Hidden` annotation,
thereby removing deprecated or erroneous properties from display in
`POST /api/v1/workflow/actions` and `PUT /workflow/actions/{actionId}`
* Adjusted `ResponseEntityWorkflowActionView` class to prototype with
WorkflowAction instead of WorkflowActionView class, removing unnecessary
`actionInputs` from example.
* Found the source of missing `actionlet.nextStep` property, but it's a
very deep-set issue that involves a mix of code from 2012 and various
actionlet subclasses that add `getNextStep{ return null }` methods.
Might eventually make for an interesting project to determine whether
these methods are necessary, but for now it was safer to just add a
manual example response string.
* **No action needed** on nextStepCurrentStep property; it was present
in the response description, but it was farther down in the object than
it appears in the typical response.
* Fixed table formatting by adding newlines to request body description
in `POST /workflow/schemes` and `PUT /workflow/schemes/{schemeId}`
* Fixed table formatting by REMOVING newlines in `POST /workflow/steps`
and `PUT /workflow/steps/{stepId}`

### Checklist
- [ ] Tests
- [ ] Translations
- [ ] Security Implications Contemplated (add notes if applicable)
@github-project-automation github-project-automation bot moved this from Next 1-3 Sprints to Internal QA in dotCMS - Product Planning Oct 7, 2024
@github-project-automation github-project-automation bot moved this from Internal QA to Current Sprint Backlog in dotCMS - Product Planning Oct 7, 2024
@valentinogiardino valentinogiardino moved this from Current Sprint Backlog to Internal QA in dotCMS - Product Planning Oct 7, 2024
@valentinogiardino
Copy link
Contributor

IQA PASSED

Tested on trunk_0028f3c
All inconsistencies identified in the previous IQA have been resolved.

@bryanboza
Copy link
Contributor

Fixed, improvements looks better now

@jdcmsd jdcmsd added the LTS: Needs Backport Ticket that will be added to LTS label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants