-
Notifications
You must be signed in to change notification settings - Fork 67
apm-ui: use the new kibana project layout #769
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,12 @@ | ||
| #!/usr/bin/env bash | ||
| set -e | ||
|
|
||
| OWNER=${1:-elastic} | ||
| BRANCH=${2:-master} | ||
|
|
||
| echo "Cloning Kibana: $OWNER:$BRANCH" | ||
| echo "Cloning Kibana: ${OWNER}:${BRANCH}" | ||
|
|
||
| cd ./tmp | ||
| git clone --depth 1 -b $BRANCH https://github.com/$OWNER/kibana.git | ||
| mv ./kibana/x-pack/legacy/plugins/apm/typings/es_schemas ./apm-ui-interfaces | ||
| cd ./tmp || true | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix a lint defect
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does this do? Is it if it fails navigating to
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, have you got a different suggestion?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering why this would fail - and fix the root cause of that.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll keep as it was then
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rollback my changes, to keep it as it was |
||
| git clone --quiet --depth 1 -b "${BRANCH}" "https://github.com/${OWNER}/kibana.git" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I originally made this git clone a little more complicated than it has to be. What I wanted was a partial checkout of just a specific path (to make it faster). I didn't find any simple ways to do that.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But you don't have to change this. Just thought I'd mention it. |
||
| mv ./kibana/x-pack/plugins/apm/typings/es_schemas ./apm-ui-interfaces | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The real change!
if so newLocation=./kibana/x-pack/plugins/apm/typings/es_schemas
location=./kibana/x-pack/legacy/plugins/apm/typings/es_schemas
if [ -d "${newLocation}" ] ; then
location=${newLocation}
fi
mv "${location} ./apm-ui-interfaces
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question. If the above works I think that's a good approach. Perhaps add a comment saying that in 7.7 files moved around. Then we can move this again in a couple of minors from now. |
||
| rm -rf kibana | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix a lint defect