-
Notifications
You must be signed in to change notification settings - Fork 265
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
Suscripciones Custom for New Type/New Id #4085
Comments
Draft:
which could be an interesting extension point if we need in the future more similar mappings. The new id and type will be used in both:
|
What about using macros in the mapping itsef? Eg. to provide a prefix to id:
|
I would add all the "first level" information elements, that is: id, type, service, subservice, auth-token (sometimes you don't want to propagate it).
|
Maybe we should have access to the old id/type/S/SS also in the template... You may want a new id but the old id to be part of some attribute composition. NOTE: maybe we just need to hace access to the old ones in the macro language, the new ones always can be built or derivated. |
Somehow related, new macros for service and servicePath are mentioned in #3913 |
With regards to:
This would be a complete
Notes:
|
By default,
It seem easy to have also them in a new set of macros, i.e. Example: Considering an entity with id = E1 and type T1 which triggesrs a custom notification like this:
Payload resolves to "this is my old E1 and my id newE1" |
Issue #4159 |
With the re-definition of the functionality in the last comments, maybe "mapping" is not a proper name (it was good when they were actually mappings, but if ${id}, etc. uses the old info, then it is not an actual mapping). Thus, maybe "overrides" is a better name (and the macro to access to overrides would be something like this |
We are going to re-define this, based on the payload concept. So, in a custom notification, there would be three ways of defining a payload:
The third mode will be associated to the The value of So, let's consider the following updated entity
Lets consider several cases: A. Nothing to do Eg:
will notify:
Note2: B. Add new attribute Eg:
will notify:
C. Map id, type or attribute Eg:
will notify:
D. Any combination of B and C Eg:
will notify:
Substitution macros would be allowed in the
|
|
PR #4229 |
PR #4243 adds additional test cases |
Implement flexibility in custom notifications, so the id and type of the notified entity can be changed.
To be detailed.
The text was updated successfully, but these errors were encountered: