Change the entity name from [Interpreter Group].[Interpreter Name] to [Interpreter Name]

This commit is contained in:
sooyeon shin 2020-12-30 22:56:12 +09:00
parent f188b40d5b
commit 16f70e8a4f
6 changed files with 5 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 155 KiB

View file

@ -37,8 +37,7 @@ You can add new credentials in the dropdown menu for your data source which can
<img class="img-responsive" src="{{BASE_PATH}}/assets/themes/zeppelin/img/docs-img/credential_tab.png" width="180px"/>
**Entity** can be the key that distinguishes each credential sets.(We suggest that the convention of the **Entity** is `[Interpreter Group].[Interpreter Name]`.)
Please see [what is interpreter group](../../usage/interpreter/overview.html#what-is-interpreter-group) for the detailed information.
**Entity** can be the key that distinguishes each credential sets.(We suggest that the convention of the **Entity** is `Interpreter Name`.)
Type **Username & Password** for your own credentials. ex) Mysql user & password of the JDBC Interpreter.

View file

@ -49,7 +49,7 @@
(input)="onEntityInput($event)"
formControlName="entity"
nz-input
placeholder="[Group].[Name]"/>
placeholder="Interpreter Name"/>
<nz-autocomplete nzBackfill #auto>
<nz-auto-option *ngFor="let option of interpreterFilteredNames" [nzValue]="option">
{{ option }}

View file

@ -156,7 +156,7 @@ export class CredentialComponent implements OnInit {
getInterpreterNames() {
this.interpreterService.getInterpretersSetting().subscribe(data => {
this.interpreterNames = data.map(e => `${e.group}.${e.name}`);
this.interpreterNames = data.map(e => `${e.name}`);
this.interpreterFilteredNames = this.interpreterNames.slice(0, 10);
this.cdr.markForCheck();
});

View file

@ -96,7 +96,7 @@ function CredentialController($scope, $rootScope, $http, baseUrlSrv, ngToast) {
.success(function(data, status, headers, config) {
for (let setting = 0; setting < data.body.length; setting++) {
$scope.availableInterpreters.push(
data.body[setting].group + '.' + data.body[setting].name);
data.body[setting].name);
}
angular.element('#entityname').autocomplete({
source: $scope.availableInterpreters,

View file

@ -59,7 +59,7 @@ limitations under the License.
</thead>
<tr>
<td>
<input id="entityname" ng-model="entity" placeholder="[Interpreter Group].[Interpreter Name]"/>
<input id="entityname" ng-model="entity" placeholder="Interpreter Name"/>
</td>
<td>
<textarea msd-elastic ng-model="username"></textarea>