Lifecycle APIs are inconsistent

Description

This relates to: http://docs.cask.co/cdap/current/en/reference-manual/http-restful-api/lifecycle.html#details-of-a-deployed-application

When you query the details of an application, using the CMD in section "Details of a Deployed Application", you get back a list that contains "programs". Inside of Programs the program-types appears as Workflow, Flow, etc.

However, these program-types are not consistent with your "Details of a Program" section. Those expect program-type of workflows, flows, etc.

So as a workdaround I have to have a case statement that converts from Workflows->workflows, Flow-flows, etc.

This should be fixed in one of the two APIs so they can be used together.

Release Notes

None

Activity

Show:

NitinMJune 9, 2020 at 1:40 AM

Closing jiras older than 2+ years of not being updated.

Tommy CarpenterMarch 2, 2017 at 8:41 PM

Here is the issue.

From http://docs.cask.co/cdap/current/en/developers-manual/building-blocks/program-lifecycle.html
All the uppercase ones are: Flow, MapReduce, Service, Spark, Worker, Workflow

From http://docs.cask.co/cdap/current/en/reference-manual/http-restful-api/lifecycle.html#details-of-a-program
All the lowercase ones are: flows, mapreduce, services, spark, workers, or workflows

Won't Fix
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Affects versions

Priority

Created August 30, 2016 at 5:23 PM
Updated June 9, 2020 at 1:40 AM
Resolved June 9, 2020 at 1:40 AM