====== OSA Customer Setup ======
This article describes the current setup of OSA customers.\\
{{/dokuwiki/lib/images/smileys/icon_exclaim.gif|:!:}} This should be automated / simplified in the Future.\\
{{/dokuwiki/lib/images/smileys/icon_exclaim.gif|:!:}} This article shows the current state not the desired state
===== Steps (Feed Shops) =====
* Setup new v3 shop (in 'user' collection) or copy and change an existing one. If a new shop is set up you also need to configure the feed import. Change/add import time if required\\
HINT: We used user IDs in range 70000 + (5 digits instead of 4 as for real customers)\\
HINT: we used Madeleine_de_feed since a v5 config already exists.
* Setup new v5 shops (OSA Mongo, osa_db, shop_settings collection) or copy from existing and change\\
HINT: get api_key with ''%%echo -n “picsimilar:” | base64%%''
* Create User with script at SG02 (/mnt/storage/var/pci/picalike_customer_interface/scripts/) → copy the output into Mongo (pci_user collection).\\
Change update field to true if Sim / Looks is used. Remove privileges if not required
* Create Shop Relations entry (OSA Mongo, osa_db, shop_relations collection) and add competitor shops
* Create or copy mappings (gender and category)\\
HINT: snipped at https://git.picalike.corpex-kunden.de/-/snippets/6
* Start v3 feed import
* Start v5 feed import
===== Steps (No-Feed Shops) =====
clone https://git.picalike.corpex-kunden.de/incubator/swiss-army-knife
* create user in pci_user collection: run the script create_user.py
HINT: for now user are only defined in v3
===== Notes =====
The counselor gets only updated once a day so if you want to use the account imedeatly, you have to manually trigger the counselor update.
===== TAGS =====
osa, customer, user, create, v3, v5