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

Return 404 NotFound error if @moderatable Is Not Found instead of failing with 500 #5814

Closed

Conversation

Zeko369
Copy link
Contributor

@Zeko369 Zeko369 commented Jan 30, 2020

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

closes #5791

Description

Return 404 for not found when @moderatable is not found, instead of failing with 500 when calling id on it later

What gif best describes this PR or how it makes you feel?

Me adding a ! and fixing bugs

When you fix a bug just by adding "!", tnx DHH

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Jan 30, 2020
@Zeko369
Copy link
Contributor Author

Zeko369 commented Jan 31, 2020

@rhymes Hey, could you also review this PR

@rhymes
Copy link
Contributor

rhymes commented Feb 2, 2020

Hi @Zeko369, sorry for the late reply, I think before accepting this we should find a way to add a test for it, what do you think?

@Zeko369
Copy link
Contributor Author

Zeko369 commented Feb 2, 2020

There are no tests for #article and #comment. Should I create a separate PR for adding those specs @rhymes ?

@rhymes
Copy link
Contributor

rhymes commented Feb 2, 2020

@Zeko369, it'd be great if you could add a spec related to this change in this PR! :-)

Thank you!

mstruve
mstruve previously approved these changes Feb 6, 2020
@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Feb 6, 2020
@mstruve mstruve dismissed their stale review February 6, 2020 12:38

need tests

@pr-triage pr-triage bot added PR: unreviewed bot applied label for PR's with no review and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Feb 6, 2020
@rhymes rhymes removed their request for review February 17, 2020 15:24
@mstruve
Copy link
Contributor

mstruve commented Mar 27, 2020

Fixed via #5999

@mstruve mstruve closed this Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: unreviewed bot applied label for PR's with no review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return 404 NotFound error if @moderatable Is Not Found
3 participants