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

Add endpoint to update the funding status #4738

Merged
merged 18 commits into from
May 20, 2024

Conversation

pmanrubia
Copy link
Contributor

Ticket

https://dfedigital.atlassian.net/browse/CPDLP-2949

Context

Adds endpoint to change the funded_place attribute for an application. It validates
that the request can be executed within the current application status.

Copy link
Collaborator

@cwrw cwrw left a comment

Choose a reason for hiding this comment

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

looking good a few minor comments

app/services/npq/application/change_funded_place.rb Outdated Show resolved Hide resolved
app/services/npq/application/change_funded_place.rb Outdated Show resolved Hide resolved
app/services/npq/application/change_funded_place.rb Outdated Show resolved Hide resolved
@mooktakim mooktakim force-pushed the CPDLP-2938-npq-capping-add-funded-place-to-accept-npq-application-endpoint branch 3 times, most recently from a6ecaac to 0bb5bbb Compare May 10, 2024 11:15
@pmanrubia pmanrubia force-pushed the CPDLP-2949-npq-capping-add-new-funded-cap-endpoint branch from a740f46 to 09501bb Compare May 11, 2024 15:33
config/routes.rb Outdated Show resolved Hide resolved
@mooktakim mooktakim force-pushed the CPDLP-2938-npq-capping-add-funded-place-to-accept-npq-application-endpoint branch 2 times, most recently from 70d0806 to cf1aa89 Compare May 13, 2024 14:15
Copy link
Collaborator

@cwrw cwrw left a comment

Choose a reason for hiding this comment

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

thanks pablo for addressing all comments, a few notes from testing:

  • we shouldn’t allow setting a value to nil on funded applications
  • it currently returns a 500 rather than 422 if application is not accepted
  • We'll discuss in person when we're allowed to change which should only be on cohorts that allow capping

@pmanrubia pmanrubia force-pushed the CPDLP-2949-npq-capping-add-new-funded-cap-endpoint branch from a32c553 to 081baef Compare May 14, 2024 04:14
@pmanrubia
Copy link
Contributor Author

pmanrubia commented May 14, 2024

we shouldn’t allow setting a value to nil on funded applications

Addressed in 081baef

it currently returns a 500 rather than 422 if application is not accepted

Addressed in 35d11e3

We'll discuss in person when we're allowed to change which should only be on cohorts that allow capping

Addressed in b41195a

Copy link
Collaborator

@cwrw cwrw left a comment

Choose a reason for hiding this comment

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

thanks @pmanrubia!

Copy link
Collaborator

@cwrw cwrw left a comment

Choose a reason for hiding this comment

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

🙌

@mooktakim mooktakim force-pushed the CPDLP-2938-npq-capping-add-funded-place-to-accept-npq-application-endpoint branch 2 times, most recently from 6bc9cea to 9c30630 Compare May 16, 2024 13:49
Base automatically changed from CPDLP-2938-npq-capping-add-funded-place-to-accept-npq-application-endpoint to main May 17, 2024 09:22
@pmanrubia pmanrubia force-pushed the CPDLP-2949-npq-capping-add-new-funded-cap-endpoint branch from 893dfb8 to 11e9d35 Compare May 17, 2024 10:25
config/locales/en.yml Outdated Show resolved Hide resolved
config/locales/en.yml Outdated Show resolved Hide resolved
@pmanrubia pmanrubia force-pushed the CPDLP-2949-npq-capping-add-new-funded-cap-endpoint branch from 250a754 to a910a41 Compare May 17, 2024 10:41
Copy link

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

- If there are no statements do not attempt a query for contracts
- Fix specs to point to correct cpd lead provider
@pmanrubia pmanrubia added this pull request to the merge queue May 20, 2024
Merged via the queue into main with commit bda433c May 20, 2024
37 checks passed
@pmanrubia pmanrubia deleted the CPDLP-2949-npq-capping-add-new-funded-cap-endpoint 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