Skip to content

Commit

Permalink
[Code] update worker queue index name to exclude from code user/admin…
Browse files Browse the repository at this point in the history
… roles (#33223)
  • Loading branch information
mw-ding authored Mar 14, 2019
1 parent 27d2763 commit 5b8e0e2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/code/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const code = (kibana: any) =>
config(Joi: any) {
return Joi.object({
enabled: Joi.boolean().default(true),
queueIndex: Joi.string().default('.code-worker-queue'),
queueIndex: Joi.string().default('.code_internal-worker-queue'),
// 1 hour by default.
queueTimeout: Joi.number().default(moment.duration(1, 'hour').asMilliseconds()),
// The frequency which update scheduler executes. 5 minutes by default.
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/code/server/__tests__/clone_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const config = {

const options = {
enabled: true,
queueIndex: '.code-worker-queue',
queueIndex: '.code_internal-worker-queue',
queueTimeout: 60 * 60 * 1000, // 1 hour by default
updateFreqencyMs: 5 * 60 * 1000, // 5 minutes by default
indexFrequencyMs: 24 * 60 * 60 * 1000, // 1 day by default
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/code/server/__tests__/git_operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('git_operations', () => {
};
const options = {
enabled: true,
queueIndex: '.code-worker-queue',
queueIndex: '.code_internal-worker-queue',
queueTimeout: 60 * 60 * 1000, // 1 hour by default
updateFreqencyMs: 5 * 60 * 1000, // 5 minutes by default
indexFrequencyMs: 24 * 60 * 60 * 1000, // 1 day by default
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/code/server/__tests__/lsp_indexer_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const repoUri = 'github.com/Microsoft/TypeScript-Node-Starter';

const options = {
enabled: true,
queueIndex: '.code-worker-queue',
queueIndex: '.code_internal-worker-queue',
queueTimeout: 60 * 60 * 1000, // 1 hour by default
updateFreqencyMs: 5 * 60 * 1000, // 5 minutes by default
indexFrequencyMs: 24 * 60 * 60 * 1000, // 1 day by default
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/code/server/__tests__/lsp_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('lsp_service tests', () => {

const options = {
enabled: true,
queueIndex: '.code-worker-queue',
queueIndex: '.code_internal-worker-queue',
queueTimeout: 60 * 60 * 1000, // 1 hour by default
updateFreqencyMs: 5 * 60 * 1000, // 5 minutes by default
indexFrequencyMs: 24 * 60 * 60 * 1000, // 1 day by default
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/code/server/lsp/lsp_test_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {InstallManager} from "./install_manager";

const options = {
enabled: true,
queueIndex: '.code-worker-queue',
queueIndex: '.code_internal-worker-queue',
queueTimeout: 60 * 60 * 1000, // 1 hour by default
updateFreqencyMs: 5 * 60 * 1000, // 5 minutes by default
indexFrequencyMs: 24 * 60 * 60 * 1000, // 1 day by default
Expand Down

0 comments on commit 5b8e0e2

Please sign in to comment.