Coder Social home page Coder Social logo

Comments (3)

sagIoTPower avatar sagIoTPower commented on September 27, 2024 1

This is due the current implementation and concept that multiple mappings (different mappingTopic) could be linked to the same subscription (same subscriptionTopic).

activating/deactivating a mapping means that the messages are still received but not processed.

An other case where two mappings listen to the same topic is the following:

  1. mapping-event subscribes to topic panel
  2. mapping-alarm subscribes to topic panel

They both consume the same messages but process them differently.

If you deactivate mapping-event and unsubscribe from panel, the other mapping mapping-alarm is deactivated as well.
Which might not be what you want.

from cumulocity-dynamic-mapper.

switschel avatar switschel commented on September 27, 2024

We could come up with a logic that checks if there is any mapping active that subscribes on a topic and if so only start subscribing on that topic and vice versa if there is no other mapping active that subscribes on that topic we just unsubscribe.

But I would see that as a nice-to-have feature, so low priority currently.

from cumulocity-dynamic-mapper.

sagIoTPower avatar sagIoTPower commented on September 27, 2024

Changed the implementation to only subscribe to a topic if any mapping is active.
Changes are included in: a4a6c49
Could you pls. test if this fixes the issue?

from cumulocity-dynamic-mapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.