-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Reporting/NP Migration] Remove server.expose of ExportTypeRegistry #50973
Changes from all commits
723ab00
ed80fea
a2e86d7
fca303f
87ff2bc
d00f45c
358d198
c76eb67
aab588b
b37de63
152eca2
cf6f5b4
0c4dc74
bde7728
2482657
226a34b
c411021
a50757d
7870e26
716cf4c
c8fb7cd
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 |
---|---|---|
|
@@ -50,3 +50,9 @@ export const PNG_JOB_TYPE = 'PNG'; | |
export const CSV_JOB_TYPE = 'csv'; | ||
export const CSV_FROM_SAVEDOBJECT_JOB_TYPE = 'csv_from_savedobject'; | ||
export const USES_HEADLESS_JOB_TYPES = [PDF_JOB_TYPE, PNG_JOB_TYPE]; | ||
|
||
export const LICENSE_TYPE_TRIAL = 'trial'; | ||
export const LICENSE_TYPE_BASIC = 'basic'; | ||
export const LICENSE_TYPE_STANDARD = 'standard'; | ||
export const LICENSE_TYPE_GOLD = 'gold'; | ||
export const LICENSE_TYPE_PLATINUM = 'platinum'; | ||
Comment on lines
+54
to
+58
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. Should probably use |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import { | ||
CSV_JOB_TYPE as jobType, | ||
LICENSE_TYPE_TRIAL, | ||
LICENSE_TYPE_BASIC, | ||
LICENSE_TYPE_STANDARD, | ||
LICENSE_TYPE_GOLD, | ||
LICENSE_TYPE_PLATINUM, | ||
} from '../../common/constants'; | ||
import { ExportTypeDefinition, ESQueueCreateJobFn, ESQueueWorkerExecuteFn } from '../../types'; | ||
import { metadata } from './metadata'; | ||
import { createJobFactory } from './server/create_job'; | ||
import { executeJobFactory } from './server/execute_job'; | ||
import { JobParamsDiscoverCsv, JobDocPayloadDiscoverCsv } from './types'; | ||
|
||
export const getExportType = (): ExportTypeDefinition< | ||
JobParamsDiscoverCsv, | ||
ESQueueCreateJobFn<JobParamsDiscoverCsv>, | ||
JobDocPayloadDiscoverCsv, | ||
ESQueueWorkerExecuteFn<JobDocPayloadDiscoverCsv> | ||
> => ({ | ||
...metadata, | ||
jobType, | ||
jobContentExtension: 'csv', | ||
createJobFactory, | ||
executeJobFactory, | ||
validLicenses: [ | ||
LICENSE_TYPE_TRIAL, | ||
LICENSE_TYPE_BASIC, | ||
LICENSE_TYPE_STANDARD, | ||
LICENSE_TYPE_GOLD, | ||
LICENSE_TYPE_PLATINUM, | ||
], | ||
}); |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import { | ||
PNG_JOB_TYPE as jobType, | ||
LICENSE_TYPE_TRIAL, | ||
LICENSE_TYPE_STANDARD, | ||
LICENSE_TYPE_GOLD, | ||
LICENSE_TYPE_PLATINUM, | ||
} from '../../common/constants'; | ||
import { ExportTypeDefinition, ESQueueCreateJobFn, ESQueueWorkerExecuteFn } from '../../types'; | ||
import { createJobFactory } from './server/create_job'; | ||
import { executeJobFactory } from './server/execute_job'; | ||
import { metadata } from './metadata'; | ||
import { JobParamsPNG, JobDocPayloadPNG } from './types'; | ||
|
||
export const getExportType = (): ExportTypeDefinition< | ||
JobParamsPNG, | ||
ESQueueCreateJobFn<JobParamsPNG>, | ||
JobDocPayloadPNG, | ||
ESQueueWorkerExecuteFn<JobDocPayloadPNG> | ||
> => ({ | ||
...metadata, | ||
jobType, | ||
jobContentEncoding: 'base64', | ||
jobContentExtension: 'PNG', | ||
createJobFactory, | ||
executeJobFactory, | ||
validLicenses: [ | ||
LICENSE_TYPE_TRIAL, | ||
LICENSE_TYPE_STANDARD, | ||
LICENSE_TYPE_GOLD, | ||
LICENSE_TYPE_PLATINUM, | ||
], | ||
}); |
This file was deleted.
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.
🙇