Skip to content

OPAL scope and data update event #773

@federicoragazzoni

Description

@federicoragazzoni

Describe the bug
I have configured my opal server and opal client to work with scopes.
When I publish a data update event through the server's rest APIs I get an event payload that is not correct and does not cause the client to update.
if I manually modify the payload and publish the event on the broadcast channel then the client updates.

To Reproduce
my client environment
Image

my server environment
Image

the data update request body posted on /scopes/myscope/data/update
Image

the data update event payload (from broadcast channel)
Image

the error on client
opal_client.data.rpc | INFO | Received notification of event: myscope:data:policy_data
opal_client.data.updater | INFO | Updating policy data, reason: it's my business
opal_client.data.updater | INFO | Triggering data update with id: 258732c3adad403d80f4b6bdc1ed9329
opal_client.data.updater |DEBUG | Data entry url='' config={} topics=['data:policy_data'] dst_path='/posts' save_method='PUT' data=[..] has no topics matching the data topics, skipping
websockets.legacy.protocol |DEBUG | > TEXT '{"request": null, "response": {"result": "None"...4f43824e40272f85fb69"}}' [118 bytes]

because client listens "myscope:data:policy_data". The two topics section in event payload are not equal.
If I publish a fixed payload with both topics "myscope:data:policy_data" on broadcast channel the client can update the data correctly

Do you have any suggestions?
Thanks

OPAL version

  • Version: [e.g. 0.1.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions