I then removed this tag from that fragment, waited some time, and updated the fragments file.
I also changed the content of the fragment slightly to "this fragment no longer contains billytesttag3"
The change was recorded by the server, as when I ran a search for the fragment by its ID, I found it with the changes updated (the new text, and no tag)
http://gw-bot-apis.azurewebsites.net/api/sequences/fragment
{
"BotName":"billy2019test",
"DeviceId": "edcdsc",
"FacebookId":"def",
"FragmentId": "billytesttag3firstfrag"
}
But when I call for the tag billytesttag3, I still receive this fragment, even though it no longer contains that tag. Additionally, the text content change was not recorded when calling the fragment by this method.
http://gw-bot-apis.azurewebsites.net/api/sequences/fragment
{
"BotName":"billy2019test",
"DeviceId": "edcdscg",
"FacebookId":"defg",
"Tags": ["billytesttag3"]
}
this is by design: when you load sequences you create the combinations (sequence, tag) in a table and keep it but we have no cleaning process -> I need to discuss with @OlivierBourdin what we want to do with this
I created a fragment "billytesttag3firstfrag", which contained the tag "billytesttag3" and was able to call it using the fragmentsbytag action. https://github.com/GhostWording/gw-config-apis/blob/master/data/bot/sequences/experiments/Billy2/billytesttag3firstfrag.json
I then removed this tag from that fragment, waited some time, and updated the fragments file. I also changed the content of the fragment slightly to "this fragment no longer contains billytesttag3"
The change was recorded by the server, as when I ran a search for the fragment by its ID, I found it with the changes updated (the new text, and no tag) http://gw-bot-apis.azurewebsites.net/api/sequences/fragment { "BotName":"billy2019test", "DeviceId": "edcdsc", "FacebookId":"def", "FragmentId": "billytesttag3firstfrag" }
But when I call for the tag billytesttag3, I still receive this fragment, even though it no longer contains that tag. Additionally, the text content change was not recorded when calling the fragment by this method. http://gw-bot-apis.azurewebsites.net/api/sequences/fragment { "BotName":"billy2019test", "DeviceId": "edcdscg", "FacebookId":"defg", "Tags": ["billytesttag3"] }