-
Bug
-
Resolution: Done
-
Major
-
openshift-4.7
-
False
-
False
-
Undefined
-
Not Supported
-
-
ODC Sprint 194, ODC Sprint 195, ODC Sprint 196
-
Medium
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
- Go to the Import from Devfile add flow
- 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)
- 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