Skip to content

Refactored some code and added module name information to Call classes - #193

Merged
renner merged 9 commits into
SUSE:masterfrom
admd:module-name-information
Mar 27, 2017
Merged

renner merged 9 commits into
SUSE:masterfrom
admd:module-name-information

Conversation

@admd

@admd admd commented Mar 3, 2017 •

Copy link
Copy Markdown
Contributor

@admd

admd commented Mar 3, 2017

Copy link
Copy Markdown
Contributor Author

I am not sure why this one test is failing.

@admd

admd commented Mar 3, 2017

Copy link
Copy Markdown
Contributor Author

I have get the latest master version without my changes and test is still failing there in my local environment.
What I can't understand how come Travis was building fine before my changes.

@admd

admd commented Mar 8, 2017

Copy link
Copy Markdown
Contributor Author

@lucidd can you please review this PR and let me know if i have to change anything.

@lucidd lucidd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

except for the type looks good to me. 👍 sorry for the late review.

}

/**
* Return the function na,e

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

typo here

@admd

admd commented Mar 13, 2017 •

Copy link
Copy Markdown
Contributor Author

@lucidd Thanks for the review, i have corrected the typo. Sorry for the late reply. I was out for a short vacation.

@renner renner added this to the Version 0.11.0 milestone Mar 27, 2017
@renner
renner merged commit 9f3a811 into SUSE:master Mar 27, 2017
@renner

renner commented Mar 27, 2017 •

Copy link
Copy Markdown
Member

@admd, @lucidd: I manually merged the patch and solved some conflicts caused by the merge of #195. You might want to have a look at the current master to check if I missed something.

@renner renner modified the milestones: Next, Version 0.11.0 Mar 28, 2017
payload.put("fun", functionName);
Map<String, Object> payload = super.getPayload();
arg.ifPresent(arg -> payload.put("arg", arg));
kwarg.ifPresent(kwarg -> payload.put("kwarg", kwarg));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@admd and @lucidd: After we merged this patch for releasing it with 0.11.0 we found that this specific change broke things elsewhere as for LocalCall it has always been kwarg (without "s")! We need to verify again here if it is actually correct to turn this into kwargs now for all call types, why it has been kwarg so far and if we maybe need to keep it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I remember when implementing this that kwarg and kwargs are not compatible. I'm not exactly sure why salt has 2 different names here. In the worst case we just have to move the kwargs to the specific implementation or have a abstract getter for the name which can be overridden.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback and sorry for the inconvenience caused by my change. Somehow tests gave me wrong impression that my code didn't break anything, I should have been more careful.

I will make changes suggested above through a new PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ping @admd, would you mind to create that new PR so that we can go on from there? Thank you!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @renner , I have created another PR and excluded those changes which caused the issue last time. Code can still be imroved but because of lack of time it's difficult right now for me. I will create another PR for further refactoring .

For Issue #149 , this PR should be enough.

@renner

renner commented Mar 29, 2017

Copy link
Copy Markdown
Member

@admd: After merging this patch we had to revert it again as we were unsure about the change of kwarg into kwargs for LocalCall, see my inline comment. We released 0.11.1 without it, sorry! Unfortunately I cannot reopen this PR as the commits were actually merged. Could you please make a new PR against the current master so we can go on from there? Sorry again for this inconvenience.

@renner renner removed this from the Next milestone Mar 29, 2017
@admd
admd deleted the module-name-information branch June 5, 2017 12:13
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.

3 participants