-
Notifications
You must be signed in to change notification settings - Fork 0
Checklist when migrating old integrations to Concierge
Keang edited this page Jul 8, 2016
·
5 revisions
Many suppliers were previously connected through Postman/Ingest. With the new integrations on Concierge™, there's a checklist to complete to migrate exisiting properties to new Concierge™ integration.
- Disable postman/ingest synchronisation
- Create a Supplier and user on roomorama
- Create the user counterparts on concierge
On postman, run:
Partner.find_by(name: "WayToStay").update_attributes(availabilities_every: 0, details_and_images_every: 0)
On roomorama, run rake suppliers:create_host_with_token[Waytostay,supplier_waytostay]
On concierge:
- make sure supplier have been decared at
config/suppliers.yml
and loaded withrake suppliers:load
- then run hanami console and:
supplier = SupplierRepository.named("WayToStay")
host = Host.new(supplier_id: supplier.id,
identifier: "SUPPLIER_HOST_ID",
username: "USER_LOGIN_CREATED_IN_1",
access_token:"ACCESS_TOKEN_CREATED_IN_1")
HostRepository.create(host)
Concierge worker should kick in and supplier worker implementation should parse properties, then for each new properties, it pushes to roomorama api, and then persist a concierge Property entity.