Take DBAAS multi-channel publishing Redis modules into use 45/5745/1 v0.5.5
authorTimo Tietavainen <timo.tietavainen@nokia.com>
Tue, 9 Mar 2021 14:17:31 +0000 (16:17 +0200)
committerTimo Tietavainen <timo.tietavainen@nokia.com>
Tue, 9 Mar 2021 14:17:31 +0000 (16:17 +0200)
commitcf2b20b2b54f9ca26e3faa48ee52981c05565796
tree91f94d1db75cff5a7f05a1259743a5a02eddf66f
parent33961a269bf51f6c713fcb00576cdc0b9ac98ee9
Take DBAAS multi-channel publishing Redis modules into use

Following SDL APIs are defined so that multiple channel-event pairs can be
given as function argument but actual SDL implementation utilized such a DBAAS
(Redis) module what expect to get only one channel-event pair. Fix the
implementation of these SDL APIs to use the correct DBAAS module what support
multiple channel-event pairs:
* SetIfAndPublish()
* SetIfNotExistsAndPublish()
* RemoveIfAndPublish()

Please note that in runtime environment DBAAS service needs to run on DBAAS
image version 0.4.0 or newer. Older images do not have multiple channel-event
pairs support as a Redis module.

Fixed also potential type conversion issue in SDL APIs RemoveIf() and
RemoveIfAndPublish() what can lead to SDL application crash.

Issue-ID: RIC-759

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I74f483bb31e0c6aed10983a83d70a45272d71fa4
docs/release-notes.rst
internal/sdlgoredis/sdlgoredis.go
internal/sdlgoredis/sdlgoredis_test.go
sdl.go
sdl_test.go