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(savings-plan): check savings plan before delete project #12874

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

lionel95200x
Copy link
Contributor

@lionel95200x lionel95200x commented Aug 29, 2024

Question Answer
Branch? feat/savings-plan-epic
Bug fix? no
New feature? no
Breaking change? no
Tickets Fix #TAPC-1281
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

Check if user have savings plan before deleting a PCI project to display Support Message

Related

@lionel95200x lionel95200x requested a review from a team as a code owner August 29, 2024 12:19
@lionel95200x lionel95200x requested review from tibs245, qpavy and MaximeBajeux and removed request for a team August 29, 2024 12:19
@lionel95200x lionel95200x force-pushed the feat/TAPC-1281 branch 4 times, most recently from ba4103e to 8e31e6c Compare August 29, 2024 13:13
ref: feat/TAPC-1281

Signed-off-by: Lionel Bueno <[email protected]>
Copy link

sonarcloud bot commented Aug 30, 2024

@@ -15,14 +26,64 @@ export default class {
this.goBack();
}

$onInit() {
Copy link
Contributor

@y4nnL y4nnL Aug 30, 2024

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: '<'

@lionel95200x lionel95200x merged commit 1fb5a03 into feat/savings-plan-epic Sep 2, 2024
13 of 14 checks passed
@lionel95200x lionel95200x deleted the feat/TAPC-1281 branch September 2, 2024 09:23
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants