You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by dg...@apache.org on 2021/02/12 14:04:34 UTC
[incubator-datalab] branch develop updated: [DATALAB-2188]:
Extended validation for library installation (#1072)
This is an automated email from the ASF dual-hosted git repository.
dgnatyshyn pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/develop by this push:
new 9ec326c [DATALAB-2188]: Extended validation for library installation (#1072)
9ec326c is described below
commit 9ec326c2674f41621a887c6630f8fc508f42c461
Author: Dmytro Gnatyshyn <42...@users.noreply.github.com>
AuthorDate: Fri Feb 12 16:04:26 2021 +0200
[DATALAB-2188]: Extended validation for library installation (#1072)
[DATALAB-2188]: Extended validation for library installation
---
.../exploratory/install-libraries/install-libraries.component.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/install-libraries/install-libraries.component.ts b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/install-libraries/install-libraries.component.ts
index 45bc6d5..fb6d6c4 100644
--- a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/install-libraries/install-libraries.component.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/install-libraries/install-libraries.component.ts
@@ -219,7 +219,7 @@ export class InstallLibrariesComponent implements OnInit, OnDestroy {
return lib.name.toLowerCase() === item.name.substring(0, item.name.lastIndexOf(':')).toLowerCase();
});
}
- } else if ( this.autoComplete === 'NONE') {
+ } else if ( this.autoComplete === 'NONE' || (this.autoComplete === 'ENABLED' && !this.filteredList?.length && this.group !== 'java')) {
this.selectedLib = {
name: this.lib.name,
version: this.lib.version,
@@ -232,6 +232,7 @@ export class InstallLibrariesComponent implements OnInit, OnDestroy {
public addLibrary(item): void {
if ((this.autoComplete === 'ENABLED' && !this.isLibSelected && this.filteredList?.length)
+ || this.lib.name.trim().length < 2
|| (this.selectedLib && this.selectedLib.isInSelectedList) || this.isVersionInvalid || this.autoComplete === 'UPDATING') {
return;
}
@@ -585,6 +586,7 @@ export class ErrorLibMessageDialogComponent {
`
]
})
+
export class LibInfoDialogComponent {
constructor(
public dialogRef: MatDialogRef<ErrorLibMessageDialogComponent>,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org