-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dedicated.pcc): add Managed VCD migration
resolves: MANAGER-14400 Signed-off-by: David Arsène <david.arsene.ext@ovhcloud.com>
- Loading branch information
Showing
20 changed files
with
161 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 10 additions & 19 deletions
29
...client/app/components/dedicated-cloud/dashboard/tiles/vmware-cloud-director/controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 10 additions & 7 deletions
17
...ts/dedicated-cloud/dashboard/tiles/vmware-cloud-director/translations/Messages_fr_FR.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
{ | ||
"dedicatedCloud_vmware_cloud_director_title": "Migration vers VCD", | ||
"dedicatedCloud_vmware_cloud_director_title": "Migration vers l'offre Managed VCD", | ||
"dedicatedCloud_vmware_cloud_director_offer_detail": "Descriptif de l'offre VCD", | ||
"dedicatedCloud_vmware_cloud_director_offer_terms_and_conditions": "Conditions particulières du service", | ||
"dedicatedCloud_vmware_cloud_director_new": "New", | ||
"dedicatedCloud_vmware_cloud_director_subscription": "Souscription", | ||
"dedicatedCloud_vmware_cloud_director_announcement_message": "Message d'annonce", | ||
"dedicatedCloud_vmware_cloud_director_migration": "Migration", | ||
"dedicatedCloud_vmware_cloud_director_migration_confirmed": "Migration confirmée", | ||
"dedicatedCloud_vmware_cloud_director_migration_conf": "Migration confirmée", | ||
"dedicatedCloud_vmware_cloud_director_validate_migration": "Valider la migration", | ||
"dedicatedCloud_vmware_cloud_director_migration_documentation": "Doc process de migration", | ||
"dedicatedCloud_vmware_cloud_director_useful_links": "Liens utiles", | ||
"dedicatedCloud_vmware_cloud_director_subscribed_status": "Souscrit", | ||
"dedicatedCloud_vmware_cloud_director_subscribed": "Vous avez souscrit à la migration vers l'offre <a href=\"{{link}}\" target=\"_blank\" rel=\"noopener\">VMware Cloud Director (VCD)</a>", | ||
"dedicatedCloud_vmware_cloud_director_not_subscribed": "Souscription à la migration vers l'offre <a href=\"{{link}}\" target=\"_blank\" rel=\"noopener\">VMware Cloud Director (VCD)</a> avant le 30 avril 2024 inclus.", | ||
"dedicatedCloud_vmware_cloud_director_order": "Souscrire à l'offre VCD" | ||
"dedicatedCloud_vmware_cloud_director_validate_migration_detail": "Validez la migration de votre service vers l'offre Managed VCD on OVHcloud et acceptez les conditions particulières du service.", | ||
"dedicatedCloud_vmware_cloud_director_migration_confirmed_detail": "La migration de votre service vers l'offre Managed VCD est bien prise en compte. Nos équipes reviendront vers vous concernant la planification et les modalités de l'opération.", | ||
"dedicatedCloud_vmware_cloud_director_validate": "Valider" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...s/manager/apps/dedicated/client/app/components/dedicated-cloud/vcdMigrationState.class.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { | ||
MANAGED_VCD_MIGRATION_STATE, | ||
MANAGED_VCD_MIGRATION_STATUS, | ||
} from './dedicatedCloud.constant'; | ||
|
||
export default class VCDMigrationState { | ||
constructor(value) { | ||
this.state = MANAGED_VCD_MIGRATION_STATE[Math.min(value ?? 0, 2)]; | ||
} | ||
|
||
get isDone() { | ||
return this.state === MANAGED_VCD_MIGRATION_STATUS.MIGRATED; | ||
} | ||
|
||
get isAllowed() { | ||
return this.state !== MANAGED_VCD_MIGRATION_STATUS.NOT_ALLOWED; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...client/app/components/dedicated-cloud/vmware-cloud-director/migration-banner/component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import controller from './controller'; | ||
import template from './template.html'; | ||
|
||
export default { | ||
controller, | ||
template, | ||
name: 'ovhManagerPccManagedVcdMigrationBanner', | ||
}; |
5 changes: 5 additions & 0 deletions
5
...lient/app/components/dedicated-cloud/vmware-cloud-director/migration-banner/controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default class ManagedVcdMigrationBannerCtrl { | ||
$onInit() { | ||
this.pendingMigration = true; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ted/client/app/components/dedicated-cloud/vmware-cloud-director/migration-banner/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import component from './component'; | ||
|
||
const moduleName = 'ovhManagerPccDashboardManagedVcdMigrationBanner'; | ||
|
||
angular | ||
.module(moduleName, ['oui', 'pascalprecht.translate']) | ||
.component(component.name, component) | ||
.run(/* @ngTranslationsInject:json ./translations */); | ||
|
||
export default moduleName; |
9 changes: 9 additions & 0 deletions
9
...lient/app/components/dedicated-cloud/vmware-cloud-director/migration-banner/template.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<oui-message | ||
class="pt-2" | ||
data-type="warning" | ||
data-ng-if="$ctrl.pendingMigration" | ||
> | ||
<span | ||
data-translate="dedicatedCloud_managed_vcd_migration_pending_warning" | ||
></span> | ||
</oui-message> |
3 changes: 3 additions & 0 deletions
3
...s/dedicated-cloud/vmware-cloud-director/migration-banner/translations/Messages_fr_FR.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"dedicatedCloud_managed_vcd_migration_pending_warning": "Attention migration en cours : les modifications de votre service ne seront pas prises en compte" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters