Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend connectivity payload mapping capabilities #539

Merged
merged 66 commits into from
Nov 4, 2019

Conversation

dguggemos
Copy link
Contributor

This PR adds

  • configuring multiple payload mappings per connection
  • configuring payload mappings per source/target separately (mapping was defined globally per connection so far)
  • producing multiple output messages from one input message in a payload mapping
  • a ConnectionStatus mapper (fixes Map Hono device connection status to Thing feature #492)

VadimGue and others added 30 commits September 18, 2019 10:13
Signed-off-by: Vadim Guenther <vadim.guenther@bosch-si.com>
…and targets to reference one more more mappings by ID, legacy mapping contexts are migrated to new model on the fly

Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
…provided

Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
…per. Implement unit test

Signed-off-by: Vadim Guenther <vadim.guenther@bosch-si.com>
…ing context options

Signed-off-by: Vadim Guenther <vadim.guenther@bosch-si.com>
…independent messages

 - allow MessageMapper to produce multiple messages from a single input message (wip)

Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
…se it to map responses with same mapper

Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
…tivity model

Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
…by an alias-based approach using the @PayloadMapper annotation

Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Vadim Guenther <vadim.guenther@bosch-si.com>
Signed-off-by: Vadim Guenther <vadim.guenther@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
… to milliseconds

Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
dguggemos and others added 26 commits October 29, 2019 10:58
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
* made placeholders also usable for configured featureId
* changed definition to ditto namespace
* added description to thrown mapping exceptions
* log with correlation-id

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Vadim Guenther <vadim.guenther@bosch-si.com>
* for all MessageMappers
* this is applied in MessageMappingProcessor prior to invoking the mapper
* added default blacklist for well known Hono "notification" types for the default DittoMessageMapper
* removed no longer used "contentType" configuration for mappers

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
…a custom description listing which mappers may be used

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Vadim Guenther <vadim.guenther@bosch-si.com>
…eMapper

* + enhanced unit tests to additionally check for value of the modified feature

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
* restructured connectivity-mapping.md in order to first list all available headers and afterwards descripe the JavaScript engine in more detail
* fixed json schema
* enhanced jsdoc of internal .js files for JavaScript engine (mentioning the Array return type correctly)

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Vadim Guenther <vadim.guenther@bosch-si.com>
…r to MessageMappingProcessor in order to set readFromExternal to false

Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
…the only one

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
…tor, avoid code duplication, polish some wording

- unignore amqp tests

Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
…load-mapper" in order to be more specific

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
@thjaeckle thjaeckle added this to the 1.0.0-M2 milestone Nov 4, 2019
Copy link
Member

@thjaeckle thjaeckle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@dguggemos dguggemos merged commit a51ae55 into eclipse-ditto:master Nov 4, 2019
@dguggemos dguggemos deleted the feature/connection-status branch November 4, 2019 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map Hono device connection status to Thing feature
3 participants