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

HCX-39 Allow to pass only some fields into hid.Hydra#updateSubscription method #32

Merged
merged 5 commits into from
Mar 10, 2020

Conversation

dolfinus
Copy link
Contributor

No description provided.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@sugarfree1 sugarfree1 left a 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)
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What is not used?

Copy link
Contributor

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?

Copy link
Contributor Author

@dolfinus dolfinus Feb 21, 2020

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.

@sugarfree1
Copy link
Contributor

resolve conflicts

@dolfinus dolfinus requested a review from sugarfree1 February 19, 2020 14:49
Copy link
Contributor

@sugarfree1 sugarfree1 left a comment

Choose a reason for hiding this comment

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

Conflicts and commentary

@dolfinus dolfinus requested a review from sugarfree1 February 20, 2020 15:06

if (notEmpty(input.parSubscriptionId)) {
LinkedHashMap parentSubscription = getSubscription(input.parSubscriptionId)
Copy link
Contributor

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?

@dolfinus dolfinus requested a review from sugarfree1 February 21, 2020 08:51
@dolfinus
Copy link
Contributor Author

dolfinus commented Mar 4, 2020

Any updates?

CHANGELOG.md Show resolved Hide resolved
@dolfinus dolfinus merged commit 1b3fd94 into master Mar 10, 2020
@dolfinus dolfinus deleted the HCX-39 branch March 10, 2020 07:01
dolfinus added a commit that referenced this pull request Mar 10, 2020
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.

2 participants