Skip to content
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

Fix issue about endpoint test connection #3661 #3672

Merged
merged 2 commits into from
Nov 29, 2017

Conversation

pengpengshui
Copy link
Contributor

Fix issue about test connection with wrong password in endpoint
Fix bug about inline alert undisappear

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 56.215% when pulling 962943e on pengpengshui:ping_endpoint into 03e13af on vmware:ping_endpoint.

Copy link
Contributor

@steven-zou steven-zou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use compare values to find the value diffs

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 56.247% when pulling f22ebee on pengpengshui:ping_endpoint into 03e13af on vmware:ping_endpoint.


//private
compareValue(a: any, b: any): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use functions in the utils.js

if (!(this.targetNameHasChanged || this.endpointHasChanged || this.checkboxHasChanged)) {
return;//Avoid invalid submitting
}

let payload: Endpoint = this.initEndpoint();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use empty {}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let payload = this.getChanges()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add '[key: string]: any | any[]' to endpoint interface

</div>
<div class="form-group">
<label for="destination_password" class="col-md-4 form-group-label-override">{{ 'DESTINATION.PASSWORD' | translate }}</label>
<input type="password" class="col-md-8" id="destination_password" [disabled]="testOngoing" [readonly]="!editable" [(ngModel)]="target.password" size="20" name="password" #password="ngModel" (focus)="clearPassword($event)">
<input type="password" class="col-md-8" id="destination_password" [disabled]="testOngoing" [readonly]="!editable" [(ngModel)]="target.password" size="20" name="password" #password="ngModel">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use inProgress to replace testOngoing || Ongoing

Copy link
Contributor

@steven-zou steven-zou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 56.215% when pulling 5f93735 on pengpengshui:ping_endpoint into 03e13af on vmware:ping_endpoint.

@ywk253100 ywk253100 merged commit 3534d4d into goharbor:ping_endpoint Nov 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants