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

feat(dedicated): add iplb delete option for us #14243

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhelhali-soufien
Copy link
Contributor

Question Answer
Branch? master / release/** / develop
Bug fix? yes/no
New feature? yes/no
Breaking change? yes/no
Tickets Fix #MANAGER-15666
License BSD 3-Clause
  • Try to keep pull requests small so they can be easily reviewed.
  • Commits are signed-off
  • Only FR translations have been updated
  • Branch is up-to-date with target branch
  • Lint has passed locally
  • Standalone app was ran and tested locally
  • Ticket reference is mentioned in linked commits (internal only)
  • Breaking change is mentioned in relevant commits

Description

Related

 ref: MANAGER-15666

Signed-off-by: soufien mhelhali <[email protected]>
Copy link

sonarcloud bot commented Nov 25, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
20.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

"iplb_terminate_service_success": "Votre demande de suppression de votre service a été prise en compte. Un e-mail contenant la procédure vous a été envoyé.",
"iplb_terminate_service_error": "Une erreur est survenue lors de la demande de suppression de votre service. {{error}}",
"iplb_terminate_service_confirm_input": "Entrez \"TERMINATE\" dans le champ ci-dessous pour confirmer",
"iplb_terminate_service_terminate_valide": "Valider",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"iplb_terminate_service_terminate_valide": "Valider",
"iplb_terminate_service_terminate_valid": "Valider",

},
redirectTo: (transition) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we removing this redirection for empty case ?

Comment on lines +26 to +43
terminate() {
this.$http
.post(`/ipLoadbalancing/${this.service.serviceName}/terminate`)
.then(() => {
this.Alerter.success(
this.$translate.instant('iplb_terminate_service_success'),
);
})
.catch((err) => {
this.Alerter.error(
this.$translate.instant('iplb_terminate_service_error', {
t0: err.data ? err.data.message : err.message,
}),
this.alertId,
);
});
this.$uibModalInstance.close();
}
Copy link
Contributor

@sachinrameshn sachinrameshn Nov 26, 2024

Choose a reason for hiding this comment

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

Suggested change
terminate() {
this.$http
.post(`/ipLoadbalancing/${this.service.serviceName}/terminate`)
.then(() => {
this.Alerter.success(
this.$translate.instant('iplb_terminate_service_success'),
);
})
.catch((err) => {
this.Alerter.error(
this.$translate.instant('iplb_terminate_service_error', {
t0: err.data ? err.data.message : err.message,
}),
this.alertId,
);
});
this.$uibModalInstance.close();
}
terminate() {
this.isDeleting = true;
this.$http
.post(`/ipLoadbalancing/${this.service.serviceName}/terminate`)
.then(() => {
this.Alerter.success(
this.$translate.instant('iplb_terminate_service_success'),
);
this.$uibModalInstance.close();
})
.catch((err) => {
this.Alerter.error(
this.$translate.instant('iplb_terminate_service_error', {
t0: err.data ? err.data.message : err.message,
}),
this.alertId,
);
this.$uibModalInstance.dismiss();
})
.finally(() => {
this.isDeleting = false;
});
}

this.$http = $http;
this.Alerter = Alerter;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
$onInit() {
this.isDeleting = false;
}

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.

2 participants