Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge elastic code plugin to main Kibana for 7.1 (2nd Review) #33438

Merged
merged 806 commits into from
Apr 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
806 commits
Select commit Hold shift + click to select a range
7a7aff8
[Code] Use system JDK if it is available (#31389)
Feb 20, 2019
7db0996
[Code] fix functional tests (#31555)
mw-ding Feb 20, 2019
300783c
fix(code/frontend): main page (#29811)
WangQianliang Feb 20, 2019
0dd40c8
[Code] fix find references style (#30911)
spacedragon Feb 20, 2019
9d36039
[Code]: properly reconnect when langserver is down and clean up logs,…
zfy0701 Feb 20, 2019
71257ce
fix(code/frontend): wider clickable area for file and structure node …
WangQianliang Feb 20, 2019
d537525
fix(code/frontend): fix project filter press enter location change (#…
WangQianliang Feb 20, 2019
4d699b5
Code: move all non-error LSP logging to debug level
zfy0701 Feb 20, 2019
4acf2a9
[Code] Dark mode cleanup (#31208)
daveyholler Feb 21, 2019
240eac6
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Feb 21, 2019
fda5073
fix(code/frontend): fix componentWillMount (#31772)
WangQianliang Feb 22, 2019
a4cc1d1
[Code] Remove socket.io and use polling message to pull progresses (#…
mw-ding Feb 22, 2019
6de9fa0
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Feb 22, 2019
ff70ee0
[Code] correctly handle url when workspace is a symbol link. (#31782)
spacedragon Feb 23, 2019
9519432
fix(code/frontend): lose symbols (#31664)
WangQianliang Feb 23, 2019
821e47b
[Code] functional test for code intelligence (#31673)
mw-ding Feb 23, 2019
57fad3d
[Code] Add api test for multi code node setup (#31460)
spacedragon Feb 25, 2019
f493e54
[Code] fix the bug the first type in querybar is alwasy discarded (#3…
mw-ding Feb 25, 2019
fbff7de
[Code] disable cross repo jump functional test
mw-ding Feb 25, 2019
46b9627
fix(code/frontend): replace deprecated react lifecycle methods (#31874)
WangQianliang Feb 25, 2019
22d64d9
[Code] Add duration for queued tasks (#31885)
mw-ding Feb 26, 2019
126eac4
[Code] fix editor lifecycle method (#31983)
spacedragon Feb 26, 2019
dcd9282
[Code] force delete repository (#31995)
mw-ding Feb 26, 2019
f48d420
feature(code/frontend): implement new breadcrumb design (#31247)
WangQianliang Feb 26, 2019
0b7c437
[Code] handle import error (#31875)
WangQianliang Feb 26, 2019
630dfb6
[Code] increase the git clone/update throttle param to make ES data u…
mw-ding Feb 26, 2019
d81f066
fix(code/frontend): side navigation bar width should be fixed (#31876)
WangQianliang Feb 26, 2019
a136341
fix(code/frontend): should show import modal (#31987)
WangQianliang Feb 26, 2019
bf29eef
[Code] update repo by set target ref directly (#32002)
spacedragon Feb 27, 2019
ef185b1
[Code] show nothing if setup status is not ready yet. (#31993)
spacedragon Feb 27, 2019
e7c5c2a
[Code] fix editor `goto line` (#32094)
spacedragon Feb 27, 2019
c5cbfe3
fix(code/frontend): match props missing (#32100)
WangQianliang Feb 27, 2019
49505a0
[Code] Improve repository progress polling when clone/index is interr…
mw-ding Feb 28, 2019
5afbe6f
[Code] fix tree flatten/expand/collapse problems (#32099)
spacedragon Feb 28, 2019
9715202
[Code] Fix check for JDK's version (#32104)
Feb 28, 2019
b857bcd
fix(code/frontend): type errors (#32119)
WangQianliang Feb 28, 2019
4511305
[Code] specify nodegit commit sha in package.json (#32170)
spacedragon Feb 28, 2019
d57dfe3
[Code] fix setup page (#32179)
spacedragon Mar 1, 2019
57caedb
[Code] fix type error in java launcher (#32270)
Mar 1, 2019
f0c9973
[plugin installer] Keep external attributes of files during unarchivi…
Mar 1, 2019
16b34ce
[Code] Ignore certificate check for clone (#32271)
mw-ding Mar 1, 2019
c4f4f2e
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 1, 2019
1ff20b3
[Code] fix tsc error
mw-ding Mar 1, 2019
9a79732
[Code] fix yarn.lock
mw-ding Mar 1, 2019
cd1104e
Code: fix getClient is not a function error after merging (#32338)
zfy0701 Mar 1, 2019
4bcbca9
[Code] fix load file tree by refresh (#32280)
spacedragon Mar 2, 2019
57acf26
[Code] Adjust `GoLauncher` to adapt to the running pattern of go serv…
Mar 2, 2019
8551139
[Code] Fix a line number bug for composite content calculation (#32376)
mw-ding Mar 4, 2019
23f6572
[Code] function test for securities (#32278)
spacedragon Mar 4, 2019
6c6e79e
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 4, 2019
c57b16c
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 5, 2019
e8ec86d
[Code] apply the correct timestamp to admin page (#32379)
mw-ding Mar 5, 2019
bb94f4a
[Code]: fix duplicate import agains kbn/test/types package, update ty…
zfy0701 Mar 5, 2019
b2af3dc
fix(code/frontend): highlight structure node (#32034)
WangQianliang Mar 5, 2019
c21706f
fix(code/frontend): special symbol container name (#32281)
WangQianliang Mar 5, 2019
58585ee
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 5, 2019
881bcc2
Monaco Editor Dark Mode (#32263)
daveyholler Mar 6, 2019
9d11d91
[Code]: always downgrade language server logging level by one
zfy0701 Mar 6, 2019
cfbc0fa
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 6, 2019
3f74652
[Code]: upgrade ts langserver version, reduce the timeout for waiting…
zfy0701 Mar 7, 2019
781fa21
[Code] replace _term aggregator order to _key (#32541)
mw-ding Mar 7, 2019
c0f2fd7
fix(code/frontend): reset breadcrumbs and fix code href (#32277)
WangQianliang Mar 7, 2019
84a564b
[Code] improve index progress calculation (#32537)
mw-ding Mar 7, 2019
d7e4ee3
[Code]: clean up the way we config LSP related configs (#32607)
zfy0701 Mar 7, 2019
6e66615
[Code] change nodegit to @elastic/nodegit (#32543)
spacedragon Mar 8, 2019
bd94531
[Code] fix tree loading when jumping between different repos (#32650)
spacedragon Mar 8, 2019
431cd66
[Code] Use data dir as config dir (#32609)
Mar 8, 2019
6a1fc64
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 8, 2019
57764f3
[Code]: remove uneccessary color convert after upgrade to EUI 9
zfy0701 Mar 8, 2019
71f14ec
[Code] fix a undefined path problem
Mar 8, 2019
77b0105
[Code] compute url for language server plugin (#32644)
spacedragon Mar 8, 2019
c8ea4f2
[Code] fix typo (#32751)
spacedragon Mar 8, 2019
5512779
[Code]: Update UI test snapshot
zfy0701 Mar 8, 2019
b7eb82a
[Code]: Disable project setting, branch selection and diff page (#32799)
zfy0701 Mar 8, 2019
08d0766
[Code] adjust search bar suggestions style (#32726)
mw-ding Mar 8, 2019
bea3503
[Code] disable indent guides lines in editors (#32730)
spacedragon Mar 8, 2019
4367231
feature(code/frontend): show loading spinner when loading file/struct…
WangQianliang Mar 9, 2019
acef7a9
fix(code/frontend): truncate blame date (#32764)
WangQianliang Mar 9, 2019
5b1f5d5
[Code] Call default to lsp options (#32843)
mw-ding Mar 9, 2019
3f36edd
[Code] fix path handling in windows (#32882)
spacedragon Mar 11, 2019
302e996
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 11, 2019
7d225f1
feature(code/frontend): implement new 404 page (#32859)
WangQianliang Mar 11, 2019
ca3e255
fix(code/frontend): truncate directory node and fix margin (#32858)
WangQianliang Mar 11, 2019
7c3fe2c
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 11, 2019
262e37c
[Code]: Upgrade ts langserver version
zfy0701 Mar 11, 2019
e5a9c60
[Code]: upgrade test snapshot
zfy0701 Mar 11, 2019
8661752
[Build]: use the resolution in CreatePackageJsonTask task
zfy0701 Mar 11, 2019
51f7310
[Code]: correctly handle errors in JDK finding (#32824)
zfy0701 Mar 12, 2019
951c53c
[Code] Fix functional test (#32991)
mw-ding Mar 12, 2019
4245a7b
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 12, 2019
d3061e9
fix(code): clear import project input after submit (#32970)
WangQianliang Mar 12, 2019
5d174f2
[Code] Show some content for file name matching (#32958)
mw-ding Mar 12, 2019
b9fb0d4
[Code] fix goto definition failed after user click `go back` (#32968)
spacedragon Mar 12, 2019
291445a
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 12, 2019
cce157a
Forcing the filetree open on mobile devices. (#33056)
daveyholler Mar 13, 2019
0088511
[Code] remove requirement for SettingRepository button in tests (#33081)
spacedragon Mar 13, 2019
2da9cd3
[Code]: clean up the code breadcrumb (#33069)
zfy0701 Mar 13, 2019
1e703f0
[Code]: fix top bar button size, width and right margin (#33061)
zfy0701 Mar 13, 2019
fa0ed43
[Code]: link to the setup guide button should be the entire button (#…
zfy0701 Mar 13, 2019
8482f8a
[Code] Remove the repository status in repo search result item (#32967)
mw-ding Mar 13, 2019
2d61c7c
[Code] Add additional git url validation in clone worker (#33097)
mw-ding Mar 13, 2019
11ff56c
[Code] hide language server errors (#33082)
spacedragon Mar 13, 2019
4963be3
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 13, 2019
a3014d4
[Code] fix tree expand problems (#32984)
spacedragon Mar 13, 2019
465b9ad
Fixes for dark mode (#33014)
daveyholler Mar 13, 2019
27d2763
[Code] make find references panel's file name clickable (#33083)
spacedragon Mar 14, 2019
5b8e0e2
[Code] update worker queue index name to exclude from code user/admin…
mw-ding Mar 14, 2019
45bf396
fix(code): symbol tree style (#33224)
WangQianliang Mar 14, 2019
dea9934
[Code] Index job timeout should show repository index error (#33140)
mw-ding Mar 14, 2019
95be954
[Code] adjust repo search scope REST API params (#33219)
mw-ding Mar 14, 2019
eeae014
[Code] scroll the selected file into view when navigate files (#33225)
spacedragon Mar 14, 2019
df2d425
[Code] fix a minor bug for clone repo
mw-ding Mar 14, 2019
b28e091
[Code] fix a tree expand/collapse problem (#33227)
spacedragon Mar 14, 2019
87d3373
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 14, 2019
2bba2bb
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 14, 2019
0b2f5e1
[Code] fixes for search page (#33281)
mw-ding Mar 15, 2019
1d89791
[Code] Calculate the index job timeout based on the size of the repo …
mw-ding Mar 15, 2019
27d8a45
[Code]: add a test util file and move common class into it (#33283)
zfy0701 Mar 15, 2019
4e62a3d
fix(code/frontend): unset min-width of breadcrumb (#33298)
WangQianliang Mar 15, 2019
feedd92
fix(code): highlight only one symbol and unexpected tree loading (#33…
WangQianliang Mar 15, 2019
1c79c1b
[Code] use callWithRequest instead of callWithInternalUser in cluster…
spacedragon Mar 15, 2019
bda74aa
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 15, 2019
7df558d
[Code] Add options to disable maven/gradle importer and autobuild (#3…
Mar 15, 2019
66b8047
[Code]: add option to disable node depdendency downloading (#33340)
zfy0701 Mar 15, 2019
0033bec
[Code]: change config code.codeSecurity to code.security
zfy0701 Mar 15, 2019
5774b55
[Code]: more clean up to the test option (#33355)
zfy0701 Mar 16, 2019
4690305
[Code] Add git clone url host and protocol whitelist (#33371)
mw-ding Mar 16, 2019
7aa961d
[Code] align search page border and correct the rendering of empty se…
mw-ding Mar 18, 2019
8d5e844
[Code] focus input when switch search scope with shortcuts (#33379)
mw-ding Mar 18, 2019
e206b71
fix(code): add project root link to kibana breadcrumb (#33297)
WangQianliang Mar 18, 2019
7004945
Revert "fix(code): add project root link to kibana breadcrumb (#33297)"
zfy0701 Mar 18, 2019
3c43ea8
[Code]: upgrade to typescript server 0.1.19
zfy0701 Mar 19, 2019
3a1a49f
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 19, 2019
d67f308
[Code] Fix randomized port in Java launcher (#33495)
Mar 19, 2019
4b41abe
[Code] fix popover style changes when click on buttons (#33472)
spacedragon Mar 19, 2019
1d2b35a
[Code] fix setup guide style (#33474)
spacedragon Mar 19, 2019
14c282a
[Code] fix a problem we start more than one lang-server for the same …
spacedragon Mar 19, 2019
b3a2927
fix(code): use monospace font for commit hash (#33307)
WangQianliang Mar 20, 2019
cf17bfc
[Code] fix reference panel layout problems (#33546)
spacedragon Mar 20, 2019
06b3796
[Code] fix lang-sever initializing popover (#33482)
spacedragon Mar 20, 2019
9dc63ed
fix(code/frontend): truncate commit message (#33548)
WangQianliang Mar 20, 2019
b0f7777
fix(code/frontend): use eui toast for import message (#33487)
WangQianliang Mar 20, 2019
221f9e5
fix(code/frontend): check file path before reveal position (#33555)
WangQianliang Mar 20, 2019
3e036dc
fix(code/frontend): should have no container (#33492)
WangQianliang Mar 20, 2019
62a07eb
[Code] change lsp http error codes (#33633)
spacedragon Mar 21, 2019
b9389f5
fix(code/frontend): combobox in search setting flyout should be stret…
WangQianliang Mar 21, 2019
03db103
[Code] Enabgle `go` language of the monaco editor. (#33476)
Mar 21, 2019
046c922
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 21, 2019
e509652
fix(code/frontend): error message for empty project url (#33549)
WangQianliang Mar 22, 2019
3694d07
[Code] connect the modify search settings button with the search scop…
mw-ding Mar 22, 2019
3c1028a
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 22, 2019
8946092
[Code]: fix integration test using new API (#33730)
zfy0701 Mar 22, 2019
a2e7045
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 22, 2019
c606047
[Code] fix a tree expanding problem (#33766)
spacedragon Mar 25, 2019
096293a
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 25, 2019
866db39
Fixing the directory node focus state. (#33821)
daveyholler Mar 26, 2019
2e4d68b
[Code] fix a reference panel height problem (#33767)
spacedragon Mar 26, 2019
3bb5e88
[Code] upgrade nodegit, set max returned commits results (#33913)
spacedragon Mar 27, 2019
aa8ab45
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 27, 2019
725189d
[Code]: Upgrade dependencies
zfy0701 Mar 27, 2019
c9656f9
[Code]: Syntax clean after bable-ts-transform upgrade
zfy0701 Mar 27, 2019
ef1dc3f
[Code] don't patch native modules when build oss package (#33915)
spacedragon Mar 27, 2019
a3bee7e
[Code] improve repository index naming (#33911)
mw-ding Mar 27, 2019
b1680df
Revert "Fixing the directory node focus state. (#33821)"
zfy0701 Mar 27, 2019
7cd7792
[Code] Remove regex git url validation and add more unit tests for re…
mw-ding Mar 27, 2019
6486bdf
[Code] handle nodegit deprecation warnings (#33932)
spacedragon Mar 27, 2019
66f211a
Reducing top and bottom padding of the directory and file nodes in th…
daveyholler Mar 27, 2019
c77843b
Styling the File Tree Scrollbar (#33988)
daveyholler Mar 27, 2019
b650f2d
[Code] check file path in lsp requests (#33916)
spacedragon Mar 28, 2019
188123b
[Code] Implement the index checkpointing (#32682)
mw-ding Mar 28, 2019
4b2c60f
[Code]: raise default security level (#33956)
zfy0701 Mar 28, 2019
a1217a1
fix(code/frontend): should not show import error at the first time (#…
WangQianliang Mar 28, 2019
dc8dfbf
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 29, 2019
ee77c83
[Code]: add missing dependencies that are not in x-pack
zfy0701 Mar 29, 2019
17968ee
[Code]: fix test snapshot and eui usages
zfy0701 Mar 29, 2019
8c1c2e6
chore(code/frontend): move props files to __fixtures__ folder (#34031)
WangQianliang Mar 29, 2019
4aea4e5
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Mar 29, 2019
c5b07b9
[Code] fix a tree collapse problem (#34030)
spacedragon Mar 29, 2019
0f157b6
[Code]: simplify the path computation of ts server
zfy0701 Mar 29, 2019
817f43e
[Code]: clean uneccessary ts-ignores (#34203)
zfy0701 Mar 30, 2019
db6bc0a
[Code] apply repo search scope right away in search page (#34029)
mw-ding Apr 1, 2019
2263207
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 1, 2019
7de9780
[Code] upgrade git-url-parse version and enable ssh git clone protoco…
mw-ding Apr 2, 2019
cb08eb9
[Code]: minor clean up of tslint usage, up ts server version
zfy0701 Apr 2, 2019
8132915
fix(code/frontend): use different actions to handle repo scope search…
WangQianliang Apr 3, 2019
6e18d9c
[Code] fix the crash when we refresh the blame view (#34335)
spacedragon Apr 3, 2019
76be6c4
[Code] enable ssh protocol, only read ssh key pairs from data folder.…
spacedragon Apr 4, 2019
d9b9697
[Code] reset processing jobs when system is initializing (#34408)
mw-ding Apr 4, 2019
5a99a6e
[Code] functional test for git:// url (#34512)
mw-ding Apr 4, 2019
f808112
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 4, 2019
812a2c6
[Code] fix search query bar item selection issue (#34514)
mw-ding Apr 5, 2019
0f46b6b
[Code]: use absolute path for api path (#34582)
zfy0701 Apr 5, 2019
0e69d70
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 5, 2019
9aaf4ed
[Code]: minor UI adjustment (#34659)
zfy0701 Apr 5, 2019
e90a928
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 6, 2019
5f2cc01
[Code]: fix new eslint errors (#34671)
zfy0701 Apr 6, 2019
c4c1257
[Code] save code_node_info in an index (#34244)
spacedragon Apr 8, 2019
7526cec
[Code] fix line height changed after find reference is open (#34682)
spacedragon Apr 8, 2019
b0d3d7c
[Code] add description for file and repo typeahead items (#34681)
mw-ding Apr 8, 2019
2888a7c
[Code] encode/decode branchs and tags (#34683)
mw-ding Apr 8, 2019
78ddadd
[Code] Incremental Indexing (#33485)
mw-ding Apr 8, 2019
aedf41c
[Code]: disable more eslint error due to nodegit
zfy0701 Apr 8, 2019
2b0e73d
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 8, 2019
b04fa24
[Code]: add a go language icon
zfy0701 Apr 8, 2019
ef0e01e
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 10, 2019
410741e
[Code]: fix test snapshot after upgrade eui
zfy0701 Apr 10, 2019
6a5af70
fix(code/frontend): make blame view scrollable (#34519)
WangQianliang Apr 10, 2019
3fc3db2
[Code]: add beta indicator (#34899)
zfy0701 Apr 10, 2019
843f3fd
[Code]: add a toast for permission change in setup page (#34901)
zfy0701 Apr 10, 2019
50efde1
[Code] support '/' in getCommit (#34774)
spacedragon Apr 11, 2019
a2a8f43
[Code]: show error message when importing repo at import repo page, f…
zfy0701 Apr 11, 2019
5769746
[Code]: add setup guide link in help menu and pre-define document lin…
zfy0701 Apr 11, 2019
4357686
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 11, 2019
7c290f6
[Code] hide index button when repo is in indexing (#34904)
mw-ding Apr 11, 2019
582c92d
[Code]: clean uneccessary code, lint error
zfy0701 Apr 11, 2019
de8ddb3
[Code] apply encode to revision in url (#34906)
mw-ding Apr 11, 2019
b37fa27
[Code] disable blame button when select a non-text file (#34775)
spacedragon Apr 11, 2019
116c7f6
[Code] Provide more reasons for git url validation (#34914)
mw-ding Apr 11, 2019
eaa578a
fix(code/frontend): should disable structure tab if no structure or l…
WangQianliang Apr 12, 2019
fb5c988
[Code] don't allow access secured routes before x-pack info is availa…
spacedragon Apr 14, 2019
a8a2ef7
fix(code/frontend): remove line decorations if no line number specifi…
WangQianliang Apr 15, 2019
59542c7
Reset initialized when proxy re-connects (#34970)
Apr 15, 2019
a17a9e9
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 15, 2019
38b9fa6
[Code] setup multi-code mode by config (#34988)
spacedragon Apr 15, 2019
7eb8384
[Code] Persist clone error messages (#34977)
mw-ding Apr 16, 2019
e4a8c7a
test(code/frontend): history functional test (#34921)
WangQianliang Apr 16, 2019
ce8a46a
Implement Code feature control (#35115)
zfy0701 Apr 16, 2019
fdab56a
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 16, 2019
496ecbc
feature(code/frontend): search filter default repo options (#35202)
WangQianliang Apr 17, 2019
d699f6d
[Code] minor fix of proejct status update (#35207)
mw-ding Apr 17, 2019
e92fc1c
feature(code/frontend): search in project page set current repo as de…
WangQianliang Apr 17, 2019
f39893f
fix(code/frontend): structure tab highlight, align and collapse (#35221)
WangQianliang Apr 18, 2019
73d2e61
[Code] add api integration tests for feature control (#35146)
mw-ding Apr 18, 2019
deb5881
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 18, 2019
763f490
[Code] Ignore certificateCheck in update as well (#35273)
mw-ding Apr 18, 2019
3551d39
[Code]: fix test snapshot
zfy0701 Apr 18, 2019
fad5a41
[Code] Removing styled components & SCSS cleanup (#35107)
daveyholler Apr 18, 2019
c5f56cd
Removing the focusring from the items in the file_tree. (#35364)
daveyholler Apr 19, 2019
a86477d
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 19, 2019
9d9359b
[Code] pagination for history (#35329)
spacedragon Apr 20, 2019
91cb4c7
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Apr 22, 2019
6aad909
Merge branch 'master' of github.com:elastic/kibana into pr/33438
Apr 22, 2019
d42c73a
Updating the markdown rendering to use EUI styles. (#35439)
daveyholler Apr 23, 2019
a960185
[Code]: fix icon for module and namespace (#35428)
zfy0701 Apr 23, 2019
9b99b0f
[Code] apply git clone/update cert check for production env (#35399)
mw-ding Apr 23, 2019
17eae3e
fix(code/frontend): source view page, click line number should stay i…
WangQianliang Apr 23, 2019
fc534e5
Merge branch 'master' of github.com:elastic/kibana into pr/33438
Apr 23, 2019
5c2ab34
[Code] Add a security flag for git certificate check (#35445)
mw-ding Apr 23, 2019
b66b922
fix(code/frontend): fix blank left to blame (#35449)
WangQianliang Apr 23, 2019
b486992
[Code]: Improve code setup guide text
zfy0701 Apr 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@
"react-color": "^2.13.8",
"react-dom": "^16.8.0",
"react-grid-layout": "^0.16.2",
"react-markdown": "^3.1.4",
"react-input-range": "^1.3.0",
"react-markdown": "^3.4.1",
"react-redux": "^5.0.7",
"react-router-dom": "^4.3.1",
"react-sizeme": "^2.3.6",
Expand Down Expand Up @@ -274,6 +275,7 @@
"@types/bluebird": "^3.1.1",
"@types/boom": "^7.2.0",
"@types/chance": "^1.0.0",
"@types/cheerio": "^0.22.10",
"@types/chromedriver": "^2.38.0",
"@types/classnames": "^2.2.3",
"@types/d3": "^3.5.41",
Expand All @@ -286,7 +288,7 @@
"@types/execa": "^0.9.0",
"@types/fetch-mock": "7.2.1",
"@types/getopts": "^2.0.1",
"@types/glob": "^5.0.35",
"@types/glob": "^7.1.1",
"@types/globby": "^8.0.0",
"@types/graphql": "^0.13.1",
"@types/hapi": "^17.0.18",
Expand Down Expand Up @@ -322,7 +324,7 @@
"@types/rimraf": "^2.0.2",
"@types/selenium-webdriver": "^3.0.15",
"@types/semver": "^5.5.0",
"@types/sinon": "^5.0.1",
"@types/sinon": "^7.0.0",
"@types/strip-ansi": "^3.0.0",
"@types/styled-components": "^3.0.1",
"@types/supertest": "^2.0.5",
Expand Down Expand Up @@ -400,7 +402,7 @@
"multistream": "^2.1.1",
"murmurhash3js": "3.0.1",
"mutation-observer": "^1.0.3",
"nock": "8.0.0",
"nock": "10.0.4",
"node-sass": "^4.9.4",
"normalize-path": "^3.0.0",
"pixelmatch": "4.0.2",
Expand All @@ -414,7 +416,7 @@
"sass-lint": "^1.12.1",
"selenium-webdriver": "^4.0.0-alpha.1",
"simple-git": "1.37.0",
"sinon": "^5.0.7",
"sinon": "^7.2.2",
"strip-ansi": "^3.0.1",
"supertest": "^3.1.0",
"supertest-as-promised": "^4.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-ui-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"redux": "3.7.2",
"redux-thunk": "2.2.0",
"sass-loader": "^7.1.0",
"sinon": "^5.0.7",
"sinon": "^7.2.2",
"style-loader": "^0.23.1",
"webpack": "^4.23.1",
"webpack-dev-server": "^3.1.10",
Expand Down
1 change: 1 addition & 0 deletions src/cli/cluster/cluster_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export default class ClusterManager {
/[\\\/](\..*|node_modules|bower_components|public|__[a-z0-9_]+__|coverage)[\\\/]/,
/\.test\.js$/,
...extraIgnores,
'plugins/java_languageserver'
],
});

Expand Down
Binary file modified src/cli_plugin/install/__fixtures__/replies/test_plugin.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/cli_plugin/install/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function extractArchive(archive, targetDir, extractPath) {
return reject(err);
}

readStream.pipe(createWriteStream(fileName));
readStream.pipe(createWriteStream(fileName, { mode: entry.externalFileAttributes >>> 16 }));
readStream.on('end', function () {
zipfile.readEntry();
});
Expand Down
23 changes: 23 additions & 0 deletions src/cli_plugin/install/zip.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import rimraf from 'rimraf';
import path from 'path';
import os from 'os';
import glob from 'glob';
import fs from 'fs';
import { analyzeArchive, extractArchive, _isDirectory } from './zip';

describe('kibana cli', function () {
Expand Down Expand Up @@ -72,6 +73,28 @@ describe('kibana cli', function () {
});
});

describe('checkFilePermission', () => {
it('verify consistency of modes of files', async () => {
const archivePath = path.resolve(repliesPath, 'test_plugin.zip');

await extractArchive(archivePath, tempPath, 'kibana/libs');
const files = await glob.sync('**/*', { cwd: tempPath });

const expected = [
'executable',
'unexecutable'
];
expect(files.sort()).toEqual(expected.sort());

const executableMode = '0' + (fs.statSync(path.resolve(tempPath, 'executable')).mode & parseInt('777', 8)).toString(8);
const unExecutableMode = '0' + (fs.statSync(path.resolve(tempPath, 'unexecutable')).mode & parseInt('777', 8)).toString(8);

expect(executableMode).toEqual('0755');
expect(unExecutableMode).toEqual('0644');

});
});

it('handles a corrupt zip archive', async () => {
try {
await extractArchive(path.resolve(repliesPath, 'corrupt.zip'));
Expand Down
2 changes: 2 additions & 0 deletions src/dev/build/build_distributables.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import {
ExtractNodeBuildsTask,
InstallDependenciesTask,
OptimizeBuildTask,
PatchNativeModulesTask,
RemovePackageJsonDepsTask,
RemoveWorkspacesTask,
TranspileBabelTask,
Expand Down Expand Up @@ -131,6 +132,7 @@ export async function buildDistributables(options) {
* directories and perform platform-specific steps
*/
await run(CreateArchivesSourcesTask);
await run(PatchNativeModulesTask);
await run(CleanExtraBinScriptsTask);
await run(CleanExtraBrowsersTask);
await run(CleanNodeBuildsTask);
Expand Down
1 change: 1 addition & 0 deletions src/dev/build/tasks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ export * from './typecheck_typescript_task';
export * from './transpile_scss_task';
export * from './verify_env_task';
export * from './write_sha_sums_task';
export * from './patch_native_modules_task';
export * from './path_length_task';
91 changes: 91 additions & 0 deletions src/dev/build/tasks/patch_native_modules_task.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { scanCopy, untar, deleteAll } from '../lib';
import { createWriteStream } from 'fs';
import { binaryInfo } from '../../../../x-pack/plugins/code/tasks/nodegit_info';
import wreck from 'wreck';
import mkdirp from 'mkdirp';
import { dirname, join, basename } from 'path';
import { createPromiseFromStreams } from '../../../legacy/utils/streams';

async function download(url, destination, log) {
const response = await wreck.request('GET', url);

if (response.statusCode !== 200) {
throw new Error(
`Unexpected status code ${response.statusCode} when downloading ${url}`
);
}
mkdirp.sync(dirname(destination));
await createPromiseFromStreams([
response,
createWriteStream(destination)
]);
log.debug('Downloaded ', url);
}

async function downloadAndExtractTarball(url, dest, log, retry) {
try {
await download(url, dest, log);
const extractDir = join(dirname(dest), basename(dest, '.tar.gz'));
await untar(dest, extractDir, {
strip: 1
});
return extractDir;
} catch (e) {
if (retry > 0) {
await downloadAndExtractTarball(url, dest, log, retry - 1);
} else {
throw e;
}
}
}

async function patchNodeGit(config, log, build, platform) {
const plat = platform.isWindows() ? 'win32' : platform.getName();
const arch = platform.getNodeArch().split('-')[1];
const { downloadUrl, packageName } = binaryInfo(plat, arch);

const downloadPath = build.resolvePathForPlatform(platform, '.nodegit_binaries', packageName);
const extractDir = await downloadAndExtractTarball(downloadUrl, downloadPath, log, 3);

const destination = build.resolvePathForPlatform(platform, 'node_modules/nodegit/build/Release');
log.debug('Replacing nodegit binaries from ', extractDir);
await deleteAll([destination], log);
await scanCopy({
source: extractDir,
destination: destination,
time: new Date(),
});
await deleteAll([extractDir, downloadPath], log);
}



export const PatchNativeModulesTask = {
description: 'Patching platform-specific native modules directories',
async run(config, log, build) {
await Promise.all(config.getTargetPlatforms().map(async platform => {
zfy0701 marked this conversation as resolved.
Show resolved Hide resolved
if (!build.isOss()) {
await patchNodeGit(config, log, build, platform);
}
}));
}
};
7 changes: 7 additions & 0 deletions src/legacy/ui/public/chrome/api/breadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ function createBreadcrumbsApi(chrome: { [key: string]: any }) {
filter(fn: (breadcrumb: Breadcrumb, i: number, all: Breadcrumb[]) => boolean) {
newPlatformChrome.setBreadcrumbs(currentBreadcrumbs.filter(fn));
},

/**
* Remove last element of the breadcrumb
*/
pop() {
newPlatformChrome.setBreadcrumbs(currentBreadcrumbs.slice(0, -1));
},
},
};
}
Expand Down
2 changes: 2 additions & 0 deletions x-pack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { dashboardMode } from './plugins/dashboard_mode';
import { logstash } from './plugins/logstash';
import { beats } from './plugins/beats_management';
import { apm } from './plugins/apm';
import { code } from './plugins/code';
import { maps } from './plugins/maps';
import { licenseManagement } from './plugins/license_management';
import { cloud } from './plugins/cloud';
Expand Down Expand Up @@ -55,6 +56,7 @@ module.exports = function (kibana) {
logstash(kibana),
beats(kibana),
apm(kibana),
code(kibana),
maps(kibana),
canvas(kibana),
licenseManagement(kibana),
Expand Down
Loading