Skip to content

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.

Overview:

  • Disable postman/ingest synchronisation
  • Create a Supplier and user on roomorama
  • Create the user counterparts on concierge

Task details:

1. Disable postman/ingest synchronisation

On postman, run:

Partner.find_by(name: "WayToStay").update_attributes(availabilities_every: 0, details_and_images_every: 0)

2. Create a Supplier and user on roomorama

On roomorama, run rake suppliers:create_host_with_token[Waytostay,supplier_waytostay]

3. Create user counterparts on concierge

On concierge:

  • make sure supplier have been decared at config/suppliers.yml and loaded with rake 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)

4. Let concierge synchronise

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.