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

[Code] Merge elastic code plugin to main Kibana Repo #27012

Closed
wants to merge 687 commits into from
Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
687 commits
Select commit Hold shift + click to select a range
0dfdf37
feature(code/frontend): implement admin page import modal design (#28…
WangQianliang Jan 12, 2019
59b7194
[Code] disable plugin download (#28549)
spacedragon Jan 13, 2019
fe88314
feature(code/frontend): admain page sort projects (#28150)
WangQianliang Jan 14, 2019
deb8734
feature(code/frontend): setup guide (#28223)
WangQianliang Jan 14, 2019
a2d7cd1
[Code] Add search filter (#27831)
mw-ding Jan 14, 2019
d13c15b
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Jan 14, 2019
25042bd
Code: fix ts langserver launch cwd and its version
zfy0701 Jan 15, 2019
7fc2014
Code: lock down typescript deps for typescript langserver to ~3.1.1
zfy0701 Jan 15, 2019
f11e080
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Jan 15, 2019
517a1b3
[Code] clean temporary folder after patching (#28805)
spacedragon Jan 16, 2019
22e5878
[Code] Remove absolute local path from esqueue payload (#28741)
mw-ding Jan 16, 2019
18f11e2
[Code] enforce ES type to be _doc
mw-ding Jan 16, 2019
0753b43
[Code] fix editor background color
Jan 16, 2019
fb703b1
[Code] infinite scroll for commit history (#28749)
spacedragon Jan 16, 2019
fbdc718
fix(code/frontend): stretch main page to fit wide screen (#28817)
WangQianliang Jan 16, 2019
59fd57d
chore(code/frontend): remove admin recent projects panel, project sta…
WangQianliang Jan 16, 2019
02b8e9e
fix(code/frontend): fix markdown styles (#28820)
WangQianliang Jan 16, 2019
88908d4
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Jan 16, 2019
840a8a8
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Jan 21, 2019
6876da8
[Code] Improving Kibana server logging (#28886)
zfy0701 Jan 21, 2019
04200dc
[Code] Improve admin page project status (#28810)
mw-ding Jan 21, 2019
72feb76
fix(code/frontend): manage language servers button (#28813)
WangQianliang Jan 21, 2019
3635a78
[Code] Only config master code node rather than config all the nodes …
spacedragon Jan 21, 2019
0a622f2
[Code] Remove absolute repo path from logging (#29041)
mw-ding Jan 21, 2019
42e64a1
[Code] change back to `codeNode` (#29073)
spacedragon Jan 22, 2019
97b4c1c
Code: Remove the use of type for elasticsearch (#28881)
zfy0701 Jan 22, 2019
b4d714a
[Code] shortcut modal and shortcuts (#29061)
spacedragon Jan 22, 2019
8a59f36
[Code] fix test (#29074)
mw-ding Jan 22, 2019
a9b3fe1
[Code] use master version of our nodegit
Jan 22, 2019
c391ec7
Code: Upgrade typescript language server version
zfy0701 Jan 22, 2019
b40bfde
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Jan 23, 2019
28c3ac2
Code: don't put detail error info to response (#29143)
zfy0701 Jan 23, 2019
9eec96f
[Code] Bind client host of java langserver to localhost (#29149)
Jan 23, 2019
9d6fbb3
[Code]: don't need to use font-family in hover content, don't need ex…
zfy0701 Jan 23, 2019
cefa8f1
[Code] Add random string to language server workspace (#29079)
spacedragon Jan 23, 2019
bfe7bca
[Code] Apply socket.io request authentication (#29088)
mw-ding Jan 23, 2019
b902506
[Code] revert back security check (#29154)
mw-ding Jan 23, 2019
a1dfdbc
[Code] fix find reference to jump to wrong URL (#29144)
spacedragon Jan 23, 2019
5b1ab0f
[Code] New design for search scope (#29238)
mw-ding Jan 24, 2019
6459061
[Code] Apply socket authentication to non-code node (#29246)
mw-ding Jan 24, 2019
602d396
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Jan 24, 2019
f25c9b9
[Code] added symbol type to file types (#28808)
spacedragon Jan 25, 2019
51cda46
[Code] Use generator to iterate index requests (#29243)
spacedragon Jan 25, 2019
572f738
[Code] every tab in code page has a url (#29310)
spacedragon Jan 28, 2019
97752ca
[Code] Apply new design to search page (#29326)
mw-ding Jan 28, 2019
bb562de
[Code] show instruction of install plugin (#29309)
spacedragon Jan 28, 2019
25e6742
[Code] Update change basePath to server.basePath
legrego Jan 29, 2019
7172f61
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Jan 29, 2019
8b1b228
[Code] disable scroll beyond (#29399)
spacedragon Jan 29, 2019
94b4144
fix(code/frontend): fix structure tree issues (#28830)
WangQianliang Jan 29, 2019
ba8deb1
fix(code/frontend): design review issues (#29054)
WangQianliang Jan 29, 2019
10d2aba
[Code]: fix query bar tests (#29525)
zfy0701 Jan 30, 2019
8d5ef9c
fix(code/frontend): EuiTitle children type error (#29569)
WangQianliang Jan 30, 2019
c98e74d
[Code] Link commit ID to diff page (#29308)
spacedragon Jan 30, 2019
c06366f
[Code] support cross repo jump definition (#29570)
spacedragon Jan 30, 2019
cfa0dd7
feature(code): main page error page when file is binary or unsupporte…
WangQianliang Jan 30, 2019
35af595
fix(code/frontend): EuiTitle children type error (#29572)
WangQianliang Jan 30, 2019
f9c93be
[code] Add a config option to enable the developing language servers.…
Jan 30, 2019
dbb0730
[Code] Fix query bar snapshot test (#29601)
mw-ding Jan 30, 2019
990615e
[Code] Implement the new designed repository search page (#29400)
mw-ding Jan 30, 2019
1745988
apply code logo (#29505)
WangQianliang Jan 30, 2019
39f1ac0
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Jan 30, 2019
7189ee3
[Code] expandable reference panel (#29401)
spacedragon Jan 31, 2019
0e1d197
[Code] add the button group in Directory View (#29491)
spacedragon Jan 31, 2019
96a30ac
fix(code/frontend): click file node (#29597)
WangQianliang Jan 31, 2019
143c4ca
fix(code/frontend): use css calc() wrong (#29582)
WangQianliang Jan 31, 2019
8e50a57
[Code] Don't let user select text in more than one editor (#29575)
spacedragon Jan 31, 2019
aa10cb4
[Code] fix file tree bugs (#29412)
WangQianliang Jan 31, 2019
57181c4
[Code] fix some path can't be opened (#29682)
spacedragon Jan 31, 2019
ccd86d9
[code] Hotfix for the disable logic of the developing language server…
Jan 31, 2019
e5f198d
[Code] blame in main (#29318)
WangQianliang Jan 31, 2019
b5bb4e9
fix(code/frontend): side tab width (#29590)
WangQianliang Jan 31, 2019
ac45eca
[Code] diff page (#29327)
WangQianliang Jan 31, 2019
35c6125
[code] NFC: Fix the CI failure. (#29693)
Jan 31, 2019
03af19f
feature(code/frontend): implement new main page design (#29603)
WangQianliang Jan 31, 2019
1e25ad8
[Code]: Upgrade typescript server version
zfy0701 Jan 31, 2019
02ac170
[Code] fix hover problems (#29802)
spacedragon Feb 1, 2019
c544348
fix(code/frontend): lint errors and type check errors (#29735)
WangQianliang Feb 1, 2019
3de4a68
[Code] Click on search resule line should go the source view page (#2…
mw-ding Feb 1, 2019
9feea7b
[Code] fix layout (#29805)
spacedragon Feb 1, 2019
360fa7d
[code] WIP: Implement a go language server launcher at external mode.…
Feb 1, 2019
6ce1b5f
[Code] use `replace` instead of `push` when enter a repo (#29813)
spacedragon Feb 1, 2019
0523fb3
[Code] index progress should not trigger the clone status in source v…
mw-ding Feb 1, 2019
4dce0ea
[Code] show setup guide if no code node available (#29819)
spacedragon Feb 1, 2019
9f566da
[Code] Disable index/settings button when repo is in clone (#29901)
mw-ding Feb 2, 2019
1c73761
[Code] remove file path dropdown (#29902)
spacedragon Feb 2, 2019
a611445
[Code] close reference panel when file changes (#29899)
spacedragon Feb 2, 2019
7c6e21e
[Code] suppress delete status not found error log (#29905)
mw-ding Feb 3, 2019
892f40b
[Code] Add initial functional tests (#29710)
mw-ding Feb 3, 2019
5dc2a58
[Code] fix editor layout (#29918)
spacedragon Feb 4, 2019
d3ceee5
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Feb 9, 2019
e7e4491
fix(code/frontend): close import modal after import project (#29917)
WangQianliang Feb 9, 2019
ddc23ee
[Code]: remove manually created theme file to avoid type errors using…
zfy0701 Feb 9, 2019
db60492
[Code] Apply repository scope to all search/typeahead APIs (#29920)
mw-ding Feb 11, 2019
c6419d1
[Code] Disable delete button if repository is already in delete (#30786)
mw-ding Feb 12, 2019
90d9485
[Code] boost exact match for symbol qname (#30913)
mw-ding Feb 13, 2019
3ee3deb
[Code] make qname search case sensitive (#30914)
mw-ding Feb 13, 2019
82a5ff4
[Code] force refresh index for repository related data write (#30915)
mw-ding Feb 13, 2019
4b06222
[Code] force refresh the document when create code node info (#30916)
spacedragon Feb 13, 2019
e23d98e
[Code] Don't show file that is too large (#30912)
spacedragon Feb 13, 2019
9031913
[Code] fix typeahead style (#30921)
mw-ding Feb 14, 2019
c0d987c
[Code] Retry checkout workspace on unknown status repository (#30784)
mw-ding Feb 14, 2019
f2956ad
[Code] Apply user role check and remove the stale isAdmin config (#30…
mw-ding Feb 14, 2019
572a2b5
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Feb 14, 2019
c47b4ea
[Code] launch Java langserver with bundled JDK (#31070)
Feb 14, 2019
4a6738f
Code: fix path errors related to Java language server
zfy0701 Feb 14, 2019
a950c01
Code: fix style import path
zfy0701 Feb 14, 2019
4812cfb
[Code] check repos on local disk when start (#30919)
spacedragon Feb 14, 2019
4a263e4
[Code] Fix Java launcher (#31109)
Feb 14, 2019
9b8d1c5
[Code] minor changes for file tree (#29914)
spacedragon Feb 14, 2019
bcba5cb
Code: fix streams path
zfy0701 Feb 14, 2019
669b36a
[Code] Improve the symbol search query handling for case (#31098)
mw-ding Feb 14, 2019
aa22954
Code: symbol search client don't need to use lower case
zfy0701 Feb 14, 2019
75e3497
Code: fix type errors and remove uneccesary deps
zfy0701 Feb 14, 2019
a088554
[Code] fix type errors (#31221)
spacedragon Feb 15, 2019
f239983
[Code] Use env inheritted from parent process (#31237)
Feb 18, 2019
7018e64
[Code] improve tree api performance (#31386)
spacedragon Feb 18, 2019
63cfa46
fix(code/frontend): apply commit page url pattern convention of githu…
WangQianliang Feb 19, 2019
be376d1
Merge remote-tracking branch 'origin/master' into feature/merge-code
zfy0701 Feb 20, 2019
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
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
  •  
  •  
  •  
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"react-dom": "^16.6.0",
"react-grid-layout": "^0.16.2",
"react-input-range": "^1.3.0",
"react-markdown": "^3.1.4",
"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 @@ -262,6 +262,7 @@
"@types/bluebird": "^3.1.1",
"@types/boom": "^7.2.0",
"@types/chance": "^1.0.0",
"@types/cheerio": "^0.22.10",
"@types/classnames": "^2.2.3",
"@types/d3": "^3.5.41",
"@types/dedent": "^0.7.0",
Expand Down Expand Up @@ -303,7 +304,7 @@
"@types/redux-actions": "^2.2.1",
"@types/rimraf": "^2.0.2",
"@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 @@ -377,7 +378,7 @@
"mocha": "3.3.0",
"murmurhash3js": "3.0.1",
"mutation-observer": "^1.0.3",
"nock": "8.0.0",
"nock": "10.0.4",
Copy link
Contributor

@spalger spalger Dec 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: Looks like nock just dropped support for older versions node versions in v8 and v10

"node-sass": "^4.9.4",
"normalize-path": "^3.0.0",
"pixelmatch": "4.0.2",
Expand All @@ -389,7 +390,7 @@
"regenerate": "^1.4.0",
"sass-lint": "^1.12.1",
"simple-git": "1.37.0",
"sinon": "^5.0.7",
"sinon": "^7.2.2",
Copy link
Contributor

@spalger spalger Dec 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: Sinon 6 shouldn't have any breaking changes, and upgrades the internal lolex dep which prevents negative tick values, which isn't a problem for us.

"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
2 changes: 2 additions & 0 deletions src/dev/build/build_distributables.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import {
ExtractNodeBuildsTask,
InstallDependenciesTask,
OptimizeBuildTask,
PatchNativeModulesTask,
RemovePackageJsonDepsTask,
RemoveWorkspacesTask,
TranspileBabelTask,
Expand Down Expand Up @@ -128,6 +129,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,3 +37,4 @@ export * from './transpile_typescript_task';
export * from './transpile_scss_task';
export * from './verify_env_task';
export * from './write_sha_sums_task';
export * from './patch_native_modules_task';
4 changes: 3 additions & 1 deletion src/dev/build/tasks/optimize_task.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export const OptimizeBuildTask = {
await exec(log, kibanaScript, kibanaArgs, {
cwd: build.resolvePath('.'),
env: {
FORCE_DLL_CREATION: 'true'
FORCE_DLL_CREATION: 'true',
// To make DLL pass
NODE_OPTIONS: '--max-old-space-size=4096'
},
});

Expand Down
90 changes: 90 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,90 @@
/*
* 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 '../../../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 info = binaryInfo(plat, arch);
const downloadUrl = info.hosted_tarball;
const packageName = info.package_name;
const downloadPath = build.resolvePathForPlatform(platform, '.nodegit_binaries', packageName);
const extractDir = await downloadAndExtractTarball(downloadUrl, downloadPath, log, 3);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to delete the downloadPath and extractDir after the scanCopy()?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.


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 => {
await patchNodeGit(config, log, build, platform);
}));
}
};
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 { gis } from './plugins/gis';
import { licenseManagement } from './plugins/license_management';
import { cloud } from './plugins/cloud';
Expand Down Expand Up @@ -54,6 +55,7 @@ module.exports = function (kibana) {
logstash(kibana),
beats(kibana),
apm(kibana),
code(kibana),
gis(kibana),
canvas(kibana),
licenseManagement(kibana),
Expand Down
46 changes: 44 additions & 2 deletions x-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,51 @@
"@kbn/plugin-helpers": "9.0.2",
"@kbn/test": "1.0.0",
"@types/angular": "1.6.50",
"@types/boom": "^7.2.0",
"@types/d3-array": "^1.2.1",
"@types/d3-scale": "^2.0.0",
"@types/d3-shape": "^1.2.2",
"@types/d3-time": "^1.0.7",
"@types/d3-time-format": "^2.1.0",
"@types/elasticsearch": "^5.0.30",
"@types/expect.js": "^0.3.29",
"@types/file-type": "^5.2.1",
"@types/get-port": "^3.2.0 ",
"@types/git-url-parse": "^9.0.0",
"@types/glob": "^5.0.35",
"@types/graphql": "^0.13.1",
"@types/history": "^4.6.2",
"@types/jest": "^23.3.1",
"@types/joi": "^13.4.2",
"@types/js-yaml": "^3.11.1",
"@types/jsonwebtoken": "^7.2.7",
"@types/lodash": "^3.10.1",
"@types/mkdirp": "^0.5.2",
"@types/mocha": "^5.2.5",
"@types/nock": "^9.3.0",
"@types/node": "^10.12.12",
"@types/node-fetch": "^2.1.4",
"@types/nodegit": "^0.22.1",
"@types/papaparse": "^4.5.5",
"@types/pngjs": "^3.3.1",
"@types/prop-types": "^15.5.3",
"@types/proper-lockfile": "^3.0.0",
"@types/react": "16.3.14",
"@types/react-datepicker": "^1.1.5",
"@types/react-dom": "^16.0.5",
"@types/react-infinite-scroller": "^1.2.0",
"@types/react-redux": "^6.0.6",
"@types/react-router-dom": "^4.3.1",
"@types/react-test-renderer": "^16.0.3",
"@types/reduce-reducers": "^0.1.3",
"@types/sinon": "^5.0.1",
"@types/redux-actions": "^2.2.1",
"@types/rimraf": "^2.0.2",
"@types/sinon": "^7.0.0",
"@types/socket.io": "^1.4.38",
"@types/socket.io-client": "^1.4.32",
"@types/styled-components": "^3.0.1",
"@types/supertest": "^2.0.5",
"@types/tar-fs": "^1.16.1",
"@types/uuid": "^3.4.4",
"abab": "^1.0.4",
"ansi-colors": "^3.0.5",
Expand Down Expand Up @@ -106,7 +127,7 @@
"run-sequence": "^2.2.1",
"sass-loader": "^7.1.0",
"simple-git": "1.37.0",
"sinon": "^5.0.7",
"sinon": "^7.2.2",
"supertest": "^3.1.0",
"supertest-as-promised": "^4.0.2",
"tmp": "0.0.31",
Expand All @@ -121,6 +142,8 @@
"dependencies": {
"@elastic/datemath": "5.0.2",
"@elastic/eui": "6.7.4",
"@elastic/javascript-typescript-langserver": "^0.1.10",
"@elastic/lsp-extension": "^0.1.1",
"@elastic/node-crypto": "0.1.2",
"@elastic/numeral": "2.3.2",
"@kbn/babel-preset": "1.0.0",
Expand Down Expand Up @@ -168,21 +191,27 @@
"elasticsearch": "^15.2.0",
"extract-zip": "1.5.0",
"file-saver": "^1.3.8",
"file-type": "^8.1.0",
"font-awesome": "4.4.0",
"formsy-react": "^1.1.5",
"get-port": "2.1.0",
"getos": "^3.1.0",
"git-url-parse": "^9.0.1",
"github-markdown-css": "^2.10.0",
"glob": "6.0.4",
"graphql": "^0.13.2",
"graphql-fields": "^1.0.2",
"graphql-tag": "^2.9.2",
"graphql-tools": "^3.0.2",
"h2o2": "^8.1.2",
"handlebars": "^4.0.10",
"hapi-auth-cookie": "^9.0.0",
"history": "4.7.2",
"history-extra": "^4.0.2",
"humps": "2.0.1",
"icalendar": "0.7.1",
"idx": "^2.5.2",
"immer": "^1.5.0",
"inline-style": "^2.0.0",
"intl": "^1.2.5",
"io-ts": "^1.4.2",
Expand All @@ -207,8 +236,10 @@
"moment": "^2.20.1",
"moment-duration-format": "^1.3.0",
"moment-timezone": "^0.5.14",
"monaco-editor": "^0.14.3",
"ngreact": "^0.5.1",
"node-fetch": "^2.1.2",
"nodegit": "git+https://github.com/elastic/nodegit.git",
"nodemailer": "^4.6.4",
"object-path-immutable": "^0.5.3",
"oppsy": "^2.0.0",
Expand All @@ -218,7 +249,9 @@
"pluralize": "3.1.0",
"pngjs": "3.3.1",
"polished": "^1.9.2",
"popper.js": "^1.14.3",
"prop-types": "^15.6.0",
"proper-lockfile": "^3.0.2",
"puid": "1.0.5",
"puppeteer-core": "^1.7.0",
"raw-loader": "0.5.1",
Expand All @@ -229,6 +262,8 @@
"react-datetime": "^2.14.0",
"react-dom": "^16.6.0",
"react-dropzone": "^4.2.9",
"react-infinite-scroller": "^1.2.4",
"react-markdown": "^3.4.1",
"react-markdown-renderer": "^1.4.0",
"react-portal": "^3.2.0",
"react-redux": "^5.0.7",
Expand All @@ -245,6 +280,7 @@
"redux": "4.0.0",
"redux-actions": "2.2.1",
"redux-observable": "^1.0.0",
"redux-saga": "^0.16.0",
"redux-thunk": "2.3.0",
"redux-thunks": "^1.0.0",
"request": "^2.88.0",
Expand All @@ -254,7 +290,10 @@
"rison-node": "0.3.1",
"rxjs": "^6.2.1",
"semver": "5.1.0",
"socket.io": "^2.1.1",
"socket.io-client": "^2.1.1",
"squel": "^5.12.2",
"stats-lite": "^2.2.0",
"style-it": "2.1.2",
"styled-components": "3.3.3",
"tar-fs": "1.13.0",
Expand All @@ -271,6 +310,9 @@
"url-parse": "1.3.0",
"uuid": "3.0.1",
"venn.js": "0.2.9",
"vscode-jsonrpc": "^3.6.2",
"vscode-languageserver": "^4.2.1",
"vscode-languageserver-types": "^3.10.0",
"xregexp": "3.2.0"
},
"engines": {
Expand Down
19 changes: 19 additions & 0 deletions x-pack/plugins/code/common/git_blame.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export interface GitBlame {
committer: {
name: string;
email: string;
};
startLine: number;
lines: number;
commit: {
id: string;
message: string;
date: string;
};
}
Loading