Skip to content

AO3-4532 Fixing it so Abuse reports go through. Removing language lis… #2460

Merged
merged 6 commits into from May 15, 2016

3 participants

@scottsds scottsds AO3-4532 Fixing it so Abuse reports go through. Removing language lis…
…ting from reports new page
6bb8f25
@houndci-bot houndci-bot commented on the diff May 14, 2016
app/models/feedback_reporters/feedback_reporter.rb
@@ -32,6 +32,20 @@ def send_report!
)
end
+ def send_abuse_report!
+ HTTParty.post("#{ArchiveConfig.ABUSE_REPORTS_SITE}/projects/#{project_id}/bugs",
+ headers: {
+ "Content-Type" => "application/xml",
+ "Accept" => "application/xml"
+ },
+ basic_auth: {
+ username: ArchiveConfig.ABUSE_REPORTS_USER,
+ password: ArchiveConfig.ABUSE_REPORTS_PASSWORD
+ },
+ body: xml
+ )
@houndci-bot
houndci-bot added a note May 14, 2016

Align ) with (.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@houndci-bot houndci-bot commented on the diff May 14, 2016
app/models/feedback_reporters/feedback_reporter.rb
@@ -32,6 +32,20 @@ def send_report!
)
end
+ def send_abuse_report!
+ HTTParty.post("#{ArchiveConfig.ABUSE_REPORTS_SITE}/projects/#{project_id}/bugs",
+ headers: {
@houndci-bot
houndci-bot added a note May 14, 2016

Align the parameters of a method call if they span more than one line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@houndci-bot houndci-bot and 1 other commented on an outdated diff May 14, 2016
app/models/abuse_report.rb
@@ -55,15 +55,15 @@ def email_and_send
end
def send_report
- return unless %w(staging production).include?(Rails.env)
+ #return unless %w(staging production).include?(Rails.env)
@houndci-bot
houndci-bot added a note May 14, 2016

Missing space after #.

@sarken
Organization for Transformative Works member
sarken added a note May 15, 2016

I think you just commented this out for testing on your machine... we still want it in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@sarken
Organization for Transformative Works member
sarken commented May 15, 2016
@scottsds scottsds AO3-4569 Abuse reports not going to bug tracker
cee79a1
scottsds added some commits May 15, 2016
@scottsds scottsds AO3-4568 Remove old non-English support request language
280b3f0
@scottsds scottsds AO3-4568 Remove old non-English support request language
f56701e
@scottsds scottsds AO3-4568 Make English be selected by default
b4f397b
@scottsds scottsds AO3-4568 Return third sentence and do new hash rocket style
d15d22f
@sarken sarken merged commit 04c6b97 into otwcode:master May 15, 2016

2 checks passed

Details continuous-integration/travis-ci/pr The Travis CI build passed
hound 2 violations found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.