mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* removed internal param * fixed tests * fixed tests Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
This commit is contained in:
parent
4eccd10a77
commit
d84c18ae0a
7 changed files with 3 additions and 14 deletions
|
@ -61,7 +61,6 @@ const optionalArchivePackageProps: readonly OptionalPackageProp[] = [
|
|||
'readme',
|
||||
'assets',
|
||||
'data_streams',
|
||||
'internal',
|
||||
'license',
|
||||
'type',
|
||||
'categories',
|
||||
|
|
|
@ -54,15 +54,11 @@ export async function getPackages(
|
|||
});
|
||||
// get the installed packages
|
||||
const packageSavedObjects = await getPackageSavedObjects(savedObjectsClient);
|
||||
// filter out any internal packages
|
||||
const savedObjectsVisible = packageSavedObjects.saved_objects.filter(
|
||||
(o) => !o.attributes.internal
|
||||
);
|
||||
const packageList = registryItems
|
||||
.map((item) =>
|
||||
createInstallableFrom(
|
||||
item,
|
||||
savedObjectsVisible.find(({ id }) => id === item.name)
|
||||
packageSavedObjects.saved_objects.find(({ id }) => id === item.name)
|
||||
)
|
||||
)
|
||||
.sort(sortByName);
|
||||
|
|
|
@ -530,7 +530,7 @@ export async function createInstallation(options: {
|
|||
installSource: InstallSource;
|
||||
}) {
|
||||
const { savedObjectsClient, packageInfo, installSource } = options;
|
||||
const { internal = false, name: pkgName, version: pkgVersion } = packageInfo;
|
||||
const { name: pkgName, version: pkgVersion } = packageInfo;
|
||||
const removable = !isUnremovablePackage(pkgName);
|
||||
const toSaveESIndexPatterns = generateESIndexPatterns(packageInfo.data_streams);
|
||||
|
||||
|
@ -549,7 +549,6 @@ export async function createInstallation(options: {
|
|||
es_index_patterns: toSaveESIndexPatterns,
|
||||
name: pkgName,
|
||||
version: pkgVersion,
|
||||
internal,
|
||||
removable,
|
||||
install_version: pkgVersion,
|
||||
install_status: 'installing',
|
||||
|
|
|
@ -96,9 +96,7 @@ export async function fetchList(params?: SearchParams): Promise<RegistrySearchRe
|
|||
|
||||
export async function fetchFindLatestPackage(packageName: string): Promise<RegistrySearchResult> {
|
||||
const registryUrl = getRegistryUrl();
|
||||
const url = new URL(
|
||||
`${registryUrl}/search?package=${packageName}&internal=true&experimental=true`
|
||||
);
|
||||
const url = new URL(`${registryUrl}/search?package=${packageName}&experimental=true`);
|
||||
|
||||
setKibanaVersion(url);
|
||||
|
||||
|
|
|
@ -446,7 +446,6 @@ Object {
|
|||
"type": "search",
|
||||
},
|
||||
],
|
||||
"internal": false,
|
||||
"keep_policies_up_to_date": false,
|
||||
"name": "apache",
|
||||
"package_assets": Array [
|
||||
|
|
|
@ -668,7 +668,6 @@ const expectAssetsInstalled = ({
|
|||
],
|
||||
name: 'all_assets',
|
||||
version: '0.1.0',
|
||||
internal: false,
|
||||
removable: true,
|
||||
install_version: '0.1.0',
|
||||
install_status: 'installed',
|
||||
|
|
|
@ -457,7 +457,6 @@ export default function (providerContext: FtrProviderContext) {
|
|||
],
|
||||
name: 'all_assets',
|
||||
version: '0.2.0',
|
||||
internal: false,
|
||||
removable: true,
|
||||
install_version: '0.2.0',
|
||||
install_status: 'installed',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue