-
Notifications
You must be signed in to change notification settings - Fork 104
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
(PDK-625) Formatting of modified status report and addition of full c… #365
Conversation
99135c2
to
e29ca85
Compare
e29ca85
to
44e0f35
Compare
30fa750
to
6458f0e
Compare
…onvert report generation
6458f0e
to
bd95fa7
Compare
Example of the summary:
|
|
Updated output
|
Latest update:
|
lib/pdk/module/convert.rb
Outdated
def self.print_summary(update_manager) | ||
summary = {} | ||
update_manager.changes.keys.each do |category| | ||
update_category = update_manager.changes[category] |
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.
Can you simplify this to:
update_manager.changes.each do |category, update_category|
update_category = update_category.keys if update_category.respond_to?(:keys)
...
end
Then I think you could avoid the type checking conditional below.
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.
Or if you want to avoid redefining updaate_category
you could also do something like: update_files = update_category.respond_to?(:keys) ? update_category.keys : update_category
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.
🥂
I'm late to the party here so won't request further changes at this point, and fwiw it looks great. The only contribution I'll make when we get to a review of output consistency is to nudge the titles over to the left to allow for easier scanning.
|
…onvert report generation