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

JacobW scale cow sale price #25

Closed
wants to merge 11 commits into from
Closed

Conversation

JacobWoodward2000
Copy link
Contributor

@JacobWoodward2000 JacobWoodward2000 commented May 28, 2023

Added a check box that allows you to choose if you want cows at low health for sell for less, and updated the backend to be able to take this parameter and perform the correct calculation.

Storybook:

Before:

After:

Screenshots:

Before:
Screenshot 2023-05-31 181318
Screenshot 2023-05-30 143710
Screenshot 2023-05-31 182836
After:
Screenshot 2023-05-31 181333
Screenshot 2023-05-31 183408
Screenshot 2023-05-31 182851

@JacobWoodward2000 JacobWoodward2000 linked an issue May 30, 2023 that may be closed by this pull request
@JacobWoodward2000 JacobWoodward2000 self-assigned this May 30, 2023
@pconrad pconrad added the FIXME-Needs peer CR Needs a code review from a team member before staff reviews it; remove this label after reviewing label May 31, 2023
Copy link
Contributor

@pconrad pconrad left a comment

Choose a reason for hiding this comment

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

Several issues.

// update cowPrice from fixture
// Stryker disable ArithmeticOperator : line 24: not very important and unsure of how to test this
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this here? This keeps showing up in this team's PRs, and I'm skeptical. I need to be convinced that this is necessary, especially since "line 24" seems to be misleading.

return (
<Card>
<Card.Header as="h5">Manage Cows</Card.Header>
<Card.Body>
{/* change $10 to info from fixture */}
{/* why does removing the optional chaining question mark turn the entire page white? */}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this comment keep showing up?

I've called it out in several code reviews. Comments like this are fine while you are developing, but they need to be removed before code is ready to merge to main.

And I've answered this question before.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is because it is outdated. I was waiting for BuySellMultipleCows to be approved before merging all the changes into other branches.

Comment on lines +48 to +57
@MockBean
UserCommonsRepository userCommonsRepository;

@MockBean
UserRepository userRepository;

@MockBean
CommonsRepository commonsRepository;

@Autowired
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this just white space changes or are there real changes here to review?

This gets really frustrating for a reviewer. Please try to avoid this.

@pconrad pconrad added FIXME-New Code Review This PR seems to be stuck; we need to get the code review issues dealt with so this can get merged FIXME-Wating 2+ days on Peer code review ?!?!?!?! labels Jun 3, 2023
@JacobWoodward2000 JacobWoodward2000 marked this pull request as draft June 3, 2023 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FIXME-Needs peer CR Needs a code review from a team member before staff reviews it; remove this label after reviewing FIXME-New Code Review This PR seems to be stuck; we need to get the code review issues dealt with so this can get merged FIXME-Wating 2+ days on Peer code review ?!?!?!?! s23-6pm-4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make Cow Sell Price scale based on Cow Health
2 participants