discourse/script/import_scripts/quandora
Josh Soref 59097b207f
DEV: Correct typos and spelling mistakes (#12812)
Over the years we accrued many spelling mistakes in the code base. 

This PR attempts to fix spelling mistakes and typos in all areas of the code that are extremely safe to change 

- comments
- test descriptions
- other low risk areas
2021-05-21 11:43:47 +10:00
..
test DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
README.md
export.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
import.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
quandora_api.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
quandora_question.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00

README.md

To get started, copy the config.ex.yml to config.yml, and then update the properties for your Quandora instance.

domain: 'my-quandora-domain'
username: 'my-quandora-username'
password: 'my-quandora-password'

Create the directory for the json files to export: mkdir output Then run ruby export.rb /path/to/config.yml

To import, run ruby import.rb

To run tests, include id's for a KB and Question that includes answers and comments

kb_id: 'some-kb-id'
question_id: 'some-question-id'