-
Notifications
You must be signed in to change notification settings - Fork 4
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
HCX-39 Allow to pass only some fields into hid.Hydra#updateSubscription method #32
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update changelog message
|
||
if (notEmpty(input.parSubscriptionId)) { | ||
LinkedHashMap parentSubscription = getSubscription(input.parSubscriptionId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like it is not used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usually you don't need variable parentSubscription
in such situations, in ruby it's something like
existingSubscription = existingSubscription.merge(getSubscription(input.parSubscriptionId).slice(:n_customer_id, :n_account_id, :n_doc_id, :n_object_id))
don't you have groovy way for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is subMap method in groovy which can be used for this.
But input arguments of updateSubscription have different names from output of SELECT - compare subscriptionId
and n_subscription_id
. And there is no way easier than currently one to convert them properly.
resolve conflicts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conflicts and commentary
|
||
if (notEmpty(input.parSubscriptionId)) { | ||
LinkedHashMap parentSubscription = getSubscription(input.parSubscriptionId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usually you don't need variable parentSubscription
in such situations, in ruby it's something like
existingSubscription = existingSubscription.merge(getSubscription(input.parSubscriptionId).slice(:n_customer_id, :n_account_id, :n_doc_id, :n_object_id))
don't you have groovy way for this?
Any updates? |
No description provided.