-
Notifications
You must be signed in to change notification settings - Fork 51
Merge show/new page of DataProvider #1553
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
base: dev
Are you sure you want to change the base?
Conversation
It is part of #841 |
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.
Check comments.
grouped_options.delete(nil) # data providers that can not be on this list return a category name of nil, so we remove them | ||
grouped_options.keys.sort.map { |type| [ type, grouped_options[type].sort ] } | ||
|
||
return grouped_options || [] |
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.
Why was this return
added? Didn't the previous code return an empty array already?
return grouped_options || [] | ||
end | ||
|
||
def get_personal_type_list #:nodoc: |
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 does this method do? Explain please.
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.
Please add a comment block before the method name
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.
Why was this file renamed? Since it doesn't include the .erb extension, the tempalate substitutions in it won't work anymore, right?
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.
See my new comments.
grouped_options.keys.sort.map { |type| [ type, grouped_options[type].sort ] } | ||
|
||
return grouped_options || [] | ||
return grouped_options |
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.
This is still wrong. It doesn't do what the original code did, which was to return the value computed by the method chain at line 831. Basically, the list you are returning is no longer sorted.
return grouped_options || [] | ||
end | ||
|
||
def get_personal_type_list #:nodoc: |
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.
Please add a comment block before the method name
No description provided.