Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-5297

Support Directory Path to Devfile

    XMLWordPrintable

Details

    • ODC Sprint 194, ODC Sprint 195, ODC Sprint 196
    • Medium

    Description

      Description of problem:

      When using the UI to select a directory path for the git, it fails to take this into account when we go searching for the Devfile. git-service package needs to support the parameter for directory in order to find the correct file location.

      Prerequisites (if any, like setup, operators/versions):

      None

      Steps to Reproduce

      1. Go to the Import from Devfile add flow
      2. Use a git repo that has the devfile.yaml not at the root of the repo (ie https://github.com/maysunfaisal/node-bulletin-board-5)
      3. Update the git adv option for directory to be the path to the devfile.yaml (in the example above, `app`)

      Actual results:

      Fails to detect the devfile.yaml and does not update to find it even if the directory is accurate

      Expected results:

      To update to find the Devfile. We need to make sure we don't rate limit ourselves as well so debounce the go find the devfile.yaml call either in the git-service or in the GitSection hook.

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      4.7.0-0.nightly-2020-12-18-031435

      Additional info:

      • The sample has the devfile.yaml at the root and not suitable for this test.
      • We do not need to support different named Devfiles, keep the constant for 4.7

      Attachments

        Activity

          People

            mdsaud Mohammed Saud (Inactive)
            aballantyne Andrew Ballantyne
            Aritra Roy Aritra Roy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: