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

Restore funded_place if modified after acceptance #4790

Conversation

pmanrubia
Copy link
Contributor

Context

Description

We set a funded place when an application is accepted. If we revert the acceptance we also need to unset the capping change.

Copy link

Review app deployed to https://cpd-ecf-review-4790-web.test.teacherservices.cloud

@@ -16,6 +16,9 @@ def call
return self unless valid?

npq_application.update!(lead_provider_approval_status: "rejected")
if FeatureFlag.active?(:npq_capping) && npq_application.funded_place?
Copy link
Collaborator

@cwrw cwrw May 14, 2024

Choose a reason for hiding this comment

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

ah this is the wrong service, can we please only do this on the ChangeToPending service and set this to nil please as per the ticket

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 7ad22c1

@pmanrubia pmanrubia force-pushed the CPDLP-3071-npq-capping-update-change-to-pending-service-to-unset-funded-place-if-set branch from d17199d to 7ad22c1 Compare May 17, 2024 09:44
@pmanrubia pmanrubia force-pushed the CPDLP-3071-npq-capping-update-change-to-pending-service-to-unset-funded-place-if-set branch from 7ad22c1 to ab34683 Compare May 17, 2024 09:45
@@ -33,6 +33,9 @@ def call
profile.destroy!
end
npq_application.update!(lead_provider_approval_status: "pending")
if FeatureFlag.active?(:npq_capping) && !npq_application.funded_place.nil?
npq_application.update!(funded_place: false)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we please set this to nil not false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in fb5852c

@pmanrubia pmanrubia added this pull request to the merge queue May 20, 2024
Merged via the queue into main with commit ec4a12f May 20, 2024
37 checks passed
@pmanrubia pmanrubia deleted the CPDLP-3071-npq-capping-update-change-to-pending-service-to-unset-funded-place-if-set branch May 20, 2024 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants