-
Notifications
You must be signed in to change notification settings - Fork 97
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(savings-plan): check savings plan before delete project #12874
Merged
Conversation
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
lionel95200x
requested review from
tibs245,
qpavy and
MaximeBajeux
and removed request for
a team
August 29, 2024 12:19
github-actions
bot
added
translation required
universe-public-cloud
feature
New feature
labels
Aug 29, 2024
lionel95200x
force-pushed
the
feat/TAPC-1281
branch
4 times, most recently
from
August 29, 2024 13:13
ba4103e
to
8e31e6c
Compare
chipp972
approved these changes
Aug 30, 2024
chipp972
reviewed
Aug 30, 2024
packages/manager/modules/pci/src/projects/project/edit/remove/remove.controller.js
Outdated
Show resolved
Hide resolved
lionel95200x
force-pushed
the
feat/TAPC-1281
branch
from
August 30, 2024 08:32
8e31e6c
to
9d62545
Compare
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]>
lionel95200x
force-pushed
the
feat/TAPC-1281
branch
from
August 30, 2024 08:46
9d62545
to
239a340
Compare
Quality Gate passedIssues Measures |
y4nnL
reviewed
Aug 30, 2024
@@ -15,14 +26,64 @@ export default class { | |||
this.goBack(); | |||
} | |||
|
|||
$onInit() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
canDeleteProject should be moved to the routing section of the component as it is a prerequisite
canDeleteProject: /* @ngInject */ ($http, projectId) =>
$http
.get(`/services?resourceName=${projectId}`)
.then(({ data: [serviceId] }) =>
serviceId
? $http
.get(`/services/${serviceId}/savingsPlans/subscribed`)
.then(({ data: savingsPlans }) =>
savingsPlans.every(({ status }) => status !== 'ACTIVE'),
)
: true,
),
Don't forget to bind it
canDeleteProject: '<'
y4nnL
approved these changes
Sep 2, 2024
lionel95200x
added a commit
that referenced
this pull request
Sep 2, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 2, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 3, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 3, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 3, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 5, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 5, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 5, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 9, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 9, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 9, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 9, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 9, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 9, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 9, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 9, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 9, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 11, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 11, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
lionel95200x
added a commit
that referenced
this pull request
Sep 11, 2024
ref: feat/TAPC-1281 Signed-off-by: Lionel Bueno <[email protected]> Co-authored-by: Lionel Bueno <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat/savings-plan-epic
Description
Check if user have savings plan before deleting a PCI project to display Support Message
Related