Closed rhwy closed 6 years ago
@andreasdieryck
Ok, so,
{
"botName":"louisgscreenshot",
"facebookId":"test-rc-01"
}
and get sequence TypingBarHideTest which is not the one actually marked as first in master LouisGmasterexperiments1.json (expected N°1 is AutoSelectExample)
I open http://gw-config-api.azurewebsites.net/data/bot/apps/experiments/LouisGmasterexperiments1.json to verify that the actual master file was correctly synchronised -> ok
I try to reload master louisgscreenshot with http://gw-bot-apis.azurewebsites.net/admin/sequences/reload/louisgscreenshot?adminkey=61fd4333-61b1-4236-83c6-33bda5a9d6e6 -> response OK + OK on #notifications channel
I clear my history http://gw-bot-apis.azurewebsites.net/admin/command/history/clear?botname=louisgscreenshot&facebookid=test-rc-01&deviceId=&adminkey=61fd4333-61b1-4236-83c6-33bda5a9d6e6
I call getnext again http://gw-bot-apis.azurewebsites.net/api/sequences/next with same values as in (1) and got my expected AutoSelectExample -> OK
For me, this means that the reload is OK.
Please take care to use this process by always verifying that the json files are available on http://gw-bot-apis.azurewebsites.net/ (the syncronised website from this repo) before asking for a reload.
Hi @rui, Thanks for your message. Following your change, I tested the sequences/reload API to see if there were any issues.
I tried to make a change in the botname/Masterfile "louisgscreenshot" (https://github.com/GhostWording/gw-config-apis/blob/master/data/bot/apps/experiments/LouisGmasterexperiments1.json). Namely, I've changed the ordering of the sequences, putting a new sequence in 1st position. I then reloaded the Masterfile using the API
http://gw-bot-apis.azurewebsites.net/admin/sequences/reload/louisgscreenshot?adminkey=61fd4333-61b1-4236-83c6-33bda5a9d6e6
I expected two things to happen: (a) when using the API
http://gw-bot-apis.azurewebsites.net/api/sequences/next
(with"BotName":"louisgscreenshot"
in the body + a completely new ID), I expected the new sequence that I put with order 1 to be the 1st I would receive. (b) On Postman and Slack #notifications, I expected to receive the following success message"success loading louisgscreenshot\r\n[botapis] finished reloading louisgscreenshot on gw-bot-apis.azurewebsites.net in (3485.826)ms\r\n"
However, I got two different things instead: (a) when using the API
http://gw-bot-apis.azurewebsites.net/api/sequences/next
(with"BotName":"louisgscreenshot"
in the body + a completely new ID), I still got the old ordering (b) On Postman and Slack #notifications, I received the following success message"success loading louisgscreenshot\r\n[botapis] finished reloading louisgscreenshot on gw-bot-apis-*staging*.azurewebsites.net in (3485.826)ms\r\n"