Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-36200 Breaking changes for Flink 3.0
  3. FLINK-15787

Upgrade REST API response to remove '-' from key names.

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      There are some REST API responses that include keys with hyphens in them.  This results in the frontend having to use string-lookups to access those values and we lose the type information when doing that.

      Example from /jobs/<jobid>/vertices/<vertex>/backpressure
      export interface JobBackpressureInterface {
        status: string;
        'backpressure-level': string;
        'end-timestamp': number;
        subtasks: JobBackpressureSubtaskInterface[];
      }
      I would like to update all of these to use _ instead so we can maintain the type information we have in the web-runtime.

      My suggestion to do this with out a version bump to the API is to just make an addition to all the enpoints that include the _ versions as well. Then after the web-runtime has completely switched over to using the new keys, you can deprecate and remove the old hypenated keys at your own pace.

      Chesnay Schepler Till Rohrmann

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sorahn Daryl Roberts

            Dates

              Created:
              Updated:

              Slack

                Issue deployment