Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First draft of Zendesk import and integration tests.
- Loading branch information
1 parent
23bb045
commit e5245c6
Showing
6 changed files
with
1,512 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
class ZendeskImportSettings < ActiveRecord::Migration | ||
def change | ||
|
||
Setting.create_if_not_exists( | ||
title: 'Import Endpoint', | ||
name: 'import_zendesk_endpoint', | ||
area: 'Import::Zendesk', | ||
description: 'Defines Zendesk endpoint to import users, ticket, states and articles.', | ||
options: { | ||
form: [ | ||
{ | ||
display: '', | ||
null: false, | ||
name: 'import_zendesk_endpoint', | ||
tag: 'input', | ||
}, | ||
], | ||
}, | ||
state: 'https://yours.zendesk.com/api/v2', | ||
frontend: false | ||
) | ||
|
||
Setting.create_if_not_exists( | ||
title: 'Import Key for requesting the Zendesk API', | ||
name: 'import_zendesk_endpoint_key', | ||
area: 'Import::Zendesk', | ||
description: 'Defines Zendesk endpoint auth key.', | ||
options: { | ||
form: [ | ||
{ | ||
display: '', | ||
null: false, | ||
name: 'import_zendesk_endpoint_key', | ||
tag: 'input', | ||
}, | ||
], | ||
}, | ||
state: '', | ||
frontend: false | ||
) | ||
|
||
Setting.create_if_not_exists( | ||
title: 'Import User for requesting the Zendesk API', | ||
name: 'import_zendesk_endpoint_username', | ||
area: 'Import::Zendesk', | ||
description: 'Defines Zendesk endpoint auth key.', | ||
options: { | ||
form: [ | ||
{ | ||
display: '', | ||
null: true, | ||
name: 'import_zendesk_endpoint_username', | ||
tag: 'input', | ||
}, | ||
], | ||
}, | ||
state: '', | ||
frontend: false | ||
) | ||
end | ||
end |
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
Oops, something went wrong.