Commit graph

489 commits

Author SHA1 Message Date
Tyler Smalley
b593781009
Jest multi-project configuration (#77894)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-02 11:42:23 -08:00
Court Ewing
0b82cfeae7
Remove experimental code app (#49404)
* Fix erroneous code plugin import in apm

* Stop running legacy code plugin

* Stop testing code app and apis

* Remove code plugin source and deprecate config

* Remove code plugin docs

* Remove xpack.code translations

* Remove code import on api_integration

* Remove code privilege from security test

* remove two more mentions of code

* remove code es_archives

* remove code doc images
2019-10-28 11:40:27 -04:00
WangQianliang
d5cbb474eb
[Code] diff page (#46714)
* fix(code/frontend): enable diff page
2019-10-21 12:55:00 +08:00
Mengwei Ding
55349d7bbf
[Code] Migrate routers/elasticsearch clients/savedobjects clients to NP (#47643)
* Migrate the elasticsearch admin client

* initial router migration

* update the code service request

* more routes migration

* remove Boom

* remove redirect route

* test

* more route

* addressing comments

* remove the notFound

* Revert "remove Boom"

This reverts commit 7eda19ee6e5b001f46ce86e93bd9694d6a146976.

* handle isBoom

* more fixes

* minor fix

* shim security useRbacForRequest
2019-10-17 18:25:35 -07:00
Pengcheng Xu
2ef7122313
[Code] Reomve option:enableGitCertCheck (#48482) 2019-10-18 07:55:36 +08:00
Yang Yang
95181cf843
Space aware 1 on 1 (#47981)
* [Code] makes Code space aware.

For APIs related to repository, file, and search, user should only see
contents from repositories belongs to his/her space.

When the same repository is added in different spaces, they should point
to the same underlying repository. We use references from spaces to
repositories to represent this relationship.

This patch implements the 1:1 model, which means a repository can only be imported in on space.
2019-10-17 13:55:58 +08:00
Pengcheng Xu
ce67c5b30e
[Code] Add Java security manager options for Java langserver (#45862)
* [Code] Add Java security manager options for Java langserver

* [Code] Fix typo

* Fix some minor issues

* Adapt to new platform
2019-10-14 21:25:07 +08:00
Mengwei Ding
9957026e2a
[Code] Fix new platform configs (#47881)
* [Code] Fix new platform configs

* fix path
2019-10-11 10:38:16 -07:00
Mengwei Ding
8bdb20a1e0
[Code] migrate Code config/logging/feature service to new platform (#46664)
* [Code] code backend NP migration

* Move code plugin config to NP config service

* Move code plugin logger to NP logger service

* minor type error

* remove joi config

* addressing comments

* fix unit tests

* Migrate to xpack feature service for NP

* minor comments

* fix code mocha test scripts

* fix type

* fix i18nrc.json for code
2019-10-03 11:20:18 -07:00
Court Ewing
7ac8e4d9cc Move x-pack plugins/server/common to x-pack/legacy 2019-06-20 13:34:48 -04:00
Henry Wong
658d50440e
[code] Enrich the client capabilities with markup kind. (#39153)
In the lsp specification, initialize request can provide capability
options to the language server. However, for the minimize influence on
other language servers, nest capabilitiy options into `initialOptions`.
If there is no client capability options explicitly, use the one nested
 in `initialOptions`.
2019-06-20 13:47:55 +08:00
Yulong
5ad6ae7616
[Code] Cancel requests if workspace is unloaded (#39062)
* [Code] Cancel requests if a workspace is unloaded
* [Code] clear unnecessary code proxy
2019-06-20 09:32:41 +08:00
Mengwei Ding
88a5a86349
[Code] Improve error logging (#39137)
* [Code] Suppress the get index request count error if index request has been cancelled

* [Code] Skip index data migration if the original index does not exist
2019-06-19 08:38:54 -07:00
Yulong
0120f7cb57
[Code] Fix some texts cannot be hovered in blame page (#39233) 2019-06-19 14:38:30 +08:00
Yulong
0ed5ce2d03
[Code] Fix hard coded doc version link in app (#39232) 2019-06-19 10:54:39 +08:00
spalger
9d82f65a2a remove flaky tests (#38791) (#38849) (#39055) 2019-06-18 03:43:30 -07:00
WangQianliang
9d292232cd
fix(code/frontend): should match exactly the container name (#39046) 2019-06-18 09:43:25 +08:00
Tim Roes
2d37b05a43
Improve jest mocking infrastructure (#38760)
* Always mock metadata/chrome in OSS

* Enable jest env in jest mocks

* Exclude jest mocks in karma bundles

* Use setupFilesAfterEnv in config

* Remove chrome/metadata mock from x-pack

* Remove kuery mock

* Add missing mock to SIEM test

* Fix typo in mock import

* Remove top level capabilities x-pack mock

* Move kfetch mock to ui/public

* Move moment-timezone to mocks file

* Unmock kfetch in kfetch specific tests

* Make kfetch mock manual

* Removed unnecessary jest.mock

* Remove kfetch unmocks
2019-06-14 23:36:51 +02:00
Greg Thompson
c22b706b25
Upgrade EUI to 11.3.2 (#38262)
* eui 11.3.1

* EuiSuperSelect TS updates

* EuiColorPicker updates

* EuiBadge updates

* a11y updates

* i18n service updates

* remove unused translations

* move valueOfSelected logic to private method

* update EuiColorPicker class name

* Updated canvas storyshots

* i18n fixes; maps color selection position

* i18n snapshot updates

* update canvas storyshots

* snapshot updates

* 11.3.2

* maps colorpicker

* space avatar colorpicker
2019-06-14 15:45:35 -05:00
WangQianliang
3a9dd77293
fix(code/frontend): fix search filter duplicate items (#38858) 2019-06-14 10:12:52 +08:00
WangQianliang
9c57df5e3f
fix(code/frontend): fix style issues (#38748) 2019-06-14 10:04:57 +08:00
WangQianliang
c2f5cc1162
fix(code/frontend): auto focus import project inpt (#38860) 2019-06-14 10:04:34 +08:00
chongzhe
4e8206b380
[Code] udpate links in setup guide (#38928) 2019-06-13 13:06:55 -07:00
spalger
f2dd96b50a disable flaky test (#38849) 2019-06-12 16:40:33 -07:00
Mengwei Ding
ad19b6bb11
[Code] add beta label for code (#38814) 2019-06-12 12:25:00 -07:00
Fuyao Zhao
f877c78e95 Revert "[Code]: disable code by default in 7.2 (#38757)" (#38802)
This reverts commit 4886c4bb21.
2019-06-12 10:42:01 -07:00
Fuyao Zhao
4886c4bb21
[Code]: disable code by default in 7.2 (#38757) 2019-06-12 08:56:14 -07:00
spalger
c8d39feec8 skip flaky tests (#38791) 2019-06-12 08:05:35 -07:00
Yulong
d6cf22f9ff
[Code] fix a problem when using server connection in lsp proxy (#38750) 2019-06-12 16:08:53 +08:00
Pengcheng Xu
e766dbe43a
[Code] Use different connect direction for ctags langserver (#38659) 2019-06-12 13:31:02 +08:00
Yulong
a8b5220bac
[Code] fix gotoDefinition (#38523) 2019-06-12 13:24:29 +08:00
Mengwei Ding
6247f2ebc0
[Code] search experience fixes (#38617) 2019-06-11 15:14:01 -07:00
WangQianliang
53694b3b3d feature(code/frontend): confirm delete and reindex a repository (#38520) 2019-06-11 08:37:13 -07:00
WangQianliang
c7349fe476
fix(code/frontend): fix button group not match path type (#38530) 2019-06-11 15:53:36 +08:00
Yulong
9c36f5e343 [Code] stop respawn process after maxRespawn reached (#38392) 2019-06-10 14:18:05 -07:00
Mengwei Ding
b59e4f3afa
[Code] Add LRU Cache to accommodate git repo object for better resource management (#38516)
* [Code] Move getHeadRevision and getDefaultBranch into GitOperations

* Add LRU cache for Repository objects

* clean up Repository for clone and update

* Update unit tests

* more cleanup
2019-06-10 14:00:32 -07:00
Mengwei Ding
4c3e643897
[Code] Force reindex from beginning for index REST API (#38488) 2019-06-10 10:43:39 -07:00
WangQianliang
27e7863523
fix(code/frontend): should not have empty array as query (#38257) 2019-06-10 15:02:56 +08:00
WangQianliang
2e67d4da5f
fix(code/frontend): remove load project configs (#38264) 2019-06-10 11:41:50 +08:00
Yulong
72085249cc
[Code] fix Code multinode mode can't work when security is enabled (#37597) 2019-06-10 10:30:06 +08:00
Yulong
0069df982b
[Code] change the port number before respawn a new lang-server process (#38090) (#38375) 2019-06-08 09:52:40 +08:00
Mengwei Ding
7f334c011d
[Code] better limit the size of indexed files (#38327)
* [Code] better limit the size of indexed files

* [Code] separate the batch index helper for document and symbols
2019-06-07 12:26:19 -07:00
Davey Holler
8c609ad1b1
Cursor on symbol hover. (#38062) 2019-06-07 09:50:32 -07:00
Davey Holler
3d5eb72b6c
Fixing padding issues in the toolbar (#38315) 2019-06-07 09:50:06 -07:00
spalger
5f3777a5d4 Revert "[Code] change the port number before respawn a new lang-server process (#38090)"
This reverts commit 05947fed0c.
2019-06-06 22:55:55 -07:00
Yulong
05947fed0c
[Code] change the port number before respawn a new lang-server process (#38090) 2019-06-07 10:50:41 +08:00
renovate[bot]
cb15b358ea Update dependency history to v4.9.0 (#37799)
* Update dependency history to v4.9.0

* importing submodules is deprecated, import root package

* chore: bump history-extra to 5.0.1

compatible with history@^4.9.0
2019-06-06 17:33:39 -07:00
Mengwei Ding
fee3a82bb5
[Code] adjust clone progress and not found rendering in source view page (#38213) 2019-06-06 17:29:48 -07:00
Fuyao Zhao
3b099c6359
[Code]: remove hard code node heapsize (#38304) 2019-06-06 14:13:22 -07:00
Yulong
4d41e58d0e
[Code] improve setup guide (#38218) 2019-06-06 13:54:34 +08:00