-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1439 from alphagov/remove-gds-zendesk
Remove gds_zendesk
- Loading branch information
Showing
26 changed files
with
24 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ class Requester | |
attr_reader :email | ||
|
||
VALID_EMAIL_REGEX = /\A[\w+\-.']+@[a-z\d\-.]+\.[a-z]+\z/i | ||
ZENDESK_ANONYMOUS_TICKETS_REQUESTER_EMAIL = ENV["ZENDESK_ANONYMOUS_TICKETS_REQUESTER_EMAIL"] || "[email protected]" | ||
|
||
validates :email, presence: true | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
end | ||
|
||
scenario "successful request" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Request for analytics", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form analytics], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
end | ||
|
||
scenario "successful request" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Campaign", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form campaign], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
end | ||
|
||
scenario "changing user permissions" do | ||
ticket_request = expect_zendesk_to_receive_ticket( | ||
ticket_request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Change an existing user's account", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form change_user], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
end | ||
|
||
scenario "successful request" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Abc", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form new_feature_request], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
end | ||
|
||
scenario "successful mainstream content change request " do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Update X", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form content_amend], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
end | ||
|
||
scenario "successful request" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Content Data feedback", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form content_data_feedback], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
}, | ||
]) | ||
|
||
ticket_request = expect_zendesk_to_receive_ticket( | ||
ticket_request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Create a new user account", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form create_new_user], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
end | ||
|
||
scenario "successful request" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Downtime - Govt Agency General Issue", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form govt_agency_general], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
end | ||
|
||
scenario "successful request" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Live Campaign", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form live_campaign], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
end | ||
|
||
scenario "successful request" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Remove user", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form remove_user], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
end | ||
|
||
scenario "successful request" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Report an issue with GOV.UK search results", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form site_search], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
end | ||
|
||
scenario "successful request" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Taxonomy change topic request - \"Abc\"", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form taxonomy_change_topic_request], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
end | ||
|
||
scenario "successful request" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Taxonomy new topic request - \"Abc\"", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form taxonomy_new_topic_request], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
end | ||
|
||
scenario "successful report" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Technical fault with GOV.UK: content", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form technical_fault fault_with_gov_uk_content], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
end | ||
|
||
scenario "request to unpublish in case of publishing error" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Published in error - Unpublish content request", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form unpublish_content published_in_error], | ||
|
@@ -37,7 +37,7 @@ | |
end | ||
|
||
scenario "request to unpublish when page is a dupe" do | ||
request = expect_zendesk_to_receive_ticket( | ||
request = expect_support_api_to_receive_raise_ticket( | ||
"subject" => "Duplicate of another page - Unpublish content request", | ||
"requester" => hash_including("name" => "John Smith", "email" => "[email protected]"), | ||
"tags" => %w[govt_form unpublish_content duplicate_publication], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters