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): delete vrack from billing autorenew page #13823

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mhelhali-soufien
Copy link
Contributor

@mhelhali-soufien mhelhali-soufien commented Oct 29, 2024

Question Answer
Branch? master
Bug fix? no
New feature? yes
Breaking change? no
Tickets Fix #MANAGER-15077
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

translation

  • CMT-19511

/* @ngInject */
constructor($scope, $translate, BillingTerminate, OvhApiVrack) {
this.$scope = $scope;
this.TERMINATE_PATTERN = /^TERMINATE$/;
Copy link
Contributor

Choose a reason for hiding this comment

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

Its good to keep this in constant file

Comment on lines 14 to 28
this.OvhApiVrack.Aapi()
.services({ serviceName: this.service })
.$promise.then((allServicesParam) => {
const services = Object.entries(allServicesParam).filter(
([, value]) => {
return Array.isArray(value) && value.length;
},
);
if (!services.length) {
this.$scope.isEmpty = true;
}
})
.finally(() => {
this.$scope.isLoading = false;
});
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be done on routing resolve so it is executed before page load

bindings: {
goBack: '<',
service: '<',
serviceType: '<',
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
serviceType: '<',
serviceType: '<',
isEmpty: '<'

Copy link

export default class TerminateVrackController {
/* @ngInject */
constructor($scope, $translate, BillingTerminate) {
this.$scope = $scope;
Copy link
Contributor

Choose a reason for hiding this comment

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

$scope to remove

Comment on lines 15 to 17
isEmpty: /* @ngInject */ (OvhApiVrack, $transition$) =>
OvhApiVrack.Aapi()
.services({ serviceName: $transition$.params().service })
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
isEmpty: /* @ngInject */ (OvhApiVrack, $transition$) =>
OvhApiVrack.Aapi()
.services({ serviceName: $transition$.params().service })
isEmpty: /* @ngInject */ (OvhApiVrack, service) =>
OvhApiVrack.Aapi()
.services({ serviceName: service })

qpavy
qpavy previously approved these changes Nov 15, 2024
sachinrameshn
sachinrameshn previously approved these changes Nov 15, 2024
@github-actions github-actions bot added the has conflicts Has conflicts to resolve before merging label Nov 28, 2024
@github-actions github-actions bot removed the has conflicts Has conflicts to resolve before merging label Jan 3, 2025
Copy link

sonarqubecloud bot commented Jan 3, 2025

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.

3 participants