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

Remove submissions on report #293

Merged
merged 1 commit into from
Dec 29, 2021
Merged

Remove submissions on report #293

merged 1 commit into from
Dec 29, 2021

Conversation

itsthejoker
Copy link
Member

Relevant issue: #258

Description:

Something that was brought up in Discord is that reported posts stay in the queue, and because we're not tied to Reddit anymore, we can remove these now as they come in and avoid the unfortunate situation that happened earlier with a volunteer reporting a post and then rerolling it multiple times. This PR reworks the logic of the report flow to automatically remove a post pending the response from the Slack ping, which can optionally reinstate it. Also includes some very small fixes I noticed while debugging this.

Checklist:

  • Code Quality
  • Pep-8
  • Tests (if applicable)
  • Success Criteria Met
  • Inline Documentation
  • Wiki Documentation (if applicable)

@itsthejoker itsthejoker requested a review from a team as a code owner December 29, 2021 06:50
Comment on lines -487 to -489
if request.GET.get("reason") is None:
# they just wanted to return the post. No reason to investigate.
return
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 removed?
If they just want a different pot we shouldn't get a message on Slack

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah nevermind, I see it now. I suppose we don't need to construct the Slack blocks in that case, but it should be fine.

@itsthejoker itsthejoker merged commit 62ef46c into master Dec 29, 2021
@itsthejoker itsthejoker deleted the remove-posts-on-report branch December 29, 2021 13:43
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