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

FYST-450 Fix nc subtractions page limit #5066

Conversation

tahsinaislam
Copy link
Contributor

Link to pivotal/JIRA issue

https://codeforamerica.atlassian.net/browse/FYST-450

Is PM acceptance required? (delete one)

  • Yes - don't merge until JIRA issue is accepted!

What was done?

  • Add a methods to the D400 calculator to be able to calculate the right limit for NC subtractions. This method was then added to the controller and form for NC subtractions in order to put the limit on the view and also have the correct error message is the limit is exceeded.

How to test?

  • Unit test was updated to reflect the right limit

Screenshots (for visual changes)

  • Before
Screenshot 2024-12-02 at 4 58 07 PM - After Screenshot 2024-12-02 at 4 57 45 PM

tahsinaislam and others added 2 commits December 2, 2024 16:55
Co-authored-by: Kevin Diale <kdiale@codeforamerica.org>
Copy link

github-actions bot commented Dec 3, 2024

Heroku app: https://gyr-review-app-5066-4d81d648fbb9.herokuapp.com/
View logs: heroku logs --app gyr-review-app-5066 (optionally add --tail)

@tahsinaislam tahsinaislam marked this pull request as ready for review December 3, 2024 01:07
@tahsinaislam tahsinaislam force-pushed the FYST-1241-nc-federally-recognized-indian-tribe-subtraction-not-calculating-correctly branch from 05ab69d to 592b074 Compare December 3, 2024 17:17
Copy link
Contributor

@squanto squanto left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@tahsinaislam tahsinaislam merged commit 6c18465 into main Dec 4, 2024
7 checks passed
@tahsinaislam tahsinaislam deleted the FYST-1241-nc-federally-recognized-indian-tribe-subtraction-not-calculating-correctly branch December 4, 2024 00:19
tahsinaislam added a commit that referenced this pull request Dec 4, 2024
@tahsinaislam tahsinaislam restored the FYST-1241-nc-federally-recognized-indian-tribe-subtraction-not-calculating-correctly branch December 4, 2024 00:43
@tahsinaislam tahsinaislam deleted the FYST-1241-nc-federally-recognized-indian-tribe-subtraction-not-calculating-correctly branch December 4, 2024 00:44
tahsinaislam added a commit that referenced this pull request Dec 4, 2024
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.

2 participants