Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36902

Refactor destructured objects to not be destructured.

    Details

    • Similar Issues:
    • Epic Link:

      Description

      Example below make it hard to read code. In general destructing nested data should probably be avoided.

       const {
                  context: {
                      router,
                      location,
                      pipeline: {
                          _class: pipelineClass,
                          fullName,
                          organization,
                      },
                  },
                  props: {
                      result: {
                          durationInMillis,
                          estimatedDurationInMillis,
                          pipeline,
                          id,
                          result,
                          state,
                          startTime,
                          endTime,
                          commitId,
                      },
                      changeset,
                  },
              } = this;
      

        Attachments

          Activity

          Hide
          jamesdumay James Dumay added a comment -

          This should be fixed as you touch files

          Show
          jamesdumay James Dumay added a comment - This should be fixed as you touch files

            People

            • Assignee:
              Unassigned
              Reporter:
              imeredith Ivan Meredith
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: